# vim: set sw=4 ts=4 et nu: Name: libxmlpatch %define soname 0 Version: 0.3.3 Release: 0 Summary: XML Patch Library # http://prdownloads.sourceforge.net/xmlpatch/libxmlpatch-%{version}.tar.gz Source: libxmlpatch-%{version}.tar.bz2 Patch1: libxmlpatch-upgrade_check.patch Patch2: libxmlpatch-disable_tests.patch URL: http://xmlpatch.sourceforge.net/ Group: System/Libraries License: GNU Lesser General Public License version 2.1 or later (LGPL v2.1 or later) BuildRoot: %{_tmppath}/build-%{name}-%{version} BuildRequires: libxml2-devel BuildRequires: glib2-devel %if 0%{?suse_version} >= 1110 BuildRequires: check-devel %endif BuildRequires: gcc make glibc-devel pkgconfig BuildRequires: autoconf automake libtool %description Extensible Markup Language (XML) documents are widely used as containers for the exchange and storage of arbitrary data in today's systems. Updates to this data requires exchanging of the entire XML document between hosts, unless there's a mechanism that allows exchanging only the updates of XML documents. %package -n %{name}%{soname} Summary: XML Patch Library Group: System/Libraries %description -n %{name}%{soname} Extensible Markup Language (XML) documents are widely used as containers for the exchange and storage of arbitrary data in today's systems. Updates to this data requires exchanging of the entire XML document between hosts, unless there's a mechanism that allows exchanging only the updates of XML documents. This package contains the runtime environment for the xmlpatch framework utilizing XML Path language (XPath) selectors with the aid of which a set of patches can be applied to an existing initial XML document. %package devel Summary: XML Patch Library Group: Development/Libraries/C and C++ Requires: %{name} = %{version} Requires: libxml2-devel Requires: glib2-devel %description devel Extensible Markup Language (XML) documents are widely used as containers for the exchange and storage of arbitrary data in today's systems. Updates to this data requires exchanging of the entire XML document between hosts, unless there's a mechanism that allows exchanging only the updates of XML documents. This package contains the development environment for the xmlpatch framework utilizing XML Path language (XPath) selectors with the aid of which a set of patches can be applied to an existing initial XML document. %package -n xmlpatch Summary: XML Patch Command-Line Utilities Group: Productivity/Text/Utilities Requires: %{name} = %{version} %description -n xmlpatch Extensible Markup Language (XML) documents are widely used as containers for the exchange and storage of arbitrary data in today's systems. Updates to this data requires exchanging of the entire XML document between hosts, unless there's a mechanism that allows exchanging only the updates of XML documents. This package contains command-line tools to perform diffs and patch on XML files. %prep %setup -q %if 0%{?suse_version} >= 1130 %patch1 %endif %if 0%{?suse_version} < 1110 %patch2 %endif %build %configure %__make %{?_smp_flags} %install %makeinstall %__rm "%{buildroot}%{_libdir}"/*.la %__rm -rf "%{buildroot}%{_libdir}/tests" %post -n libxmlpatch%{soname} -p /sbin/ldconfig %postun -n libxmlpatch%{soname} -p /sbin/ldconfig %files -n libxmlpatch%{soname} %defattr(-,root,root) %doc COPYING ChangeLog LEGAL_NOTICE README TODO %{_libdir}/libxmlpatch.so.%{soname} %{_libdir}/libxmlpatch.so.%{soname}.* %{_libdir}/libxmldiff.so.%{soname} %{_libdir}/libxmldiff.so.%{soname}.* %files -n xmlpatch %defattr(-,root,root) %{_bindir}/xml_diff %{_bindir}/xml_patch %files devel %defattr(-,root,root) %{_includedir}/libxmldiff %{_includedir}/libxmlpatch %{_libdir}/libxmldiff.so %{_libdir}/libxmldiff.a %{_libdir}/libxmlpatch.so %{_libdir}/libxmlpatch.a %{_libdir}/pkgconfig/libxmldiff.pc %{_libdir}/pkgconfig/libxmlpatch.pc %changelog