forked from pool/tinyxml2
Accepting request 407880 from devel:libraries:c_c++
1 OBS-URL: https://build.opensuse.org/request/show/407880 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tinyxml2?expand=0&rev=2
This commit is contained in:
commit
1d70158c6f
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jul 12 07:50:05 UTC 2016 - mpluskal@suse.com
|
||||||
|
|
||||||
|
- Cleanup spec file
|
||||||
|
* run spec-cleaner
|
||||||
|
* drop not needed dependencies (libtool and doxygen)
|
||||||
|
* execute tests during build
|
||||||
|
* use pretty name for tarball
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Apr 7 12:04:37 UTC 2015 - jengelh@inai.de
|
Tue Apr 7 12:04:37 UTC 2015 - jengelh@inai.de
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package tinyxml2
|
# spec file for package tinyxml2
|
||||||
#
|
#
|
||||||
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2016 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
|
||||||
@ -17,22 +17,19 @@
|
|||||||
|
|
||||||
|
|
||||||
%define so_version 3
|
%define so_version 3
|
||||||
|
%define lib_package lib%{name}-%{so_version}
|
||||||
Name: tinyxml2
|
Name: tinyxml2
|
||||||
Version: 3.0.0
|
Version: 3.0.0
|
||||||
Release: 0
|
Release: 0
|
||||||
%define lib_package lib%{name}-%{so_version}
|
|
||||||
Summary: A simple, small, C++ XML parser
|
Summary: A simple, small, C++ XML parser
|
||||||
License: Zlib
|
License: Zlib
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Source: https://github.com/leethomason/tinyxml2/archive/%{version}.tar.gz
|
|
||||||
Url: https://github.com/leethomason/tinyxml2
|
Url: https://github.com/leethomason/tinyxml2
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
Source: https://github.com/leethomason/tinyxml2/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: doxygen
|
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: libtool
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: pkg-config
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
TinyXML is a simple, small, C++ XML parser that can be easily integrating
|
TinyXML is a simple, small, C++ XML parser that can be easily integrating
|
||||||
@ -71,23 +68,24 @@ developing applications that use libtinyxml2.
|
|||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
cd build
|
%cmake_install
|
||||||
%make_install
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
rm -f %{buildroot}%{_libdir}/*.la
|
|
||||||
|
%check
|
||||||
|
make %{?_smp_mflags} test
|
||||||
|
|
||||||
%post -n %{lib_package} -p /sbin/ldconfig
|
%post -n %{lib_package} -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n %{lib_package} -p /sbin/ldconfig
|
%postun -n %{lib_package} -p /sbin/ldconfig
|
||||||
|
|
||||||
%files -n %{lib_package}
|
%files -n %{lib_package}
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc readme.md
|
%doc readme.md
|
||||||
%{_libdir}/*.so.*
|
%{_libdir}/libtinyxml2.so.%{so_version}*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_includedir}/*
|
%{_includedir}/tinyxml2.h
|
||||||
|
%{_libdir}/libtinyxml2.so
|
||||||
%{_libdir}/pkgconfig/tinyxml2.pc
|
%{_libdir}/pkgconfig/tinyxml2.pc
|
||||||
%{_libdir}/*.so
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user