SPECS: hedgewars.spec (NEW) - initial
cactus
cactus at pld-linux.org
Sun Nov 9 00:13:21 CET 2008
Author: cactus Date: Sat Nov 8 23:13:21 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- initial
---- Files affected:
SPECS:
hedgewars.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/hedgewars.spec
diff -u /dev/null SPECS/hedgewars.spec:1.1
--- /dev/null Sun Nov 9 00:13:21 2008
+++ SPECS/hedgewars.spec Sun Nov 9 00:13:16 2008
@@ -0,0 +1,82 @@
+# $Revision$, $Date$
+#
+# TODO:
+# - update desc and summary
+# - add/test build with server
+# - add icon and desktop file
+%bcond_with server # build with local server
+
+Summary: hedgewars
+#Summary(pl.UTF-8):
+Name: hedgewars
+Version: 0.9.7
+Release: 0.5
+License: GPL v2 + Public Domain fonts
+Group: X11/Applications/Games
+Source0: http://hedgewars.org/download/%{name}-src-%{version}.tar.bz2
+# Source0-md5: 2326823d2827fb08885dd3944e8692ac
+Source1: %{name}.png
+Source2: %{name}.desktop
+URL: http://www.hedgewars.org/
+BuildRequires: QtCore-devel >= 4.4.0
+BuildRequires: QtSvg-devel >= 4.4.0
+BuildRequires: SDL_image-devel >= 1.2
+BuildRequires: SDL_mixer-devel >= 1.2
+BuildRequires: SDL_net-devel >= 1.2.5
+BuildRequires: SDL_ttf-devel >= 2.0
+BuildRequires: cmake >= 2.4.4
+BuildRequires: desktop-file-utils
+BuildRequires: fpc >= 2.2.0
+%{?with_server:BuildRequires: ghc}
+BuildRequires: openssl-devel
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+hedgehogs.
+
+#%description -l pl.UTF-8
+
+%prep
+%setup -q -n %{name}-src-%{version}
+mkdir build
+
+%build
+cd build
+%cmake \
+ -DCMAKE_INSTALL_PREFIX=%{_usr} \
+ %{?with_server:-DWITH_SERVER=1} \
+ ..
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}}
+
+cd build
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
+
+install %{SOURCE1} $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
+install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README Fonts_LICENSE.txt ChangeLog.txt
+%attr(755,root,root) %{_bindir}/hedgewars
+%attr(755,root,root) %{_bindir}/hwengine
+%{_datadir}/%{name}
+%{_pixmapsdir}/%{name}.png
+%{_desktopdir}/%{name}.desktop
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2008/11/08 23:13:16 cactus
+- initial
+
================================================================
More information about the pld-cvs-commit
mailing list