|
@@ -1,17 +1,21 @@
|
|
|
%global apiver 2.6
|
|
|
+
|
|
|
Name: libxml++
|
|
|
-Version: 2.40.1
|
|
|
-Release: 2%{?_dist_release}
|
|
|
Summary: C++ wrapper for the libxml2 XML parser library
|
|
|
Summary(ja): libxml2 XML 解析ライブラリの C++ ラッパー
|
|
|
+Version: 2.42.0
|
|
|
+Release: 1%{?_dist_release}
|
|
|
+Group: system
|
|
|
+Vendor: Project Vine
|
|
|
+Distribution: Vine Linux
|
|
|
|
|
|
-Group: System Environment/Libraries
|
|
|
License: LGPLv2+
|
|
|
URL: http://libxmlplusplus.sourceforge.net/
|
|
|
-
|
|
|
-Source: http://ftp.gnome.org/pub/GNOME/sources/libxml++/2.40/libxml++-%{version}.tar.xz
|
|
|
+%global shortver %(echo %{version} | sed -e 's/\.[0-9]*$//')
|
|
|
+Source: https://download.gnome.org/sources/libxml++/%{shortver}/libxml++-%{version}.tar.xz
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
+BuildRequires: meson
|
|
|
BuildRequires: libxml2-devel >= 2.6.1
|
|
|
BuildRequires: glibmm-devel >= 2.4.0
|
|
|
BuildRequires: doxygen, graphviz
|
|
@@ -25,7 +29,7 @@ and Murray Cumming.
|
|
|
%package devel
|
|
|
Summary: Development files for %{name}
|
|
|
Summary(ja): %{name} の開発用ファイル
|
|
|
-Group: Development/Libraries
|
|
|
+Group: programming
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
Requires: pkgconfig
|
|
|
Requires: libxml2-devel
|
|
@@ -35,78 +39,67 @@ Requires: glibmm-devel
|
|
|
This package contains the headers and libraries for libxml++ development.
|
|
|
|
|
|
|
|
|
+%package doc
|
|
|
+Summary: Documentation for %{name}, includes full API docs
|
|
|
+Group: documentation
|
|
|
+BuildArch: noarch
|
|
|
+Requires: %{name} = %{version}-%{release}
|
|
|
+
|
|
|
+%description doc
|
|
|
+This package contains the full API documentation for %{name}.
|
|
|
+
|
|
|
+
|
|
|
+%debug_package
|
|
|
+
|
|
|
+
|
|
|
%prep
|
|
|
%setup -q
|
|
|
# fix wrong end of line
|
|
|
sed -i s'#\r##' examples/dom_parser/example_with_namespace.xml
|
|
|
|
|
|
+
|
|
|
%build
|
|
|
-%configure \
|
|
|
-%if %{?_dist_release} == "vl5"
|
|
|
- --disable-documentation \
|
|
|
-%endif
|
|
|
- --disable-static
|
|
|
-make %{?_smp_mflags}
|
|
|
+%meson -Dbuild-documentation=true
|
|
|
+%meson_build
|
|
|
|
|
|
|
|
|
%install
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
-%makeinstall
|
|
|
-find $RPM_BUILD_ROOT -name "*.la" -o -name '*.a' | xargs rm -f
|
|
|
-
|
|
|
-# Modify temporary working directories for files section.
|
|
|
-rm -rf _reference _examples _manual
|
|
|
-mkdir -m 755 _reference _examples _manual
|
|
|
-
|
|
|
-%if %{?_dist_release} != "vl5"
|
|
|
-cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{apiver}/reference/html _reference/reference
|
|
|
-%endif
|
|
|
-cp -a docs/manual/html _manual/manual
|
|
|
-cp -a examples _examples/examples
|
|
|
-rm -rf $RPM_BUILD_ROOT%{_docdir}
|
|
|
-
|
|
|
-# Delete non-working makefiles, object files, prebuilt binaries and
|
|
|
-# empty files.
|
|
|
-find _examples -type f -a \( -name Makefile\* -o -name \*.o \
|
|
|
- -o \( -name example -a -perm +0111 \) -o -empty \) | xargs rm -f
|
|
|
-find _examples -type d -name '*.libs' -o -name '.deps' | xargs rm -rf
|
|
|
-
|
|
|
-%if %{?_dist_release} != "vl5"
|
|
|
-# fix devhelp index file
|
|
|
-sed -i "s#"$RPM_BUILD_ROOT"##g" \
|
|
|
- $RPM_BUILD_ROOT%{_datadir}/devhelp/books/%{name}-%{apiver}/%{name}-%{apiver}.devhelp2
|
|
|
-sed -i "s#"/%{name}-%{apiver}/reference/html"#"/%{name}-devel-%{version}/reference"#" \
|
|
|
- $RPM_BUILD_ROOT%{_datadir}/devhelp/books/%{name}-%{apiver}/%{name}-%{apiver}.devhelp2
|
|
|
-%endif
|
|
|
+%meson_install
|
|
|
|
|
|
-%post -p /sbin/ldconfig
|
|
|
-
|
|
|
-%postun -p /sbin/ldconfig
|
|
|
|
|
|
%clean
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
+%post -p /sbin/ldconfig
|
|
|
+%postun -p /sbin/ldconfig
|
|
|
+
|
|
|
+
|
|
|
%files
|
|
|
%defattr (-,root,root,-)
|
|
|
-%doc AUTHORS COPYING NEWS README ChangeLog
|
|
|
+%license COPYING
|
|
|
+%doc AUTHORS NEWS README
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
%files devel
|
|
|
%defattr (-,root,root,-)
|
|
|
-%doc _examples/examples _manual/manual
|
|
|
%{_includedir}/*
|
|
|
%{_libdir}/*.so
|
|
|
%{_libdir}/pkgconfig/*
|
|
|
%dir %{_libdir}/%{name}-%{apiver}
|
|
|
%dir %{_libdir}/%{name}-%{apiver}/include
|
|
|
%{_libdir}/%{name}-%{apiver}/include/*.h
|
|
|
-%if %{?_dist_release} != "vl5"
|
|
|
-%doc _reference/reference
|
|
|
-%{_datadir}/devhelp/books/%{name}-%{apiver}/%{name}-%{apiver}.devhelp2
|
|
|
-%endif
|
|
|
+
|
|
|
+%files doc
|
|
|
+%doc %{_datadir}/devhelp/books/%{name}-%{apiver}
|
|
|
+%doc %{_docdir}/%{name}-%{apiver}
|
|
|
+
|
|
|
|
|
|
%changelog
|
|
|
+* Sat Feb 20 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.42.0-1
|
|
|
+- new upstream release.
|
|
|
+
|
|
|
* Wed Jun 29 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.40.1-2
|
|
|
- rebuild with gcc-5.4.0
|
|
|
|