SHA256
1
0
forked from pool/pugixml

Accepting request 329123 from home:scarabeus_iv:branches:devel:libraries:c_c++

- Version bump to 1.6:
  * See manual.html for in-depth changelog
- Use %cmake macros properly

OBS-URL: https://build.opensuse.org/request/show/329123
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/pugixml?expand=0&rev=3
This commit is contained in:
Ismail Dönmez 2015-09-04 15:14:39 +00:00 committed by Git OBS Bridge
parent fb20973670
commit a1363eb7d4
3 changed files with 29 additions and 25 deletions

3
pugixml-1.6.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:473705c496d45ee6a74f73622b175dfb5dde0de372c4dc61a5acb964516cd9de
size 346616

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Sep 4 13:09:48 UTC 2015 - tchvatal@suse.com
- Version bump to 1.6:
* See manual.html for in-depth changelog
- Use %cmake macros properly
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Mar 5 06:44:51 UTC 2015 - davejplater@gmail.com Thu Mar 5 06:44:51 UTC 2015 - davejplater@gmail.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package pugixml # spec file for package pugixml
# #
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -16,10 +16,9 @@
# #
%define so_ver 1 %define _libname libpugixml1
Name: pugixml Name: pugixml
Version: 1.5 Version: 1.6
Release: 0 Release: 0
Summary: Light-weight C++ XML Processing Library Summary: Light-weight C++ XML Processing Library
License: MIT License: MIT
@ -46,17 +45,17 @@ The library is extremely portable and easy to integrate and use.
%package devel %package devel
Summary: Development Files for pugixml Summary: Development Files for pugixml
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: libpugixml%{so_ver} = %{version} Requires: %{_libname} = %{version}
%description devel %description devel
This package provides development libraries and headers needed to build This package provides development libraries and headers needed to build
software using pugixml. software using pugixml.
%package -n libpugixml%{so_ver} %package -n %{_libname}
Summary: Light-weight C++ XML Processing Library Summary: Light-weight C++ XML Processing Library
Group: System/Libraries Group: System/Libraries
%description -n libpugixml%{so_ver} %description -n %{_libname}
pugixml is a light-weight C++ XML processing library. It features: pugixml is a light-weight C++ XML processing library. It features:
- DOM-like interface with rich traversal/modification capabilities - DOM-like interface with rich traversal/modification capabilities
@ -72,32 +71,27 @@ The library is extremely portable and easy to integrate and use.
%setup -q %setup -q
%build %build
export CFLAGS="%{optflags}" cd scripts
export CXXFLAGS="%{optflags}" %cmake
mkdir build make %{?_smp_mflags}
cd build
cmake \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DCMAKE_INSTALL_LIBDIR=%{_libdir} \
-DBUILD_SHARED_LIBS=ON \
../scripts
make %{?_smp_mflags} VERBOSE=1
cd ..
%install
make DESTDIR=%{buildroot} install -C build
rm -rf %{buildroot}%{_libdir}/cmake
%post -n libpugixml%{so_ver} -p /sbin/ldconfig
%postun -n libpugixml%{so_ver} -p /sbin/ldconfig %install
cd scripts
%cmake_install
%post -n %{_libname} -p /sbin/ldconfig
%postun -n %{_libname} -p /sbin/ldconfig
%files devel %files devel
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc readme.txt docs/* %doc readme.txt docs/*
%{_includedir}/*.hpp %{_includedir}/*.hpp
%{_libdir}/cmake/*
%{_libdir}/*.so %{_libdir}/*.so
%files -n libpugixml%{so_ver} %files -n %{_libname}
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_libdir}/libpugixml.so.%{so_ver}* %{_libdir}/libpugixml.so.*
%changelog %changelog