[packages/FlightGear] - added bcond to skip buildint data package
baggins
baggins at pld-linux.org
Tue Nov 11 00:44:58 CET 2014
commit b64a59c0b0fe50c129359c5a2b5f4cf6df08edc8
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Tue Nov 11 00:44:37 2014 +0100
- added bcond to skip buildint data package
FlightGear.spec | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/FlightGear.spec b/FlightGear.spec
index e7fa5f2..ef9afcc 100644
--- a/FlightGear.spec
+++ b/FlightGear.spec
@@ -2,6 +2,10 @@
# - Make FlightGear-extra-planes for subset of planes from
# http://www.flightgear.org/Downloads/aircraft/index.shtml
+#
+# Conditional build:
+%bcond_without data # don't build data package (for quick test build)
+#
Summary: Free Flight Simulator
Summary(pl.UTF-8): darmowy symulator lotu
Name: FlightGear
@@ -64,7 +68,7 @@ This package contains the base scenery for FlightGear and must be
installed
%prep
-%setup -q -n flightgear-%{version} -a 1
+%setup -q -n flightgear-%{version} %{?with_data:-a 1}
%patch0 -p1
%patch1 -p1
%patch2 -p1
@@ -90,7 +94,9 @@ install -d $RPM_BUILD_ROOT%{_datadir}/games/%{name}
DESTDIR=$RPM_BUILD_ROOT
install -p runfgfs $RPM_BUILD_ROOT%{_bindir}
+%if %{with data}
cp -a fgdata $RPM_BUILD_ROOT%{_datadir}/games/%{name}
+%endif
%clean
rm -rf $RPM_BUILD_ROOT
@@ -101,6 +107,8 @@ rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{_bindir}/*
%{_mandir}/*/*
+%if %{with data}
%files data
%defattr(644,root,root,755)
%{_datadir}/games/%{name}
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/FlightGear.git/commitdiff/b64a59c0b0fe50c129359c5a2b5f4cf6df08edc8
More information about the pld-cvs-commit
mailing list