[packages/supertuxkart] subpackage noarch data

glen glen at pld-linux.org
Sun Jun 26 18:41:07 CEST 2016


commit c8f84ca0de25ae90735db6d255fcc22ba399ba3b
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Jun 26 19:41:01 2016 +0300

    subpackage noarch data

 supertuxkart.spec | 22 +++++++++++++++++-----
 1 file changed, 17 insertions(+), 5 deletions(-)
---
diff --git a/supertuxkart.spec b/supertuxkart.spec
index 7a30abe..088184b 100644
--- a/supertuxkart.spec
+++ b/supertuxkart.spec
@@ -1,10 +1,8 @@
-
-
 Summary:	SuperTuxKart - an enhanced version of TuxKart
 Summary(pl.UTF-8):	SuperTuxKart - ulepszona wersja gry TuxKart
 Name:		supertuxkart
 Version:	0.8
-Release:	1
+Release:	3
 License:	GPL v1, GPL v2, GPL v3+, CC-BY-SA v3, CC-BY-SA v3+
 Group:		X11/Applications/Games
 Source0:	http://downloads.sourceforge.net/supertuxkart/%{name}-%{version}-src.tar.bz2
@@ -23,6 +21,7 @@ BuildRequires:	libvorbis-devel
 BuildRequires:	pkgconfig
 BuildRequires:	sed >= 4.0
 BuildRequires:	unzip
+Requires:	%{name}-data = %{version}-%{release}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -35,6 +34,16 @@ SuperTuxKart jest ulepszoną wersją gry TuxKart, stworzonej przez
 Steve'a Bakera, w której bierzemy udział w wyścigach gokartowych jako
 Tux lub jego przyjaciele.
 
+%package data
+Summary:	SuperTuxKart data files
+Group:		X11/Applications/Games
+%if "%{_rpmversion}" >= "5"
+BuildArch:	noarch
+%endif
+
+%description data
+SuperTuxKart data files
+
 %prep
 %setup -q -n SuperTuxKart-%{version}
 %patch0 -p1
@@ -55,7 +64,7 @@ install -d $RPM_BUILD_ROOT%{_desktopdir}
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
-install data/%{name}.desktop $RPM_BUILD_ROOT%{_desktopdir}
+cp -p data/%{name}.desktop $RPM_BUILD_ROOT%{_desktopdir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -64,6 +73,9 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc ChangeLog README TODO data/CREDITS
 %attr(755,root,root) %{_bindir}/*
-%{_datadir}/games/%{name}
 %{_desktopdir}/%{name}.desktop
 %{_pixmapsdir}/%{name}_32.xpm
+
+%files data
+%defattr(644,root,root,755)
+%{_datadir}/games/%{name}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/supertuxkart.git/commitdiff/c8f84ca0de25ae90735db6d255fcc22ba399ba3b



More information about the pld-cvs-commit mailing list