atomix/atomix.spec

137 lines
4.0 KiB
RPMSpec
Raw Normal View History

%define majversion %(echo %version | cut -d. -f 1-2)
Name: atomix
Version: 3.16.0
Release: 1mamba
Summary: A little mind game where you have to build molecules out of single atoms
Group: Graphical Desktop/Applications/Educational
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://ftp.gnome.org/pub/GNOME/sources/atomix/
Source: http://ftp.acc.umu.se/pub/GNOME/sources/atomix/%{majversion}/atomix-%{version}.tar.xz
Patch0: %{name}-2.14.0-desktop_file.patch
License: GPL
BuildRequires: perl
BuildRequires: perl-XML-Parser
BuildRequires: gettext
BuildRequires: pkgconfig
BuildRequires: ORBit-devel
BuildRequires: libesound-devel
BuildRequires: libgail-devel
BuildRequires: libglitz-devel
BuildRequires: libpixman-devel
BuildRequires: libpthread-stubs-devel
BuildRequires: libxcb-util-devel
## AUTOBUILDREQ-BEGIN
BuildRequires: GConf-devel
BuildRequires: glibc-devel
BuildRequires: libart_lgpl-devel
BuildRequires: libatk-devel
BuildRequires: libbonobo-devel
BuildRequires: libbonoboui-devel
BuildRequires: libcairo-devel
BuildRequires: libglib-devel
BuildRequires: libgnomecanvas-devel
BuildRequires: libgnome-devel
BuildRequires: libgnomeui-devel
BuildRequires: libgnome-vfs-devel
BuildRequires: libgtk-devel
BuildRequires: libICE-devel
BuildRequires: libpango-devel
BuildRequires: libpopt-devel
BuildRequires: libSM-devel
BuildRequires: libxml2-devel
BuildRequires: ORBit2-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Atomix is yet another little mind game for GNOME, where you have to build molecules out of single atoms.
%prep
%setup -q
%patch0 -p1
%build
%configure
# gnome bz#334319 -- translations don't get built; workaround that
sed -i 's!^SOURCES = !&\n'"$(grep "^CATALOGS" po/Makefile.in)"'!' po/Makefile
sed -i "s|games\.games|`id -u`\.`id -g`|" Makefile
sed -i "s|chgrp games $(DESTDIR)$(bindir)||" Makefile
%make
%install
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
###GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
#install -m 755 -d ./po %{buildroot}{_datadir}/atomix/po
# create the italian locale from the italian catalog file
#install -d locale/it/LC_MESSAGES
#/usr/bin/msgfmt po/it.po -o locale/it/LC_MESSAGES/%{name}.mo
%makeinstall
%find_lang %{name}
%post
chmod 666 %{_localstatedir}/games/atomix.scores
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%files -f %{name}.lang
%defattr(-,root,root)
%{_bindir}/%{name}
%{_datadir}/applications/atomix.desktop
%{_datadir}/appdata/atomix.appdata.xml
%dir %{_datadir}/atomix
%{_datadir}/atomix/*.png
%dir %{_datadir}/atomix/level
%{_datadir}/atomix/level/*.atomix.xml
%{_datadir}/atomix/level/sequence
%dir %{_datadir}/atomix/themes
%dir %{_datadir}/atomix/themes/default
%{_datadir}/atomix/themes/default/*.png
%{_datadir}/atomix/themes/default/theme
%dir %{_datadir}/atomix/ui
%{_datadir}/atomix/ui/interface.ui
#%{_datadir}/gnome-2.0/ui/atomix-ui.xml
%{_datadir}/pixmaps/atomix-icon.png
#%{_localstatedir}/games/atomix.scores
%doc AUTHORS COPYING
#ChangeLog NEWS README
%changelog
* Sat Apr 18 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 3.16.0-1mamba
- update to 3.16.0
* Fri Feb 05 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 2.14.0-4mamba
- rebuilt to remove executable requirements
* Wed Oct 15 2008 Tiziana Ferro <tiziana.ferro@email.it> 2.14.0-3mamba
- fixed atomix.scores permissions
* Wed Oct 15 2008 Tiziana Ferro <tiziana.ferro@email.it> 2.14.0-2mamba
- fixed translations bug
* Sun Aug 31 2008 Tiziana Ferro <tiziana.ferro@email.it> 2.14.0-1mamba
- update to 2.14.0
- edit patch for 2.14.0 version
- edit Makefile with sed
- update buildrequirements list
* Thu Jul 10 2008 gil <puntogil@libero.it> 2.13.4-1mamba
- update to 2.13.4
- edit patch
* Mon Dec 19 2005 Davide Madrisan <davide.madrisan@qilinux.it> 2.13.3-1qilnx
- update to version 2.13.3 by autospec
- modified desktop file
* Wed Jul 27 2005 Massimo Pintore <massimo.pintore@qilinux.it> 0.9.3-1qilnx
- package created by autospec