[vegastrike-data] Need to list out autogenerated *.pyc and &.pyo files.
Bruno Wolff III
bruno at fedoraproject.org
Sat Jul 9 18:50:00 UTC 2011
commit 7792a07396712249fc4e544b76972ee52321a34c
Author: Bruno Wolff III <bruno at wolff.to>
Date: Sat Jul 9 04:35:51 2011 -0500
Need to list out autogenerated *.pyc and &.pyo files.
vegastrike-data.spec | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/vegastrike-data.spec b/vegastrike-data.spec
index 4e2fcde..e64464e 100644
--- a/vegastrike-data.spec
+++ b/vegastrike-data.spec
@@ -59,6 +59,13 @@ find .vegastrike ai animations bases cockpits communications \
-type f | sed -e 's;^;"%{_datadir}/vegastrike/;;s;$;";' | sort -u | \
comm -2 -3 - data.files > extra.files
+# pyc and pyo files are going to be built automatically after the
+# install step and we need to list those files.
+
+grep '\.py"$' data.files | sed -e 's;\.py"$;.pyc"; > data.pyc
+grep '\.py"$' data.files | sed -e 's;\.py"$;.pyo"; > data.pyo
+grep '\.py"$' extra.files | sed -e 's;\.py"$;.pyc"; > extra.pyc
+grep '\.py"$' extra.files | sed -e 's;\.py"$;.pyo"; > extra.pyo
%build
# nothing to build data only
@@ -98,10 +105,10 @@ if [ -x %{_bindir}/gtk-update-icon-cache ]; then
fi
-%files -n vegastrike-extra -f extra.files
+%files -n vegastrike-extra -f extra.files -f extra.pyc extra.pyo
%defattr(-,root,root,-)
-%files -f data.files -f data.dirs
+%files -f data.files -f data.dirs -f data.pyc -f data.pyo
%defattr(-,root,root,-)
%doc vega-license.txt documentation/*
%{_datadir}/icons/hicolor/128x128/apps/vegastrike.xpm
@@ -111,6 +118,7 @@ fi
* Tue Jun 28 2011 Bruno Wolff III <bruno at wolff.to> 0.5.1-0.1.beta.2
- Update to upstream 0.5.1beta1-2
- Add optional vegastrike-extra subpackage for extra textures.
+- pyc and pyo files now get built.
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.5.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
More information about the scm-commits
mailing list