|
|
@ -1,13 +1,15 @@
|
|
|
|
Name: pugixml
|
|
|
|
Name: pugixml
|
|
|
|
Version: 1.0
|
|
|
|
Version: 1.4
|
|
|
|
Release: 8%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: A light-weight C++ XML processing library
|
|
|
|
Summary: A light-weight C++ XML processing library
|
|
|
|
Group: Development/Libraries
|
|
|
|
Group: Development/Libraries
|
|
|
|
License: MIT
|
|
|
|
License: MIT
|
|
|
|
URL: http://pugixml.org
|
|
|
|
URL: http://pugixml.org
|
|
|
|
|
|
|
|
|
|
|
|
Source0: http://pugixml.googlecode.com/files/%{name}-%{version}.tar.gz
|
|
|
|
Source0: http://github.com/zeux/pugixml/releases/download/v%{version}/pugixml-%{version}.tar.gz
|
|
|
|
Patch0: pugixml-1.0-set_lib_soversion.patch
|
|
|
|
# Add pugixml-config.cmake
|
|
|
|
|
|
|
|
# https://github.com/zeux/pugixml/pull/7
|
|
|
|
|
|
|
|
Patch0: pugixml-export.patch
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: cmake
|
|
|
|
|
|
|
|
|
|
|
@ -31,33 +33,29 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
Development files for package %{name}
|
|
|
|
Development files for package %{name}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
|
|
|
|
Group: Documentation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
|
|
|
|
Documentation for package %{name}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -c %{name}-%{version}
|
|
|
|
%setup -q
|
|
|
|
%patch0
|
|
|
|
%patch0 -p1 -b .export
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
mkdir -p ./build && pushd build
|
|
|
|
mkdir -p ./build && pushd build
|
|
|
|
%cmake ../scripts
|
|
|
|
%cmake -DCMAKE_INSTALL_LIBDIR=%{_lib} ../scripts
|
|
|
|
|
|
|
|
|
|
|
|
make
|
|
|
|
make
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
# Fix encodings
|
|
|
|
make -C build install DESTDIR=%{buildroot}
|
|
|
|
#find ./docs -name '*.cpp' -exec dos2unix -k {} \;i
|
|
|
|
|
|
|
|
#find ./docs -name '*.css' -exec dos2unix -k {} \;
|
|
|
|
|
|
|
|
#find ./docs -name '*.xml' -exec dos2unix -k {} \;
|
|
|
|
|
|
|
|
#find ./ -name '*.txt' -exec dos2unix -k {} \;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_includedir}
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/%{name}/contrib
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/%{name}/contrib
|
|
|
|
mkdir -p %{buildroot}%{_libdir}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
install -p -m 0644 contrib/* %{buildroot}%{_datadir}/%{name}/contrib/
|
|
|
|
install -p -m 0644 contrib/* %{buildroot}%{_datadir}/%{name}/contrib/
|
|
|
|
install -p -m 0644 src/*.hpp %{buildroot}%{_includedir}/
|
|
|
|
|
|
|
|
install -p -m 0755 build/*.so.* %{buildroot}%{_libdir}/
|
|
|
|
|
|
|
|
mv build/*.so %{buildroot}%{_libdir}/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
@ -66,19 +64,25 @@ mv build/*.so %{buildroot}%{_libdir}/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
|
|
|
%doc readme.txt
|
|
|
|
%doc readme.txt
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
|
|
|
%doc docs/*
|
|
|
|
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/*.so
|
|
|
|
|
|
|
|
%{_libdir}/cmake/%{name}/
|
|
|
|
%{_datadir}/%{name}
|
|
|
|
%{_datadir}/%{name}
|
|
|
|
%{_includedir}/*.hpp
|
|
|
|
%{_includedir}/*.hpp
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
|
|
|
|
%doc docs/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Wed Sep 03 2014 Orion Poplawski <orion@cora.nwra.com> - 1.4-1
|
|
|
|
|
|
|
|
- Update to 1.4
|
|
|
|
|
|
|
|
- Split documentation out into -doc sub-package
|
|
|
|
|
|
|
|
- Add cmake export information
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-8
|
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|