summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCEST 2001 Jens Finke <jens@gnome.org>2001-09-19 07:20:40 +0000
committerJens Finke <jens@src.gnome.org>2001-09-19 07:20:40 +0000
commitde8c8af992494bbf2e2b0fa63f70c7dd8482964c (patch)
treea50e1bf8b80c7e4d75810e6cff18e33ba3bfa1e7
parentf5b44e434ec077d2e056d1f614c48b49fe5ee968 (diff)
downloadlibxml2-de8c8af992494bbf2e2b0fa63f70c7dd8482964c.tar.gz
Don't copy libxml.spec, it's already included due to listing in
Wed Sep 19 08:42:20 CEST 2001 Jens Finke <jens@gnome.org> * Makfefile.am (dist-hook): Don't copy libxml.spec, it's already included due to listing in EXTRA_DIST. * libxml.spec.in: Updated.
-rw-r--r--ChangeLog7
-rw-r--r--Makefile.am3
-rw-r--r--libxml.spec.in165
3 files changed, 96 insertions, 79 deletions
diff --git a/ChangeLog b/ChangeLog
index 15df0862..13d05306 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Wed Sep 19 08:42:20 CEST 2001 Jens Finke <jens@gnome.org>
+
+ * Makfefile.am (dist-hook): Don't copy libxml.spec, it's already
+ included due to listing in EXTRA_DIST.
+
+ * libxml.spec.in: Updated.
+
Mon Sep 17 18:52:37 CEST 2001 Daniel Veillard <daniel@veillard.com>
* configure.in: Joe Orton provided a patch fixing a problem
diff --git a/Makefile.am b/Makefile.am
index f52516d3..dd5a5a0f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -482,8 +482,7 @@ Validtests : xmllint
rm result.$$name error.$$name ; \
fi ; fi ; done)
-dist-hook: libxml.spec
- -cp libxml.spec $(distdir)
+dist-hook:
(cd $(srcdir) ; tar -cf - --exclude CVS win32 test result SAXresult ) | (cd $(distdir); tar xf -)
cleantar:
diff --git a/libxml.spec.in b/libxml.spec.in
index 12c888ad..521a0aa5 100644
--- a/libxml.spec.in
+++ b/libxml.spec.in
@@ -1,19 +1,12 @@
-# Note that this is NOT a relocatable package
-%define ver @VERSION@
-%define prefix /usr
-%define datadir %{prefix}/share
-
-Summary: Library providing XML and HTML support
-Name: libxml2
-Version: %ver
-Release: 1
-Copyright: LGPL
-Group: Development/Libraries
-Source: ftp://xmlsoft.org/libxml2-%{ver}.tar.gz
-BuildRoot: /var/tmp/libxml2-%{PACKAGE_VERSION}-root
-
-URL: http://xmlsoft.org/
-Docdir: %{datadir}/doc
+Summary: Library providing XML and HTML support
+Name: libxml2
+Version: @VERSION@
+Release: 1
+License: LGPL
+Group: Development/Libraries
+Source: ftp://xmlsoft.org/%{name}-%{version}.tar.gz
+BuildRoot: /var/tmp/%{name}-%{version}-root
+URL: http://xmlsoft.org/
%description
This library allows to manipulate XML files. It includes support
@@ -27,9 +20,9 @@ available, with existing HTTP and FTP modules and combined to an
URI library.
%package devel
-Summary: Libraries, includes, etc. to develop XML and HTML applications
-Group: Development/Libraries
-Requires: libxml2 = %{version}
+Summary: Libraries, includes, etc. to develop XML and HTML applications
+Group: Development/Libraries
+Requires: %{name} = %{version}
%description devel
Libraries, include files, etc you can use to develop XML applications.
@@ -44,52 +37,30 @@ available, with existing HTTP and FTP modules and combined to an
URI library.
-%changelog
-
-* Thu Apr 26 2001 Toshio Kuratomi <badger@prtr-13.ucsc.edu>
-
-[2.3.7]
-- Added libxml.m4 to the distribution file list
-- Moved the man pages from /usr/man to /usr/share/man to conform to FHS2.0
-- Moved programmer documentation into the devel package
-
-* Thu Sep 23 1999 Daniel Veillard <daniel@veillard.com>
-
-- corrected the spec file alpha stuff
-- switched to version 1.7.1
-- Added validation, XPath, nanohttp, removed memory leaks
-- Renamed CHAR to xmlChar
-
-* Wed Jun 2 1999 Daniel Veillard <daniel@veillard.com>
-
-- Switched to version 1.1: SAX extensions, better entities support, lots of
- bug fixes.
-
-* Sun Oct 4 1998 Daniel Veillard <daniel@veillard.com>
-
-- Added xml-config to the package
-
-* Thu Sep 24 1998 Michael Fulbright <msf@redhat.com>
-
-- Built release 0.30
-
%prep
-%setup
+%setup -q
%build
-# Needed for snapshot releases.
-if [ ! -f configure ]; then
%ifarch alpha
- CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --host=alpha-redhat-linux --prefix=%prefix --sysconfdir="/etc" --mandir=%datadir/man
-%else
- CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix --sysconfdir="/etc" --mandir=%datadir/man
+ MYARCH_FLAGS="--host=alpha-redhat-linux"
%endif
+
+# Needed for snapshot releases.
+MYCFLAGS="$RPM_OPT_FLAGS"
+if [ ! -f configure ]; then
+ CFLAGS="$MYCFLAGS" ./autogen.sh $MYARCH_FLAGS \
+ --prefix=%{_prefix} \
+ --sysconfdir=%{_sysconfdir} \
+ --mandir=%{_mandir} --libdir=%{_libdir} \
+ --includedir=%{_includedir} \
+ --with-html-dir='$(datadir)/gtk-doc/html'
else
-%ifarch alpha
- CFLAGS="$RPM_OPT_FLAGS" ./configure --host=alpha-redhat-linux --prefix=%prefix --sysconfdir="/etc" --mandir=%datadir/man
-%else
- CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --sysconfdir="/etc" --mandir=%datadir/man
-%endif
+ CFLAGS="$MYCFLAGS" ./configure $MYARCH_FLAGS \
+ --prefix=%{_prefix} \
+ --sysconfdir=%{_sysconfdir} \
+ --mandir=%{_mandir} --libdir=%{_libdir} \
+ --includedir=%{_includedir} \
+ --with-html-dir='$(datadir)/gtk-doc/html'
fi
if [ "$SMP" != "" ]; then
@@ -102,9 +73,12 @@ fi
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{datadir}/man/man1
-install -d $RPM_BUILD_ROOT%{datadir}/man/man4
-make prefix=$RPM_BUILD_ROOT%{prefix} mandir=$RPM_BUILD_ROOT%{datadir}/man install
+make -k sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} \
+ prefix=$RPM_BUILD_ROOT%{_prefix} \
+ mandir=$RPM_BUILD_ROOT%{_mandir} \
+ libdir=$RPM_BUILD_ROOT%{_libdir} \
+ includedir=$RPM_BUILD_ROOT%{_includedir} \
+ install
%clean
rm -rf $RPM_BUILD_ROOT
@@ -117,24 +91,61 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-, root, root)
%doc AUTHORS ChangeLog NEWS README COPYING COPYING.LIB TODO
-%doc %{prefix}/share/man/man1/xmllint.1*
-%doc %{prefix}/share/man/man1/xmlcatalog.1*
-%doc %{prefix}/share/man/man4/libxml.4*
+%doc %{_mandir}/man1/xmllint.1*
+%doc %{_mandir}/man1/xmlcatalog.1*
+%doc %{_mandir}/man4/libxml.4*
-%{prefix}/lib/lib*.so.*
-%{prefix}/bin/xmllint
-%{prefix}/bin/xmlcatalog
+%{_libdir}/lib*.so.*
+%{_bindir}/xmllint
+%{_bindir}/xmlcatalog
%files devel
%defattr(-, root, root)
-%doc /usr/share/man/man1/xml2-config.1*
-%doc doc/*.html doc/html
+%doc %{_mandir}/man1/xml2-config.1*
+%{_libdir}/lib*.so
+%{_libdir}/*a
+%{_libdir}/*.sh
+%{_includedir}/libxml2
+%{_bindir}/xml2-config
+%{_datadir}/gtk-doc/html/%{name}-%{version}
+%{_datadir}/aclocal/libxml.m4
+%{_libdir}/pkgconfig/*.pc
+
+
+%changelog
+* Wed Sep 19 2001 Jens Finke <jens@gnome.org>
+- Updated file to match gpp standard
+- beautified header
+- moved changelog to the end of the file
+- removed all hardcoded paths (prefix, docdir)
+- make use of rpm macros (like _prefix, _bindir, ...)
+- moved the html doc to $(datadir)/gtk-doc/html where
+ other GNOME 2.0 packages reside too
+- removed mandir hacks, this should be handled by
+ a proper ~/.rpmmacros file.
+
+* Thu Apr 26 2001 Toshio Kuratomi <badger@prtr-13.ucsc.edu>
+- Added libxml.m4 to the distribution file list
+- Moved the man pages from /usr/man to /usr/share/man to conform to FHS2.0
+- Moved programmer documentation into the devel package
-%{prefix}/lib/lib*.so
-%{prefix}/lib/*a
-%{prefix}/lib/*.sh
-%{prefix}/include/*
-%{prefix}/bin/xml2-config
-%{prefix}/share/aclocal/libxml.m4
-%{prefix}/lib/pkgconfig/libxml-2.0.pc
+* Thu Sep 23 1999 Daniel Veillard <daniel@veillard.com>
+
+- corrected the spec file alpha stuff
+- switched to version 1.7.1
+- Added validation, XPath, nanohttp, removed memory leaks
+- Renamed CHAR to xmlChar
+
+* Wed Jun 2 1999 Daniel Veillard <daniel@veillard.com>
+
+- Switched to version 1.1: SAX extensions, better entities support, lots of
+ bug fixes.
+
+* Sun Oct 4 1998 Daniel Veillard <daniel@veillard.com>
+
+- Added xml-config to the package
+
+* Thu Sep 24 1998 Michael Fulbright <msf@redhat.com>
+
+- Built release 0.30