]> git.pld-linux.org Git - packages/libxml2.git/blobdiff - libxml2.spec
- don't include macros.python, it's obsolete
[packages/libxml2.git] / libxml2.spec
index 0cfe0c38730b20f37597c25bbd5875d14ad838ed..74a5dabe4c5865e2c6032b6db54f6f62fa45f710 100644 (file)
@@ -1,20 +1,21 @@
 #
 # 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.16
+Version:       2.6.27
 Release:       2
 Epoch:         1
 License:       MIT
 Group:         Libraries
-Source0:       ftp://xmlsoft.org/%{name}-%{version}.tar.gz
-# Source0-md5: 7b28b412498625b51d86e58e30fbdd31
+#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
@@ -29,6 +30,7 @@ BuildRequires:        ncurses-devel
 BuildRequires: readline-devel >= 4.2
 %{?with_python:BuildRequires:  rpm-pythonprov}
 BuildRequires: zlib-devel
+Obsoletes:     xml-common
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -127,7 +129,9 @@ Modu
 %{__autoconf}
 %{__autoheader}
 %{__automake}
-%configure
+%configure \
+       %{!?with_static_libs:--enable-static=no}
+
 %{__make}
 
 %install
@@ -150,10 +154,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 \
@@ -179,7 +187,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)
@@ -192,10 +200,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.035297 seconds and 4 git commands to generate.