[vegastrike-data] Fix paths in lists and use them.
Bruno Wolff III
bruno at fedoraproject.org
Sat Jul 9 18:49:45 UTC 2011
commit 4c1932938b162e8f653011b8889b4d8e2fbd6e8d
Author: Bruno Wolff III <bruno at wolff.to>
Date: Sat Jul 9 02:04:27 2011 -0500
Fix paths in lists and use them.
vegastrike-data.spec | 25 +++++++++++++++++++------
1 files changed, 19 insertions(+), 6 deletions(-)
---
diff --git a/vegastrike-data.spec b/vegastrike-data.spec
index 8724ac6..1a4b652 100644
--- a/vegastrike-data.spec
+++ b/vegastrike-data.spec
@@ -39,12 +39,25 @@ chmod +x units/findunits.py modules/webpageize.py
sed -i 's/\r//g' documentation/mission_howto.txt
# remove the stale included manpages and the .xls abonimation
rm documentation/*.1 documentation/*.xls
-find . -type d | sort -u > data.dirs
-find . -type f | sort -u > data.files
+find .vegastrike ai animations bases cockpits communications \
+ history meshes mission modules movies programs sectors sounds \
+ sprites textures units universe \
+ *.xml *.csv *.config *.cur *.xpm New_Game Version.txt \
+ -type d | sed -e 's;^;%{_datadir}/vegastrike/;' | sort -u > data.dirs
+find .vegastrike ai animations bases cockpits communications \
+ history meshes mission modules movies programs sectors sounds \
+ sprites textures units universe \
+ *.xml *.csv *.config *.cur *.xpm New_Game Version.txt \
+ -type f | sed -e 's;^;%{_datadir}/vegastrike/;' | sort -u > data.files
cd ..
cp -a vegastrike-extra-%{version}.beta1/* %{name}-%{version}.beta1
cd %{name}-%{version}.beta1
-find . -type f | sort -u | comm -2 -3 - data.files > extra.files
+find .vegastrike ai animations bases cockpits communications \
+ history meshes mission modules movies programs sectors sounds \
+ sprites textures units universe \
+ *.xml *.csv *.config *.cur *.xpm New_Game Version.txt \
+ -type f | sed -e 's;^;%{_datadir}/vegastrike/;' | sort -u | \
+ comm -2 -3 - data.files > extra.files
%build
@@ -85,14 +98,14 @@ if [ -x %{_bindir}/gtk-update-icon-cache ]; then
fi
-%files -n vegastrike-extra
+%files -n vegastrike-extra -f extra.files
%defattr(-,root,root,-)
-%files
+%files -f data.files
%defattr(-,root,root,-)
%doc vega-license.txt documentation/*
-%{_datadir}/vegastrike
%{_datadir}/icons/hicolor/128x128/apps/vegastrike.xpm
+%dir -f data.dirs
%changelog
More information about the scm-commits
mailing list