SPECS: lrzip.spec - bcond for system_lzma

glen glen at pld-linux.org
Wed Oct 31 15:17:54 CET 2007


Author: glen                         Date: Wed Oct 31 14:17:54 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- bcond for system_lzma

---- Files affected:
SPECS:
   lrzip.spec (1.10 -> 1.11) 

---- Diffs:

================================================================
Index: SPECS/lrzip.spec
diff -u SPECS/lrzip.spec:1.10 SPECS/lrzip.spec:1.11
--- SPECS/lrzip.spec:1.10	Mon Feb 12 23:09:10 2007
+++ SPECS/lrzip.spec	Wed Oct 31 15:17:49 2007
@@ -1,4 +1,5 @@
 # $Revision$, $Date$
+%bcond_without	system_lzma # build with internal lzma
 Summary:	Long Range ZIP or Lzma RZIP
 Summary(pl.UTF-8):	Long Range ZIP lub Lzma RZIP
 Name:		lrzip
@@ -11,7 +12,7 @@
 Patch0:		%{name}-lzma.patch
 URL:		http://ck.kolivas.org/apps/lrzip/
 BuildRequires:	bzip2-devel
-BuildRequires:	lzma-devel >= 4.43-5
+%{?with_system_lzma:BuildRequires:	lzma-devel >= 4.43-5}
 BuildRequires:	lzo-devel >= 2.02-1
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -33,8 +34,10 @@
 
 %prep
 %setup -q
-%{!?debug:rm -rf lzma}
+%if %{with system_lzma}
+rm -rf lzma
 %patch0 -p1
+%endif
 
 %build
 %{__aclocal}
@@ -63,6 +66,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.11  2007/10/31 14:17:49  glen
+- bcond for system_lzma
+
 Revision 1.10  2007/02/12 22:09:10  glen
 - tabs in preamble
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/lrzip.spec?r1=1.10&r2=1.11&f=u



More information about the pld-cvs-commit mailing list