95 lines
3.0 KiB
RPMSpec
95 lines
3.0 KiB
RPMSpec
%define pkgver %(echo %version | tr . _)
|
|
Name: libtinyxml
|
|
Version: 2.6.2
|
|
Release: 3mamba
|
|
Summary: A simple, small, C++ XML parser that can be easily integrating into other programs
|
|
Group: System/Libraries
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: http://www.grinninglizard.com/cgi-sys/suspendedpage.cgi
|
|
Source: http://downloads.sourceforge.net/tinyxml/tinyxml_%{pkgver}.tar.gz
|
|
Source1: tinyxml.pc
|
|
Patch0: tinyxml-2.5.3-stl.patch
|
|
Patch1: %{name}-2.6.1-entity.patch
|
|
License: zlib
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: libgcc
|
|
BuildRequires: libstdc++6-devel
|
|
## AUTOBUILDREQ-END
|
|
|
|
%description
|
|
TinyXML is a simple, small, C++ XML parser that can be easily integrating into other programs.
|
|
|
|
%package devel
|
|
Group: Development/Libraries
|
|
Summary: Static libraries and headers for %{name}
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%description devel
|
|
TinyXML is a simple, small, C++ XML parser that can be easily integrating into other programs.
|
|
This package contains libraries and header files needed for development.
|
|
|
|
%debug_package
|
|
|
|
%prep
|
|
%setup -q -n tinyxml
|
|
%patch0 -p1 -b .stl
|
|
%patch1 -p0
|
|
touch -r tinyxml.h.stl tinyxml.h
|
|
|
|
%build
|
|
for i in tinyxml.cpp tinystr.cpp tinyxmlerror.cpp tinyxmlparser.cpp; do
|
|
g++ %{optflags} -fPIC -o $i.o -c $i
|
|
done
|
|
g++ %{optflags} -shared -o %{name}.so.0.%{version} \
|
|
-Wl,-soname,%{name}.so.0 *.cpp.o
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
mkdir -p %{buildroot}%{_libdir}
|
|
mkdir -p %{buildroot}%{_includedir}
|
|
install -m 755 %{name}.so.0.%{version} %{buildroot}%{_libdir}
|
|
ln -s %{name}.so.0.%{version} %{buildroot}%{_libdir}/%{name}.so.0
|
|
ln -s %{name}.so.0.%{version} %{buildroot}%{_libdir}/%{name}.so
|
|
install -p -m 644 tinyxml.h %{buildroot}%{_includedir}
|
|
install -Dm644 %{SOURCE1} %{buildroot}%{_libdir}/pkgconfig/tinyxml.pc
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%post -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libtinyxml.so.*
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_includedir}/*.h
|
|
%{_libdir}/libtinyxml.so
|
|
%{_libdir}/pkgconfig/tinyxml.pc
|
|
%doc changes.txt readme.txt
|
|
%doc docs/*
|
|
|
|
%changelog
|
|
* Tue May 09 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.2-3mamba
|
|
- added debug package and install pkgconfig file
|
|
|
|
* Tue Feb 02 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.2-2mamba
|
|
- rebuilt with gcc 5.3.0
|
|
|
|
* Sat Dec 01 2012 Automatic Build System <autodist@mambasoft.it> 2.6.2-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri Feb 18 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.1-2mamba
|
|
- added entity patch from http://sourceforge.net/tracker/index.php?func=detail&aid=3031828&group_id=13559&atid=313559
|
|
|
|
* Wed Feb 09 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.1-1mamba
|
|
- update to 2.6.1
|
|
|
|
* Thu Sep 18 2008 gil <puntogil@libero.it> 2.5.3-1mamba
|
|
- package created by autospec
|