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