| |
@@ -2,13 +2,17 @@
|
| |
|
| |
Name: pugixml
|
| |
Version: 1.9
|
| |
- Release: 1%{?dist}
|
| |
+ Release: 2%{?dist}
|
| |
Summary: A light-weight C++ XML processing library
|
| |
Group: Development/Libraries
|
| |
License: MIT
|
| |
URL: http://pugixml.org
|
| |
|
| |
Source0: https://github.com/zeux/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
|
| |
+ # pugixml.pc is not installed automatically yet in version 1.9.
|
| |
+ # See: https://github.com/zeux/pugixml/pull/193
|
| |
+ # Care about libdir (lib, lib64) of the .pc file manually here.
|
| |
+ Source1: pugixml.pc
|
| |
|
| |
BuildRequires: cmake gcc-c++
|
| |
|
| |
@@ -40,7 +44,8 @@
|
| |
|
| |
%prep
|
| |
%setup -q -n %{name}-%{version}%{?prerel:%{prerel}}
|
| |
-
|
| |
+ cp -a %{SOURCE1} .
|
| |
+ sed -i "s|^libdir=|libdir=%{_libdir}|" pugixml.pc
|
| |
|
| |
%build
|
| |
rm -rf build && mkdir build && pushd build
|
| |
@@ -53,6 +58,8 @@
|
| |
pushd build
|
| |
%make_install
|
| |
popd
|
| |
+ mkdir -p $RPM_BUILD_ROOT%{_libdir}/pkgconfig
|
| |
+ install -m 644 pugixml.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig/pugixml.pc
|
| |
|
| |
# Install optional items.
|
| |
mkdir -p %{buildroot}%{_datadir}/%{name}/contrib
|
| |
@@ -71,6 +78,7 @@
|
| |
%files devel
|
| |
%{_libdir}/*.so
|
| |
%{_libdir}/cmake/pugixml/
|
| |
+ %{_libdir}/pkgconfig/pugixml.pc
|
| |
%{_datadir}/%{name}
|
| |
%{_includedir}/*.hpp
|
| |
|
| |
@@ -79,6 +87,9 @@
|
| |
|
| |
|
| |
%changelog
|
| |
+ * Tue Jun 26 2018 Wolfgang Stöggl <c72578@yahoo.de> - 1.9-2
|
| |
+ - Add pugixml.pc for pkg-config
|
| |
+
|
| |
* Fri Apr 06 2018 Richard Shaw <hobbes1069@gmail.com> - 1.9-1
|
| |
- Update to 1.9.
|
| |
|
| |