diff --git a/README.md b/README.md index b0f1349..c97d27f 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # xabacus +xabacus is an implementation of the classic Chinese abacus which has its origins in the 12th century. + diff --git a/xabacus.spec b/xabacus.spec new file mode 100644 index 0000000..472d7ca --- /dev/null +++ b/xabacus.spec @@ -0,0 +1,115 @@ +Name: xabacus +Version: 8.0.0 +Release: 1mamba +Summary: An implementation of the classic Chinese abacus which has its origins in the 12th century. +Group: Graphical Desktop/Applications/Educational +Vendor: openmamba +Distribution: openmamba +Packager: Tiziana Ferro +URL: http://www.tux.org/~bagleyd/xabacus.html +Source: http://www.tux.org/~bagleyd/abacus/%{name}-%{version}.tar.bz2 +License: GPL +BuildRoot: %{_tmppath}/%{name}-%{version}-root +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libaudiofile-devel +BuildRequires: libesound-devel +BuildRequires: libICE-devel +BuildRequires: liblesstif-devel +BuildRequires: libSM-devel +BuildRequires: libX11-devel +BuildRequires: libXpm-devel +BuildRequires: libXt-devel +## AUTOBUILDREQ-END + +%description +xabacus is an implementation of the classic Chinese abacus which has its origins in the 12th century. + +%prep +%setup -q + +%build +%configure LIBS="-laudiofile" +%make + +%install +[ "%{buildroot}" != / ] && rm -rf %{buildroot} + +%makeinstall + +for r in 16x16 22x22 24x24 32x32 48x48; do + install -D -m 644 pixmaps/$r/abacus.png %{buildroot}%{_datadir}/pixmaps/$r/abacus.png +done + +# Create the system menu entry +mkdir -p %{buildroot}%{_datadir}/applications +cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF +[Desktop Entry] +Name=%{name} +GenericName=Abacus X widget +Comment=Implementation of classical abacus +Exec=xabacus +Icon=%{_datadir}/pixmaps/16x16/abacus.png +Terminal=false +Type=Application +Category=Education;Math; +X-KDE-StartupNotify=false +EOF + +%clean +[ "%{buildroot}" != / ] && rm -rf %{buildroot} + +%files +%defattr(-,root,root) +%{_bindir}/* +%{_libdir}/X11/app-defaults/* +%{_datadir}/games/xabacus/* +%{_datadir}/pixmaps/*/abacus.png +%{_datadir}/applications/xabacus.desktop +%{_mandir}/man6/* +%doc README + +%changelog +* Mon Apr 14 2014 Automatic Build System 8.0.0-1mamba +- automatic update by autodist + +* Sun Jan 20 2013 Automatic Build System 7.7.1-1mamba +- automatic version update by autodist + +* Mon Nov 05 2012 Automatic Build System 7.7.0-1mamba +- automatic version update by autodist + +* Mon Feb 07 2011 Automatic Build System 7.6.8-1mamba +- automatic update by autodist + +* Sun Oct 03 2010 Automatic Build System 7.6.7-1mamba +- automatic update by autodist + +* Mon Aug 16 2010 Automatic Build System 7.6.4-1mamba +- automatic update by autodist + +* Wed Jul 07 2010 Automatic Build System 7.6.2-1mamba +- automatic update by autodist + +* Sun Feb 07 2010 Automatic Build System 7.6-1mamba +- automatic update by autodist + +* Mon Oct 26 2009 Automatic Build System 7.5.3-1mamba +- automatic update by autodist + +* Tue Oct 13 2009 Automatic Build System 7.5.2-1mamba +- automatic update by autodist + +* Sat Aug 15 2009 Automatic Build System 7.5.1-1mamba +- automatic update by autodist + +* Tue Jan 13 2009 Silvan Calarco 7.4.1-1mamba +- automatic update by autodist + +* Fri Aug 29 2008 Tiziana Ferro 7.4-1mamba +- update to 7.4 +- update system menu entry +- add buildrequirements + +* Tue Jul 12 2005 Alessandro Ramazzina 7.1.3-1qilnx +- package created by autospec