Blame abakus.spec

Koji 583f99d
Name:           abakus
Koji 583f99d
Version:        0.92
Koji 583f99d
Release:        2%{?dist}
Koji 583f99d
Summary:        The simple KDE calculator
Koji 583f99d
License:        GPLv2+
Koji 583f99d
URL:            http://purinchu.net/abakus
Koji 583f99d
Source0:        http://purinchu.net/%{name}/%{name}-%{version}.tar.bz2
Koji 583f99d
BuildRequires:  bison
Koji 583f99d
BuildRequires:  cmake
Koji 583f99d
BuildRequires:  desktop-file-utils
Koji 583f99d
BuildRequires:  flex
Koji 583f99d
BuildRequires:  kdelibs4-devel
Koji 583f99d
BuildRequires:  qt4-devel
Koji 583f99d
Koji 583f99d
%description
Koji 583f99d
Abakus is a simple calculator for KDE, based on a concept of Roberto 
Koji 583f99d
Alsina's. Think of it as bc (the command-line calculator) with a nice GUI.
Koji 583f99d
Koji 583f99d
%prep
Koji 583f99d
%setup -q
Koji 583f99d
Koji 583f99d
%build
Koji 583f99d
%cmake
Koji 583f99d
Koji 583f99d
%install
Koji 583f99d
make install DESTDIR=%{buildroot}
Koji 583f99d
Koji 583f99d
%check
Koji 583f99d
desktop-file-validate %{buildroot}%{_datadir}/applications/kde4/%{name}.desktop
Koji 583f99d
Koji 583f99d
%post
Koji 583f99d
touch --no-create %{_iconsdir}/hicolor &> /dev/null || :
Koji 583f99d
Koji 583f99d
%postun
Koji 583f99d
if [ $1 -eq 0 ] ; then
Koji 583f99d
touch --no-create %{_iconsdir}/hicolor &> /dev/null
Koji 583f99d
gtk-update-icon-cache %{_iconsdir}/hicolor &> /dev/null || :
Koji 583f99d
fi
Koji 583f99d
Koji 583f99d
%posttrans
Koji 583f99d
gtk-update-icon-cache %{_iconsdir}/hicolor &> /dev/null || :
Koji 583f99d
Koji 583f99d
%files
Koji 583f99d
%doc AUTHORS COPYING README
Koji 583f99d
%{_bindir}/%{name}
Koji 583f99d
%{_datadir}/icons/hicolor/*x*/apps/*.png
Koji 583f99d
%{_datadir}/applications/kde4/*.desktop
Koji 583f99d
%{_kde4_appsdir}/%{name}/
Koji 583f99d
Koji 583f99d
%changelog
Koji 583f99d
* Wed Jul 31 2013 Christopher Meng <rpm@cicku.me> - 0.92-2
Koji 583f99d
- Fix the license.
Koji 583f99d
Koji 583f99d
* Sun Jan 27 2013 Christopher Meng <rpm@cicku.me> - 0.92-1
Koji 583f99d
- Initial Package.