Author: qboosh                       Date: Mon Feb 20 09:09:09 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added x bcond (to build just tools)

---- Files affected:
SPECS:
   xpdf.spec (1.95 -> 1.96) 

---- Diffs:

================================================================
Index: SPECS/xpdf.spec
diff -u SPECS/xpdf.spec:1.95 SPECS/xpdf.spec:1.96
--- SPECS/xpdf.spec:1.95        Fri Feb 17 17:50:57 2006
+++ SPECS/xpdf.spec     Mon Feb 20 10:09:03 2006
@@ -2,6 +2,7 @@
 #
 # Conditional build:
 %bcond_without protections     # remove protections against fair use (printing 
and copying)
+%bcond_without x               # X-based browser
 #
 Summary:       Portable Document Format (PDF) file viewer
 Summary(es):   Visualizador de archivos PDF
@@ -27,11 +28,11 @@
 Patch3:                %{name}-%{version}pl1.patch
 Patch4:                %{name}-cve-2006-0301.patch
 URL:           http://www.foolabs.com/xpdf/
-BuildRequires: XFree86-devel
+%{?with_x:BuildRequires:       BuildRequires:  XFree86-devel}
 BuildRequires: autoconf
 BuildRequires: freetype-devel >= 2.1.0
 BuildRequires: libstdc++-devel
-BuildRequires: motif-devel
+%{?with_x:BuildRequires:BuildRequires: motif-devel}
 BuildRequires: t1lib-devel >= 1.3.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -107,6 +108,7 @@
 
 %build
 %{__autoconf}
+%{!?with_x:export no_x=yes}
 CXXFLAGS="%{rpmcflags} -fno-exceptions -fno-rtti"
 %configure \
        --enable-a4-paper \
@@ -142,6 +144,7 @@
 umask 022
 [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database 
>/dev/null 2>&1
 
+%if %{with x}
 %files
 %defattr(644,root,root,755)
 %doc ANNOUNCE CHANGES README
@@ -152,6 +155,7 @@
 %{_mandir}/man5/xpdfrc.5*
 %{_desktopdir}/*
 %{_pixmapsdir}/*
+%endif
 
 %files tools
 %defattr(644,root,root,755)
@@ -164,6 +168,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.96  2006/02/20 09:09:03  qboosh
+- added x bcond (to build just tools)
+
 Revision 1.95  2006/02/17 16:50:57  psz
 - security fix: CVE-2006-0301
 - rel 4; STBR
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/xpdf.spec?r1=1.95&r2=1.96&f=u

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

Reply via email to