rpms/sgml-common/devel sgml-common.spec,1.18,1.19

Ondrej Vasik (ovasik) fedora-extras-commits at redhat.com
Thu Nov 22 12:29:05 UTC 2007


Author: ovasik

Update of /cvs/extras/rpms/sgml-common/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv17979

Modified Files:
	sgml-common.spec 
Log Message:
Another Merge Review(#226415) improvements


Index: sgml-common.spec
===================================================================
RCS file: /cvs/extras/rpms/sgml-common/devel/sgml-common.spec,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- sgml-common.spec	21 Nov 2007 14:04:23 -0000	1.18
+++ sgml-common.spec	22 Nov 2007 12:28:32 -0000	1.19
@@ -1,6 +1,6 @@
 Name: sgml-common
 Version: 0.6.3
-Release: 22%{?dist}
+Release: 23%{?dist}
 Group: Applications/Text
 
 Summary: Common SGML catalog and DTD files
@@ -29,7 +29,7 @@
 Patch4: sgml-common-0.6.3-docdir.patch
 
 BuildRequires: libxml2 >= 2.4.8-2
-BuildRequires: automake autoconf
+BuildRequires: automake
 
 %description
 The sgml-common package contains a collection of entities and DTDs
@@ -44,33 +44,33 @@
 URL: http://www.w3.org/2003/entities/
 
 %description -n xml-common
-The xml-common package contains a collection of entities and DTDs
-that are useful for processing XML, but that don't need to be
-included in multiple packages.
-
+The xml-common is a subpackage of sgml-common which contains 
+a collection XML catalogs that are useful for processing XML, 
+but that don't need to be included in main package.
 
 %prep
 %setup -q
 %patch0 -p1 -b .umask
 %patch1 -p1 -b .xmldir
-%patch2 -p1 -b .quotes
-%patch3 -p1 -b .automake
-#patch4 not applied but still shipped with SRPM(see #226415 MergeReview)
+#patch 3 and patch4 not applied but still shipped with SRPM
+#(see #226415 MergeReview)
+#%patch3 -p1 -b .automake
 #%patch4 -p1 -b .docdir
-aclocal
-autoconf
-automake --add-missing
+
+# replace bogus links with files
+for file in COPYING INSTALL install-sh missing mkinstalldirs; do 
+   rm $file
+   cp -p /usr/share/automake-1.4/$file .
+done
 
 %build
 %configure
 
 %install
 rm -rf $RPM_BUILD_ROOT
-export DESTDIR="$RPM_BUILD_ROOT"
-make install docdir=$RPM_BUILDROOT%{_docdir} prefix=$RPM_BUILDROOT%{_prefix} \
-mandir=$RPMBUILDROOT%{_mandir}
+make install DESTDIR="$RPM_BUILD_ROOT" htmldir='%{_datadir}/doc' INSTALL='install -p'
 mkdir $RPM_BUILD_ROOT%{_sysconfdir}/xml
-mkdir $RPM_BUILD_ROOT%{_datadir}/sgml/docbook
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/sgml/docbook
 # Create an empty XML catalog.
 XMLCATALOG=$RPM_BUILD_ROOT%{_sysconfdir}/xml/catalog
 %{_bindir}/xmlcatalog --noout --create $XMLCATALOG
@@ -99,12 +99,19 @@
 	$RPM_BUILD_ROOT%{_datadir}/sgml
 rm -rf $RPM_BUILD_ROOT%{_datadir}/xml/*
 
+# remove installed doc file and prepare installation with %%doc
+rm $RPM_BUILD_ROOT%{_datadir}/doc/*.html
+rm -rf __dist_doc/html/
+mkdir -p __dist_doc/html/
+cp -p doc/HTML/*.html __dist_doc/html/
+
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr (-,root,root, -)
+%doc __dist_doc/html/ AUTHORS NEWS ChangeLog README
 %dir %{_sysconfdir}/sgml
 %config(noreplace) %{_sysconfdir}/sgml/sgml.conf
 %dir %{_datadir}/sgml
@@ -116,8 +123,7 @@
 %{_datadir}/sgml/html.soc
 %{_bindir}/sgmlwhich
 %{_bindir}/install-catalog
-%{_mandir}/*/*
-%{_docdir}/*
+%{_mandir}/man8/install-catalog.8*
 
 %files -n xml-common
 %defattr (-,root,root,-)
@@ -129,6 +135,12 @@
 %dir %{_datadir}/xml
 
 %changelog
+* Thu Nov 22 2007 Ondrej Vasik <ovasik at redhat.com> 0.6.3-23
+- Another MergeReview improvements(provided by Patrice Dumas)
+- copy Automake-1.4 files instead of rerunning autotools,
+- better preserving timestamps, better handling of documentation
+- improved XML-common description
+
 * Thu Nov 15 2007 Ondrej Vasik <ovasik at redhat.com> 0.6.3-22
 - Merge Review(226415)
 - changed: License Tag, using RPM macros instead of hardcoded




More information about the fedora-extras-commits mailing list