]> git.pld-linux.org Git - packages/libxml2.git/blobdiff - libxml2.spec
- readline is not used by default
[packages/libxml2.git] / libxml2.spec
index 3daebc983edf3f9e2ba7f2ce140ed509f93e142f..c7e1773e89e99b68caadf905092f2e5f37a213a6 100644 (file)
@@ -1,35 +1,37 @@
 #
 # Conditional build:
 %bcond_without python  # don't build python module
+%bcond_without static_libs # don't build static libraries
 #
-%{?with_python:%include        /usr/lib/rpm/macros.python}
 Summary:       libXML library
 Summary(es):   Biblioteca libXML version 2
 Summary(pl):   Biblioteka libXML wersja 2
 Summary(pt_BR):        Biblioteca libXML versão 2
 Name:          libxml2
-Version:       2.6.18
+Version:       2.6.27
 Release:       2
 Epoch:         1
 License:       MIT
 Group:         Libraries
-Source0:       ftp://xmlsoft.org/%{name}-%{version}.tar.gz
-# Source0-md5: ee5c76a8be34772ccec3f566dc154936
+#Source0:      http://ftp.gnome.org/pub/GNOME/sources/libxml2/2.6/%{name}-%{version}.tar.bz2
+Source0:       ftp://xmlsoft.org/libxml2/%{name}-%{version}.tar.gz
+# Source0-md5: f5806f5059ef7bd4d3fcf36cf116d1ef
 Patch0:                %{name}-amfix.patch
 Patch1:                %{name}-man_fixes.patch
 Patch2:                %{name}-open.gz.patch
 Patch3:                %{name}-DESTDIR.patch
-Patch4:                %{name}-gcc4.patch
 URL:           http://xmlsoft.org/
 BuildRequires: autoconf >= 2.2
 BuildRequires: automake
 BuildRequires: libtool >= 1:1.4.2-9
-BuildRequires: ncurses-devel
 %{?with_python:BuildRequires:  python-devel}
 %{?with_python:BuildRequires:  python-modules}
-BuildRequires: readline-devel >= 4.2
 %{?with_python:BuildRequires:  rpm-pythonprov}
 BuildRequires: zlib-devel
+# history support in xmllint is disabled by default
+#BuildRequires:        ncurses-devel
+#BuildRequires:        readline-devel >= 4.2
+Obsoletes:     xml-common
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -121,7 +123,6 @@ Modu
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
-%patch4 -p1
 
 %build
 %{__libtoolize}
@@ -129,7 +130,9 @@ Modu
 %{__autoconf}
 %{__autoheader}
 %{__automake}
-%configure
+%configure \
+       %{!?with_static_libs:--enable-static=no}
+
 %{__make}
 
 %install
@@ -152,10 +155,14 @@ mv -f $RPM_BUILD_ROOT%{_docdir}/%{name}-python-%{version}/examples/* \
 
 # move html doc to -devel package
 install -d $RPM_BUILD_ROOT%{_docdir}/%{name}-devel-%{version}
-mv $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html \
+mv -f $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/html \
        $RPM_BUILD_ROOT%{_docdir}/%{name}-devel-%{version}
 rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
 
+# deal with gtk-doc files
+install -d $RPM_BUILD_ROOT%{_gtkdocdir}
+mv -f $RPM_BUILD_ROOT%{_datadir}/gtk-doc/html/* $RPM_BUILD_ROOT%{_gtkdocdir}
+
 # install catalog file
 install -d $RPM_BUILD_ROOT%{_sysconfdir}/xml
 LD_LIBRARY_PATH=.libs ./xmlcatalog --create \
@@ -181,7 +188,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man3/*
 
 %dir %{_sysconfdir}/xml
-%config(noreplace) %verify(not mtime md5) %{_sysconfdir}/xml/catalog
+%config(noreplace) %verify(not md5 mtime) %{_sysconfdir}/xml/catalog
 
 %files devel
 %defattr(644,root,root,755)
@@ -194,10 +201,13 @@ rm -rf $RPM_BUILD_ROOT
 %{_includedir}/libxml2
 %{_mandir}/man1/xml2-config.1*
 %{_examplesdir}/%{name}-devel-%{version}
+%{_gtkdocdir}/libxml2
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
+%endif
 
 %files progs
 %defattr(644,root,root,755)
This page took 0.045664 seconds and 4 git commands to generate.