Author: sls                          Date: Fri Nov 28 11:20:48 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added noarch.patch
- added tests bcond
- rel. 2

---- Files affected:
SPECS:
   gtk-doc.spec (1.73 -> 1.74) 

---- Diffs:

================================================================
Index: SPECS/gtk-doc.spec
diff -u SPECS/gtk-doc.spec:1.73 SPECS/gtk-doc.spec:1.74
--- SPECS/gtk-doc.spec:1.73     Thu Nov 27 20:28:59 2008
+++ SPECS/gtk-doc.spec  Fri Nov 28 12:20:42 2008
@@ -1,5 +1,8 @@
 # $Revision$, $Date$
 #
+# Conditional build:
+%bcond_with    tests   # build regression tests programs
+#
 %include       /usr/lib/rpm/macros.perl
 #
 Summary:       API documentation generation tool for GTK+ and GNOME
@@ -8,21 +11,22 @@
 Summary(pt_BR.UTF-8):  O gerador de documentação do GTK
 Name:          gtk-doc
 Version:       1.11
-Release:       1
+Release:       2
 License:       GPL v2+
 Group:         Development/Tools
 Source0:       
http://ftp.gnome.org/pub/GNOME/sources/gtk-doc/1.11/%{name}-%{version}.tar.bz2
 # Source0-md5: b5e268c71fa90aad890cf53715664d0a
+Patch0:                %{name}-noarch.patch
 URL:           http://www.gtk.org/rdp/
 BuildRequires: autoconf >= 2.52
 BuildRequires: automake
 BuildRequires: docbook-dtd412-xml >= 1.0-10
 BuildRequires: docbook-dtd43-xml
 BuildRequires: docbook-style-xsl >= 1.74.0
-BuildRequires: glib2-devel >= 1:2.6.0
+%{?with_tests:BuildRequires:   glib2-devel >= 1:2.6.0}
 BuildRequires: gnome-common >= 2.12.0-3
 BuildRequires: gnome-doc-utils >= 0.3.2
-BuildRequires: libtool
+%{?with_tests:BuildRequires:   libtool}
 BuildRequires: libxslt-progs >= 1.1.15
 BuildRequires: openjade
 BuildRequires: perl-base >= 1:5.6.0
@@ -41,7 +45,7 @@
 Requires:      libxslt-progs >= 1.1.15
 Requires:      openjade
 Conflicts:     pkgconfig < 1:0.19
-#BuildArch:    noarch (rejected by autoconf)
+%{!?with_tests:BuildArch:      noarch}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 # architecture-independant pkgconfig dir
@@ -83,11 +87,12 @@
 
 %prep
 %setup -q
+%{!?with_tests:%patch0 -p1}
 mv -f doc/README doc/README.docs
 
 %build
 %{__gnome_doc_common}
-%{__libtoolize}
+%{?with_tests:%{__libtoolize}}
 %{__aclocal}
 %{__autoconf}
 %{__automake}
@@ -140,6 +145,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.74  2008/11/28 11:20:42  sls
+- added noarch.patch
+- added tests bcond
+- rel. 2
+
 Revision 1.73  2008/11/27 19:28:59  sls
 - BR: rpm-pythonprov in, docbook-utils out
 
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/gtk-doc.spec?r1=1.73&r2=1.74&f=u

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

Reply via email to