rpms/wesnoth/devel wesnoth.spec, 1.59, 1.60 wesnoth-1.2.8-remove-ogg-test.patch, 1.1, NONE
Warren Togami 砥上勇
wtogami at fedoraproject.org
Fri Dec 5 05:21:19 UTC 2008
Author: wtogami
Update of /cvs/pkgs/rpms/wesnoth/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv15600
Modified Files:
wesnoth.spec
Removed Files:
wesnoth-1.2.8-remove-ogg-test.patch
Log Message:
sync with F-10 and rebuild for python-2.6
Index: wesnoth.spec
===================================================================
RCS file: /cvs/pkgs/rpms/wesnoth/devel/wesnoth.spec,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -r1.59 -r1.60
--- wesnoth.spec 1 Dec 2008 05:03:54 -0000 1.59
+++ wesnoth.spec 5 Dec 2008 05:20:48 -0000 1.60
@@ -1,7 +1,7 @@
%define _default_patch_fuzz 2
Name: wesnoth
Version: 1.4.6
-Release: 2%{?dist}
+Release: 1%{?dist}
Summary: Turn-based strategy game with a fantasy theme
Group: Amusements/Games
@@ -14,6 +14,7 @@
Patch1: wesnoth-1.3.16-remove-ogg-test.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Requires: wesnoth-data = %{version}
BuildRequires: SDL_image-devel
BuildRequires: SDL_mixer-devel
BuildRequires: SDL_net-devel
@@ -45,7 +46,7 @@
scenarios--or even full-blown campaigns. You can also challenge your
friends--or strangers--and fight multi-player epic fantasy battles.
-
+%ifnarch noarch
%package server
Summary: %{summary}
Group: Amusements/Games
@@ -69,17 +70,27 @@
%description tools
This package contains the game editor and development tools.
+%else
+%package data
+Summary: %{summary}
+Group: Amusements/Games
+Requires: %{name} = %{version}
+
+%description data
+This package contains the data files for Wesnoth.
+%endif
%prep
%setup -q
%patch0 -p1 -b .gcc43
%patch1 -p0
autoreconf
-#chmod -x MANUAL*
%build
-%configure --disable-dependency-tracking \
+# Cannot use configure macro because noarch-redhat-linux is not recognized by the auto tools in the tarball
+./configure --prefix=%{_prefix} --exec-prefix=%{_prefix} --bindir=%{_bindir} --sbindir=%{_sbindir} --sysconfdir=%{_sysconfdir} --datadir=%{_datadir} --includedir=%{_includedir} --libdir=%{_libdir} --libexecdir=%{_libexecdir} --localstatedir=%{_localstatedir} --sharedstatedir=%{_sharedstatedir} --mandir=%{_mandir} --infodir=%{_infodir} \
+ --disable-dependency-tracking \
--with-localedir=%{_datadir}/locale \
--enable-editor \
--enable-tools \
@@ -88,30 +99,37 @@
--with-fifodir=/var/run/wesnothd \
--with-server-uid=$(id -u) \
--with-server-gid=$(id -g)
+%ifnarch noarch
make %{?_smp_mflags}
+%endif
%install
rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=${RPM_BUILD_ROOT}
+%ifarch noarch
+### Data Files and Desktop Files
+make install-data DESTDIR=${RPM_BUILD_ROOT}
+rm -rf $RPM_BUILD_ROOT%{_datadir}/applications
desktop-file-install --dir $RPM_BUILD_ROOT/%{_datadir}/applications \
--mode="0644" --vendor fedora \
icons/%{name}.desktop
-desktop-file-install --dir $RPM_BUILD_ROOT/%{_datadir}/applications \
- --mode="0644" --vendor fedora \
- icons/%{name}_editor.desktop
-
-#clean up extraneous .desktop files.
-rm -f $RPM_BUILD_ROOT/usr/share/applications/wesnoth*
-rm -f $RPM_BUILD_ROOT/usr/share/wesnoth/icons/*.desktop
-
# add icon for menus
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/pixmaps
-install -m 644 images/%{name}-icon.png $RPM_BUILD_ROOT/%{_datadir}/pixmaps
+ln -sf ../wesnoth/icons/%{name}-icon.png $RPM_BUILD_ROOT/%{_datadir}/pixmaps
+ln -sf ../wesnoth/icons/%{name}_editor-icon.png $RPM_BUILD_ROOT/%{_datadir}/pixmaps
+
+%find_lang %{name}.\*
+
+
+%else
+### Binaries and Config Files
+make install-exec DESTDIR=${RPM_BUILD_ROOT}
-install -m 644 icons/%{name}_editor-icon.png $RPM_BUILD_ROOT/%{_datadir}/pixmaps
+desktop-file-install --dir $RPM_BUILD_ROOT/%{_datadir}/applications \
+ --mode="0644" --vendor fedora \
+ icons/%{name}_editor.desktop
# arrange server package files
mkdir -p ${RPM_BUILD_ROOT}%{_sbindir}
@@ -123,20 +141,25 @@
install -Dpm 644 %{SOURCE2} \
$RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/wesnoth
-%find_lang %{name}.\*
-#/usr/lib/rpm/find-lang.sh $RPM_BUILD_ROOT %name --all-name
+%endif
+
+### Cleanup Stuff
+rm -f $RPM_BUILD_ROOT/usr/share/applications/wesnoth*
+rm -f $RPM_BUILD_ROOT/usr/share/wesnoth/icons/*.desktop
find $RPM_BUILD_ROOT -name ".cvs*" | xargs rm -f
find $RPM_BUILD_ROOT -name "CVS" | xargs rm -rf
+find $RPM_BUILD_ROOT/ -name 'Makefile*' |xargs rm -f
rm -rf $RPM_BUILD_ROOT/usr/share/doc/wesnoth/
rm -f $RPM_BUILD_ROOT/usr/share/icons/wesnoth-icon.png
rm -f $RPM_BUILD_ROOT/usr/share/icons/wesnoth_editor-icon.png
-rm -f $RPM_BUILD_ROOT/usr/share/applications/wesnoth*
+
%clean
rm -rf $RPM_BUILD_ROOT
+%ifarch noarch
%post
touch --no-create %{_datadir}/icons/hicolor || :
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
@@ -148,7 +171,9 @@
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi
+%endif
+%ifnarch noarch
%pre server
/usr/sbin/useradd -c "Wesnoth server" -s /sbin/nologin \
-r -d /var/run/wesnothd wesnothd 2> /dev/null || :
@@ -166,17 +191,13 @@
%{_initrddir}/wesnothd stop >/dev/null 2>&1 || :
/sbin/chkconfig --del wesnothd
fi
+%endif
-
-%files -f %{name}.\*.lang
-%defattr(-,root,root,-)
+%ifnarch noarch
+%files
%doc COPYING changelog README copyright doc/manual/
+%defattr(-,root,root,-)
%{_bindir}/%{name}
-%{_datadir}/%{name}
-%{_datadir}/applications/fedora-wesnoth.desktop
-%{_datadir}/pixmaps/*
-%{_mandir}/man6/wesnoth.6*
-%{_mandir}/*/man6/wesnoth.6*
%files tools
%defattr(-,root,root,-)
@@ -187,22 +208,34 @@
%{_bindir}/wmllint
%{_bindir}/wmlscope
%{_datadir}/applications/fedora-wesnoth_editor.desktop
-%{_mandir}/man6/wesnoth_editor.6*
-%{_mandir}/*/man6/wesnoth_editor.6*
%files server
%defattr(-,root,root,-)
%config %{_initrddir}/wesnothd
%config(noreplace) %{_sysconfdir}/sysconfig/wesnoth
%{_sbindir}/wesnothd
-%{_mandir}/man6/wesnothd.*
-%{_mandir}/*/man6/wesnothd.*
%attr(0700,wesnothd,wesnothd) %dir /var/run/wesnothd/
%ghost /var/run/wesnothd/socket
+%endif
+
+%ifarch noarch
+%files data -f %{name}.\*.lang
+%defattr(-,root,root,-)
+%{_datadir}/%{name}
+%{_datadir}/applications/fedora-wesnoth.desktop
+%{_datadir}/pixmaps/*
+%{_mandir}/man6/wesnoth.6*
+%{_mandir}/*/man6/wesnoth.6*
+%{_mandir}/man6/wesnoth_editor.6*
+%{_mandir}/*/man6/wesnoth_editor.6*
+%{_mandir}/man6/wesnothd.*
+%{_mandir}/*/man6/wesnothd.*
+
+%endif
%changelog
-* Sun Nov 30 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm at gmail.com> - 1.4.6-2
-- Rebuild for Python 2.6
+* Tue Nov 18 2008 Warren Togami <wtogami at redhat.com>
+- split into -data noarch subpackage to save mirror space
* Mon Nov 17 2008 Jon Ciesla <limb at jcomserv.net> - 1.4.6-1
- New upstream release.
--- wesnoth-1.2.8-remove-ogg-test.patch DELETED ---
More information about the fedora-extras-commits
mailing list