Author: glen                         Date: Mon Feb 11 16:59:38 2008 GMT
Module: SPECS                         Tag: AC-branch
---- Log message:
- build source pkg depending on target

---- Files affected:
SPECS:
   test.spec (1.16.4.71 -> 1.16.4.72) 

---- Diffs:

================================================================
Index: SPECS/test.spec
diff -u SPECS/test.spec:1.16.4.71 SPECS/test.spec:1.16.4.72
--- SPECS/test.spec:1.16.4.71   Sun Feb 10 13:43:34 2008
+++ SPECS/test.spec     Mon Feb 11 17:59:33 2008
@@ -1,19 +1,28 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_with    source          # build noarch kernel-source package
+#
+%if "%{_arch}" == "noarch"
+%define                with_source     1
+%endif
 Summary:       test
-Name:          luatest
+Name:          kernel%{?with_source:-source}
 Version:       1
 Release:       0.1
 License:       GPL
 Group:         Applications/System
+%if %{with source}
+BuildArch:     noarch
+%endif
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _shell                  /bin/posh
-
 %description
 This package should be never installed.
 
 %prep
 %setup -qcT
+echo "target: %{_arch}"
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -21,9 +30,6 @@
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%post  -p %add_etc_shells -p /bin/posh
-%preun -p %remove_etc_shells -p /bin/posh
-
 %files
 %defattr(644,root,root,755)
 
@@ -33,6 +39,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.16.4.72  2008-02-11 16:59:33  glen
+- build source pkg depending on target
+
 Revision 1.16.4.71  2008-02-10 12:43:34  glen
 - add remove /etc/shells lua tests
 
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/test.spec?r1=1.16.4.71&r2=1.16.4.72&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to