From 8b50d36af04320fc93a567ac0a217aa28f73e5e7 Mon Sep 17 00:00:00 2001 From: Aurelien Bompard Date: Mar 18 2009 06:34:34 +0000 Subject: initial import --- diff --git a/.cvsignore b/.cvsignore index e69de29..f21eb49 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +springlobby-0.0.1.10429.tar.bz2 diff --git a/import.log b/import.log new file mode 100644 index 0000000..6357cb4 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +springlobby-0_0_1_10429-4_fc10:HEAD:springlobby-0.0.1.10429-4.fc10.src.rpm:1237358020 diff --git a/sources b/sources index e69de29..a34813f 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +1f41892e5c870f46fd95a2ab2179f0d0 springlobby-0.0.1.10429.tar.bz2 diff --git a/springlobby.spec b/springlobby.spec new file mode 100644 index 0000000..e51ec4e --- /dev/null +++ b/springlobby.spec @@ -0,0 +1,121 @@ +Name: springlobby +Version: 0.0.1.10429 +Release: 4%{?dist} +Summary: A lobby client for the spring RTS game engine + +Group: Amusements/Games +# License clarification: http://springlobby.info/issues/show/810 +License: GPLv3 +URL: http://springlobby.info +Source0: http://www.springlobby.info/tarballs/springlobby-%{version}.tar.bz2 + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: wxGTK-devel, rb_libtorrent-devel +BuildRequires: SDL-devel, SDL_sound-devel, SDL_mixer-devel +BuildRequires: pkgconfig, desktop-file-utils, gettext + +# There are other "lobbies" for spring, make a virtual-provides +Provides: spring-lobby = %{version}-%{release} + +Requires: hicolor-icon-theme +# Springlobby is completely useless without the spring package +Requires: spring +# Spring does not build on PPC, exclude it here too +ExcludeArch: ppc ppc64 + + +%description +SpringLobby is a free cross-platform lobby client for the Spring RTS project. + + +%prep +%setup -q + + +%build +%configure +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT + +# Handled in %%doc +rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/ + +# Fix Icon entry +sed -i -e 's/^Icon=\(.*\).svg/Icon=\1/g' \ + $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop +desktop-file-install \ + --dir $RPM_BUILD_ROOT%{_datadir}/applications \ + --remove-category Application \ + --delete-original \ + $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop + +# Move icon to the Freedesktop directory +mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps +mv $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}.svg \ + $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg + +%find_lang %{name} + + +%post +touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : + +%postun +if [ $1 -eq 0 ] ; then + touch --no-create %{_datadir}/icons/hicolor &>/dev/null + gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : +fi + +%posttrans +gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files -f %{name}.lang +%defattr(-,root,root,-) +%doc AUTHORS NEWS README COPYING THANKS +%{_bindir}/* +%{_datadir}/applications/*.desktop +%{_datadir}/icons/hicolor/scalable/apps/*.svg + + +%changelog +* Mon Mar 16 2009 Aurelien Bompard 0.0.1.10429-4 +- fix license tag + +* Mon Mar 16 2009 Aurelien Bompard 0.0.1.10429-3 +- new scriptlets for the icon cache +- require hicolor-icon-theme + +* Sun Mar 15 2009 Aurelien Bompard 0.0.1.10429-2 +- drop the version in the buildrequires +- don't package ChangeLog as %%doc + +* Sun Mar 15 2009 Aurelien Bompard 0.0.1.10429-1 +- version 10429 + +* Wed Feb 25 2009 Aurelien Bompard 0.0.1.10425-1 +- version 10425 +- drop both patches (merged upstream) + +* Tue Feb 03 2009 Aurelien Bompard 0.0.1.10393-1 +- version 10393 +- add patch to detect libunitsync.so properly +- drop workaround for rhbz#478589 +- require spring +- add patch to fix gettext detection on x86_64 + +* Sat Jan 17 2009 Aurelien Bompard 0.0.1.10387-1 +- version 10387 +- remove vendor from the desktop file + +* Thu Jan 01 2009 Aurelien Bompard 0.0.1.10372-1 +- initial package