]> git.pld-linux.org Git - packages/ash.git/commitdiff
- rel 7 ash-0_4_0-7
authorMichal Moskal <michal@moskal.me>
Fri, 8 Mar 2002 14:29:52 +0000 (14:29 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- added --without static
- pass CC to make

Changed files:
    ash.spec -> 1.53

ash.spec

index f895d366688d7fc0878e99cdd4705e9e78c4c101..02e9204ee1e4707d482386c03591fb3f94e9adf6 100644 (file)
--- a/ash.spec
+++ b/ash.spec
@@ -1,3 +1,5 @@
+# conditional build
+# --without static
 # Branch: HEAD
 Summary:       Small bourne shell from Berkeley
 Summary(de):   Kleine Bourne-Shell von Berkeley
@@ -6,7 +8,7 @@ Summary(pl):    Ma
 Summary(tr):   Ufak bir bourne kabuĂ°u
 Name:          ash
 Version:       0.4.0
-Release:       6
+Release:       7
 License:       BSD
 Group:         Applications/Shells
 Source0:       %{name}-%{version}.tar.gz
@@ -33,7 +35,7 @@ Patch19:      %{name}-freebsd.patch
 Patch20:       %{name}-sighup.patch
 PreReq:                fileutils
 PreReq:                grep
-BuildRequires: glibc-static
+%{!?_without_static:BuildRequires:     glibc-static}
 BuildRequires: flex
 BuildRequires: byacc
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -127,16 +129,16 @@ avantaj
 
 %build
 
-%{__make} OPT_FLAGS="%{rpmcflags}" LDFLAGS="-static %{rpmldflags}"
-mv -f sh ash.static
-%{__make} OPT_FLAGS="%{rpmcflags}" LDFLAGS="%{rpmldflags}"
+%{!?_without_static:%{__make} OPT_FLAGS="%{rpmcflags}" LDFLAGS="-static %{rpmldflags}"}
+%{!?_without_static:mv -f sh ash.static}
+%{__make} OPT_FLAGS="%{rpmcflags}" LDFLAGS="%{rpmldflags}" CC="%{__cc}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 install -d $RPM_BUILD_ROOT/{%{_bindir},%{_mandir}/man1}
 install sh $RPM_BUILD_ROOT%{_bindir}/ash
-install ash.static $RPM_BUILD_ROOT%{_bindir}/ash.static
+%{!?_without_static:install ash.static $RPM_BUILD_ROOT%{_bindir}/ash.static}
 install sh.1 $RPM_BUILD_ROOT%{_mandir}/man1/ash.1
 echo ".so ash.1" > $RPM_BUILD_ROOT%{_mandir}/man1/bsh.1
 ln -sf ash $RPM_BUILD_ROOT/%{_bindir}/bsh
@@ -204,6 +206,6 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/bsh
 %{_mandir}/man1/*
 
-%files static
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/ash.static
+%{!?_without_static:%files static}
+%{!?_without_static:%defattr(644,root,root,755)}
+%{!?_without_static:%attr(755,root,root) %{_bindir}/ash.static}
This page took 0.079601 seconds and 4 git commands to generate.