[packages/libxml++4] - updated to 4.0.0 as libxml++4 (C++17/glibmm2.68 based)

qboosh qboosh at pld-linux.org
Mon Dec 21 21:01:01 CET 2020


commit 983d0bd89a97b7adddfaa9c096ec0f675516ba0a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Dec 21 21:01:40 2020 +0100

    - updated to 4.0.0 as libxml++4 (C++17/glibmm2.68 based)

 libxml++.spec => libxml++4.spec | 41 +++++++++++++++++++++--------------------
 1 file changed, 21 insertions(+), 20 deletions(-)
---
diff --git a/libxml++.spec b/libxml++4.spec
similarity index 77%
rename from libxml++.spec
rename to libxml++4.spec
index cce3fe0..9497288 100644
--- a/libxml++.spec
+++ b/libxml++4.spec
@@ -2,21 +2,22 @@
 # Conditional build:
 %bcond_without	static_libs	# static library
 #
+%define	glibmm_ver	2.68.0
 Summary:	C++ interface for working with XML files
 Summary(pl.UTF-8):	Interfejs C++ do pracy z plikami XML
-Name:		libxml++
-Version:	3.2.2
+Name:		libxml++4
+Version:	4.0.0
 Release:	1
 License:	LGPL v2.1
 Group:		Libraries
-Source0:	http://ftp.gnome.org/pub/GNOME/sources/libxml++/3.2/%{name}-%{version}.tar.xz
-# Source0-md5:	02228e5a9915d1d75d8a01a0b717f5a8
+Source0:	https://download.gnome.org/sources/libxml++/4.0/libxml++-%{version}.tar.xz
+# Source0-md5:	9612653c27f162ec1e62edda16268229
 URL:		http://libxmlplusplus.sourceforge.net/
 BuildRequires:	autoconf >= 2.59
 BuildRequires:	automake >= 1:1.11
 BuildRequires:	doxygen >= 1:1.8.9
-BuildRequires:	glibmm-devel >= 2.32.0
-BuildRequires:	libstdc++-devel >= 6:4.7
+BuildRequires:	glibmm2.68-devel >= %{glibmm_ver}
+BuildRequires:	libstdc++-devel >= 6:7
 BuildRequires:	libtool >= 2:2.2.6
 BuildRequires:	libxml2-devel >= 1:2.7.7
 BuildRequires:	mm-common >= 0.9.10
@@ -24,7 +25,7 @@ BuildRequires:	pkgconfig
 BuildRequires:	rpmbuild(macros) >= 1.752
 BuildRequires:	tar >= 1:1.22
 BuildRequires:	xz
-Requires:	glibmm >= 2.32.0
+Requires:	glibmm2.68 >= %{glibmm_ver}
 Requires:	libxml2 >= 1:2.7.7
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -39,8 +40,8 @@ Summary:	Header files for libxml++
 Summary(pl.UTF-8):	Pliki nagłówkowe do libxml++
 Group:		Development/Libraries
 Requires:	%{name} = %{version}-%{release}
-Requires:	glibmm-devel >= 2.32.0
-Requires:	libstdc++-devel >= 6:4.7
+Requires:	glibmm2.68-devel >= %{glibmm_ver}
+Requires:	libstdc++-devel >= 6:7
 Requires:	libxml2-devel >= 1:2.7.7
 
 %description devel
@@ -86,7 +87,7 @@ libxml++ - example programs.
 libxml++ - przykładowe programy.
 
 %prep
-%setup -q
+%setup -q -n libxml++-%{version}
 
 %build
 mm-common-prepare --copy --force
@@ -109,7 +110,7 @@ install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/libxml++-3.0.la
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libxml++-4.0.la
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -120,26 +121,26 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog NEWS README
-%attr(755,root,root) %{_libdir}/libxml++-3.0.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libxml++-3.0.so.1
+%attr(755,root,root) %{_libdir}/libxml++-4.0.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libxml++-4.0.so.1
 
 %files devel
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libxml++-3.0.so
-%{_libdir}/libxml++-3.0
-%{_includedir}/libxml++-3.0
-%{_pkgconfigdir}/libxml++-3.0.pc
+%attr(755,root,root) %{_libdir}/libxml++-4.0.so
+%{_libdir}/libxml++-4.0
+%{_includedir}/libxml++-4.0
+%{_pkgconfigdir}/libxml++-4.0.pc
 
 %if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
-%{_libdir}/libxml++-3.0.a
+%{_libdir}/libxml++-4.0.a
 %endif
 
 %files apidocs
 %defattr(644,root,root,755)
-%{_datadir}/devhelp/books/libxml++-3.0
-%{_docdir}/libxml++-3.0
+%{_datadir}/devhelp/books/libxml++-4.0
+%{_docdir}/libxml++-4.0
 
 %files examples
 %defattr(644,root,root,755)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libxml++4.git/commitdiff/983d0bd89a97b7adddfaa9c096ec0f675516ba0a



More information about the pld-cvs-commit mailing list