forked from pool/tinyxml
103 lines
2.8 KiB
RPMSpec
103 lines
2.8 KiB
RPMSpec
|
|
|
||
|
|
%define so_version 0
|
||
|
|
|
||
|
|
Name: tinyxml
|
||
|
|
Version: 2.6.1
|
||
|
|
%define file_version 2_6_1
|
||
|
|
%define lib_package lib%{name}%{so_version}
|
||
|
|
Group: System/Libraries
|
||
|
|
Summary: A simple, small, C++ XML parser
|
||
|
|
Release: 2
|
||
|
|
License: GPLv2+
|
||
|
|
Source: %{name}_%{file_version}.tar.lzma
|
||
|
|
Source1: configure.ac
|
||
|
|
Source2: Makefile.am
|
||
|
|
Source3: tinyxml.h.in
|
||
|
|
Source4: use_stl_def
|
||
|
|
Source5: Makefile.am.docs
|
||
|
|
Patch0: tinyxml-c_headers.patch
|
||
|
|
Patch1: tinyxml-entity.patch
|
||
|
|
Url: http://sourceforge.net/projects/tinyxml
|
||
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
|
BuildRequires: gcc-c++ lzma
|
||
|
|
|
||
|
|
%description
|
||
|
|
TinyXML is a simple, small, C++ XML parser that can be easily integrating
|
||
|
|
into other programs. Have you ever found yourself writing a text file parser
|
||
|
|
every time you needed to save human readable data or serialize objects?
|
||
|
|
TinyXML solves the text I/O file once and for all.
|
||
|
|
(Or, as a friend said, ends the Just Another Text File Parser problem.)
|
||
|
|
|
||
|
|
%package -n %{lib_package}
|
||
|
|
Group: System/Libraries
|
||
|
|
Summary: A simple, small, C++ XML parser
|
||
|
|
|
||
|
|
%description -n %{lib_package}
|
||
|
|
TinyXML is a simple, small, C++ XML parser that can be easily integrating
|
||
|
|
into other programs. Have you ever found yourself writing a text file parser
|
||
|
|
every time you needed to save human readable data or serialize objects?
|
||
|
|
TinyXML solves the text I/O file once and for all.
|
||
|
|
(Or, as a friend said, ends the Just Another Text File Parser problem.)
|
||
|
|
|
||
|
|
%package devel
|
||
|
|
Summary: Development files for libtinyxml
|
||
|
|
Group: Development/Libraries/C and C++
|
||
|
|
Requires: %{lib_package} = %{version}
|
||
|
|
Provides: libtinyxml-devel = %{version}
|
||
|
|
Obsoletes: libtinyxml-devel < %{version}
|
||
|
|
Suggests: %{name}-%{docs}
|
||
|
|
|
||
|
|
%description devel
|
||
|
|
The libtinyxml-devel package contains libraries and header files for
|
||
|
|
developing applications that use libtinyxml.
|
||
|
|
|
||
|
|
%package docs
|
||
|
|
Summary: Documentaqtion for libtinyxml
|
||
|
|
Group: Development/Libraries/C and C++
|
||
|
|
Requires: %{name}%{so_version} = %{version}
|
||
|
|
|
||
|
|
%description docs
|
||
|
|
This packages contains the HTML documentation and a tutorial for
|
||
|
|
libtinyxml
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%setup -q -n tinyxml
|
||
|
|
%patch0
|
||
|
|
%patch1
|
||
|
|
mkdir -p m4
|
||
|
|
cp %{S:1} %{S:2} %{S:3} %{S:4} .
|
||
|
|
cp %{S:5} docs/Makefile.am
|
||
|
|
|
||
|
|
%build
|
||
|
|
autoreconf -fi
|
||
|
|
export CXXFLAGS="%{optflags}"
|
||
|
|
%configure
|
||
|
|
make %{?_smp_mflags}
|
||
|
|
|
||
|
|
%install
|
||
|
|
%makeinstall
|
||
|
|
rm -f %{buildroot}%{_libdir}/*.la
|
||
|
|
|
||
|
|
%clean
|
||
|
|
rm -rf %{buildroot}
|
||
|
|
|
||
|
|
%post -n %{lib_package} -p /sbin/ldconfig
|
||
|
|
|
||
|
|
%postun -n %{lib_package} -p /sbin/ldconfig
|
||
|
|
|
||
|
|
%files -n %{lib_package}
|
||
|
|
%defattr(-,root,root,-)
|
||
|
|
%doc changes.txt readme.txt
|
||
|
|
%{_libdir}/*.so.*
|
||
|
|
|
||
|
|
%files devel
|
||
|
|
%defattr(-,root,root,-)
|
||
|
|
%{_includedir}/*
|
||
|
|
%{_libdir}/*.so
|
||
|
|
|
||
|
|
%files docs
|
||
|
|
%defattr(-,root,root,-)
|
||
|
|
%doc docs/*.html docs/*.gif docs/*.png docs/*.css
|
||
|
|
|
||
|
|
%changelog
|