commit f6e4a740f94e69a500e2198fe0151fa61c74839e2ebf338ac8ad8aa096650b10 Author: Pascal Bleser Date: Sat Apr 2 23:01:40 2011 +0000 0.3.3 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libxmlpatch?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/libxmlpatch-0.3.3.tar.bz2 b/libxmlpatch-0.3.3.tar.bz2 new file mode 100644 index 0000000..322d965 --- /dev/null +++ b/libxmlpatch-0.3.3.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:834f9d18afe4b6f93c6ab80c930c343aed1f481ed985612d5678bdab4df039c6 +size 315401 diff --git a/libxmlpatch-upgrade_check.patch b/libxmlpatch-upgrade_check.patch new file mode 100644 index 0000000..f3143eb --- /dev/null +++ b/libxmlpatch-upgrade_check.patch @@ -0,0 +1,11 @@ +--- tests/check_diff.c.orig 2011-04-03 00:50:21.000000000 +0200 ++++ tests/check_diff.c 2011-04-03 00:51:46.000000000 +0200 +@@ -259,7 +259,7 @@ + static void + add_test (TCase *tc, int i) + { +- _tcase_add_test (tc, arr_tests[i].fn, arr_tests[i].name, 0, 0, 1); ++ _tcase_add_test (tc, arr_tests[i].fn, arr_tests[i].name, 0, 0, 1, 1); + } + + static void diff --git a/libxmlpatch.changes b/libxmlpatch.changes new file mode 100644 index 0000000..8f06688 --- /dev/null +++ b/libxmlpatch.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Sat Apr 02 23:01:09 CET 2011 - pascal.bleser@opensuse.org + +- initial version (0.3.3) + diff --git a/libxmlpatch.spec b/libxmlpatch.spec new file mode 100644 index 0000000..a443d85 --- /dev/null +++ b/libxmlpatch.spec @@ -0,0 +1,114 @@ +# 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 +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 +BuildRequires: check-devel +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} + +%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 +%patch1 + +%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 + +%clean +%{?buildroot:%__rm -rf "%{buildroot}"} + +%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 +