]> git.pld-linux.org Git - packages/pingus.git/blobdiff - pingus.spec
- rebuild with boost 1.56.0
[packages/pingus.git] / pingus.spec
index ab30308c80abef5f3bd97d644aec3d752f3cdec9..fb903e181a4c9f44e64114535c2f51900fffca3e 100644 (file)
@@ -1,32 +1,37 @@
-# TODO:
-# - xorg deps
-# - install po files in proper directory (needed?)
-# - are we need post and postun sections?
-
+#
+# TODO: when build with_xinput=true:
+#      src/engine/input/xinput/xinput_driver.cpp:20:28: fatal error: pingus/debug.hpp
+#
 Summary:       Pingus, a lemmings style game with penguins
 Summary(pl.UTF-8):     Gra typu lemmingi z pingwinami w roli głównej
 Summary(pt_BR.UTF-8):  Um clone de lemmings com pingüins
 Name:          pingus
-Version:       0.7.0
-Release:       0.1
-License:       GPL v2+
+Version:       0.7.6
+Release:       10
+License:       GPL v3+
 Group:         X11/Applications/Games
-Source0:       http://pingus.seul.org/files/%{name}-%{version}.tar.bz2
-# Source0-md5: d967a3c233aa094236eb2ce6a3e20dd8
+Source0:       http://pingus.googlecode.com/files/%{name}-%{version}.tar.bz2
+# Source0-md5: 561798686f34d3fa4e69135d655f47ac
 Source1:       %{name}.desktop
 Source2:       %{name}.png
+Patch0:                %{name}-opt.patch
+Patch1:                %{name}-gcc4.7.patch
 URL:           http://pingus.seul.org/
-BuildRequires: SDL-devel >= 1.2.0
 BuildRequires: SDL_image-devel
 BuildRequires: SDL_mixer-devel
-BuildRequires: boost-devel
+BuildRequires: boost-devel >= 1.36.0
 BuildRequires: libpng-devel
 BuildRequires: libstdc++-devel
-BuildRequires: sed >= 4.0
+BuildRequires: rpmbuild(macros) >= 1.385
 BuildRequires: scons
-Requires:      guile
+#BuildRequires:        xorg-lib-libXi-devel
+Requires:      libmikmod
+# sr@Latn vs. sr@latin
+Conflicts:     glibc-misc < 6:2.7
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define                specflags       -fpermissive -std=c++11
+
 %description
 A cool lemmings game with penguins instead of lemmings!
 
@@ -34,16 +39,20 @@ A cool lemmings game with penguins instead of lemmings!
 Wspaniała gra typu lemmingi z tym, że steruje się pingwinami!
 
 %description -l pt_BR.UTF-8
-Pingus é um clone do jogo Lemmings, com a diferença de que você guia 
+Pingus é um clone do jogo Lemmings, com a diferença de que você guia
 pingüins.
 
 %prep
 %setup -q
+%patch0 -p1
+%patch1 -p1
 
-mv -f data/po/sr{,@Latn}.po
+# note: it loads *.po files directly, no need to use msgfmt
+mv -f data/po/sr{,@latin}.po
+rm -f data/po/pingus.pot
 
 %build
-scons
+%scons
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -51,22 +60,16 @@ install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name},%{_desktopdir},%{_pixm
 
 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
-install        %{name} $RPM_BUILD_ROOT%{_bindir}
+install        build/%{name} $RPM_BUILD_ROOT%{_bindir}
 cp -r data $RPM_BUILD_ROOT%{_datadir}/%{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
-
-%postun
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
-
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog NEWS TODO
-%attr(755,root,root) %{_bindir}/*
+%doc AUTHORS NEWS README TODO
+%attr(755,root,root) %{_bindir}/pingus
 %{_datadir}/%{name}
 %{_desktopdir}/%{name}.desktop
 %{_pixmapsdir}/%{name}.png
This page took 0.313673 seconds and 4 git commands to generate.