[packages/mxml] - new Source0 URL, updated to 2.8 - updated lpthread patch - real pl description, cleanups
qboosh
qboosh at pld-linux.org
Sat Apr 19 12:42:43 CEST 2014
commit 559b3ecf392038f218e18cbcb4062de3e6a8338a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Apr 19 12:44:38 2014 +0200
- new Source0 URL, updated to 2.8
- updated lpthread patch
- real pl description, cleanups
mxml-lpthread.patch | 18 +++++++++---------
mxml.spec | 55 +++++++++++++++++++++++++++++++----------------------
2 files changed, 41 insertions(+), 32 deletions(-)
---
diff --git a/mxml.spec b/mxml.spec
index 7efb0d8..52862e1 100644
--- a/mxml.spec
+++ b/mxml.spec
@@ -1,12 +1,12 @@
-Summary: Mini-XML: Lightweight XML Library
-Summary(pl.UTF-8): Mała biblioteka parsująca XML
+Summary: Mini-XML: Lightweight XML support library
+Summary(pl.UTF-8): Mini-XML - lekka biblioteka obsługująca XML
Name: mxml
-Version: 2.6
-Release: 3
-License: GPL v2
+Version: 2.8
+Release: 1
+License: LGPL v2 with exceptions
Group: Libraries
-Source0: http://ftp.easysw.com/pub/mxml/2.6/%{name}-%{version}.tar.gz
-# Source0-md5: 68977789ae64985dddbd1a1a1652642e
+Source0: http://www.msweet.org/files/project3/%{name}-%{version}.tar.gz
+# Source0-md5: d85ee6d30de053581242c4a86e79a5d2
Patch0: %{name}-lpthread.patch
URL: http://www.minixml.org/
BuildRequires: autoconf
@@ -27,26 +27,35 @@ names, attributes, and attribute values are supported with no preset
limits, just available memory.
%description -l pl.UTF-8
-Mini-XML jest małą biblioteką parsującą XML.
+Mini-XML to mała biblioteka XML, której można używać do odczytu i
+zapisu plików w formacie XML i zbliżonym do XML w aplikacjach nie
+wymagających dużych, niestandardowych bibliotek.
+
+Mini-XML obsługuje odczyt plików i łańcuchów XML zakodowanych w UTF-8
+i UTF-16 oraz zapisu w UTF-8. Dane są przechowywane w listowej
+strukturze drzewiastej, z zachowaniem hierarchii danych XML;
+obsługiwane są dowolne nazwy, atrybuty i wartości atrybutów elementów
+bez narzuconych limitów poza dostępną pamięcią.
%package devel
-Summary: Header files for mxml
-Summary(pl.UTF-8): Pliki nagłówkowe dla mxml
+Summary: Header files for mxml library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki mxml
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Conflicts: libmxml-devel
%description devel
-Header files for mxml.
+Header files for mxml library.
%description devel -l pl.UTF-8
-Pliki nagłówkowe dla mxml.
+Pliki nagłówkowe biblioteki mxml.
%package static
Summary: Static mxml library
Summary(pl.UTF-8): Statyczna biblioteka mxml
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
+Conflicts: libmxml-static
%description static
Static mxml library.
@@ -57,14 +66,15 @@ Statyczna biblioteka mxml.
%prep
%setup -q
%patch0 -p1
-%{__sed} -i -e 's/OPTIM="-O"/OPTIM=$OPTFLAGS/' configure.in
+
+%{__sed} -i -e '/^\.SILENT/d' Makefile.in
%build
%{__autoconf}
%configure \
--enable-shared
%{__make} \
- OPTFLAGS="%{rpmcflags}"
+ OPTIM="%{rpmcflags} -fPIC"
%install
rm -rf $RPM_BUILD_ROOT
@@ -72,9 +82,7 @@ rm -rf $RPM_BUILD_ROOT
%{__make} install \
BUILDROOT=$RPM_BUILD_ROOT
-rm -rf $RPM_BUILD_ROOT%{_docdir}/mxml
-rm -f $RPM_BUILD_ROOT%{_mandir}/cat1/mxmldoc.1*
-rm -f $RPM_BUILD_ROOT%{_mandir}/cat3/mxml.3*
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/mxml
%clean
rm -rf $RPM_BUILD_ROOT
@@ -84,20 +92,21 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc CHANGES README
+# COPYING contains exceptions to LGPL
+%doc CHANGES COPYING README
+%attr(755,root,root) %{_bindir}/mxmldoc
%attr(755,root,root) %{_libdir}/libmxml.so.*.*
%attr(755,root,root) %ghost %{_libdir}/libmxml.so.1
-%attr(755,root,root) %{_bindir}/mxmldoc*
%{_mandir}/man1/mxmldoc.1*
%files devel
%defattr(644,root,root,755)
%doc doc/*.html
-%{_libdir}/libmxml.so
-%{_pkgconfigdir}/*.pc
-%{_includedir}/*.h
+%attr(755,root,root) %{_libdir}/libmxml.so
+%{_pkgconfigdir}/mxml.pc
+%{_includedir}/mxml.h
%{_mandir}/man3/mxml.3*
%files static
%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/lib*.a
+%attr(755,root,root) %{_libdir}/libmxml.a
diff --git a/mxml-lpthread.patch b/mxml-lpthread.patch
index b82be57..240d369 100644
--- a/mxml-lpthread.patch
+++ b/mxml-lpthread.patch
@@ -1,11 +1,11 @@
---- mxml-2.6/Makefile.in.orig 2008-12-06 05:20:38.000000000 +0100
-+++ mxml-2.6/Makefile.in 2011-04-04 13:08:43.000000000 +0200
-@@ -256,7 +256,7 @@
- #
+--- mxml-2.8/Makefile.in.orig 2014-04-19 10:26:41.746170424 +0200
++++ mxml-2.8/Makefile.in 2014-04-19 10:37:35.666156796 +0200
+@@ -297,7 +297,7 @@
- libmxml.so.1.4: $(LIBOBJS)
-- $(DSO) $(DSOFLAGS) -o libmxml.so.1.4 $(LIBOBJS)
-+ $(DSO) $(DSOFLAGS) -o libmxml.so.1.4 $(LIBOBJS) -lpthread
+ libmxml.so.1.5: $(LIBOBJS)
+ echo Creating $@...
+- $(DSO) $(DSOFLAGS) -o libmxml.so.1.5 $(LIBOBJS)
++ $(DSO) $(DSOFLAGS) -o libmxml.so.1.5 $(LIBOBJS) -lpthread
$(RM) libmxml.so libmxml.so.1
- $(LN) libmxml.so.1.4 libmxml.so
- $(LN) libmxml.so.1.4 libmxml.so.1
+ $(LN) libmxml.so.1.5 libmxml.so
+ $(LN) libmxml.so.1.5 libmxml.so.1
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mxml.git/commitdiff/559b3ecf392038f218e18cbcb4062de3e6a8338a
More information about the pld-cvs-commit
mailing list