SPECS: grx.spec - new bcond style
darekr
darekr at pld-linux.org
Mon Jun 20 21:06:03 CEST 2005
Author: darekr Date: Mon Jun 20 19:06:03 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- new bcond style
---- Files affected:
SPECS:
grx.spec (1.7 -> 1.8)
---- Diffs:
================================================================
Index: SPECS/grx.spec
diff -u SPECS/grx.spec:1.7 SPECS/grx.spec:1.8
--- SPECS/grx.spec:1.7 Sun Sep 28 23:37:58 2003
+++ SPECS/grx.spec Mon Jun 20 21:05:58 2005
@@ -1,11 +1,11 @@
# $Revision$, $Date$
#
# Conditional build:
-# _with_gpc: enable gpc support
-# _without_bgi: disable BGI support
-# _without_bmp: disable BMP support
-# _without_jpeg: disable JPEG support
-# _without_tiff: disable TIFF support
+%bcond_with gpc # enable gpc support
+%bcond_without bgi # disable BGI support
+%bcond_without bmp # disable BMP support
+%bcond_without jpeg # disable JPEG support
+%bcond_without tiff # disable TIFF support
#
Summary: 2D graphics C library
Summary(pl): Biblioteka w C do grafiki 2D
@@ -65,27 +65,30 @@
./configure \
--prefix=/usr \
--target=X11 \
-%{!?_without_jpeg:--enable-jpeg} \
+%{?with_jpeg:--enable-jpeg} \
--enable-png \
--enable-z \
--enable-png-z \
-%{!?_without_tiff:--enable-tiff} \
-%{!?_without_bmp:--enable-bmp} \
+%{?with_tiff:--enable-tiff} \
+%{?with_bmp:--enable-bmp} \
--enable-print \
-%{?_with_gpc:--enable-gpc} \
+%{?with_gpc:--enable-gpc} \
--enable-shared \
-%{!?_without_bgi:--enable-bgi} \
+%{?with_bgi:--enable-bgi} \
--with-fontpath=/usr/share/grx/fonts
-%{__make} CCOPT="%{rpmcflags}"
+%{__make} \
+ CCOPT="%{rpmcflags}"
%install
rm -rf $RPM_BUILD_ROOT
-#install -d $RPM_BUILD_ROOT
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
-%{__make} install-bin DESTDIR=$RPM_BUILD_ROOT
-%{__make} install-fonts DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+%{__make} install-bin \
+ DESTDIR=$RPM_BUILD_ROOT
+%{__make} install-fonts \
+ DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
@@ -96,7 +99,7 @@
%files
%defattr(644,root,root,755)
%doc readme doc/{changes,credits.doc,fna.txt}
-%{!?_without_bgi:%doc doc/changes.bgi}
+%{?with_bgi:%doc doc/changes.bgi}
%attr(755,root,root) %{_bindir}/*
%attr(755,root,root) %{_libdir}/lib*.so.*.*.*
%{_datadir}/grx
@@ -116,6 +119,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.8 2005/06/20 19:05:58 darekr
+- new bcond style
+
Revision 1.7 2003/09/28 21:37:58 ankry
- rel. 2
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/grx.spec?r1=1.7&r2=1.8&f=u
More information about the pld-cvs-commit
mailing list