[packages/irrxml] - new
qboosh
qboosh at pld-linux.org
Thu Dec 24 10:41:23 CET 2020
commit 5c8a50ce4f1f30ef1c40ba3e3bc651e2c972c2bf
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Thu Dec 24 10:41:55 2020 +0100
- new
irrxml.spec | 122 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 122 insertions(+)
---
diff --git a/irrxml.spec b/irrxml.spec
new file mode 100644
index 0000000..ed7eb3e
--- /dev/null
+++ b/irrxml.spec
@@ -0,0 +1,122 @@
+#
+# Conditional build:
+%bcond_without apidocs # API documentation
+%bcond_without static_libs # static library
+#
+Summary: Simple and fast open source XML parser for C++
+Summary(pl.UTF-8): Prosty, szybki, mający otwarte źródła parser XML dla C++
+Name: irrxml
+Version: 1.2
+Release: 1
+License: Zlib
+Group: Libraries
+Source0: http://downloads.sourceforge.net/irrlicht/%{name}-%{version}.zip
+# Source0-md5: 41eabd2d337917c912ee6d28613efebf
+URL: https://www.ambiera.com/irrxml/
+BuildRequires: libstdc++-devel >= 5:3.2
+BuildRequires: libtool >= 2:2
+BuildRequires: unzip
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _noautocompressdoc *.chm
+
+%description
+irrXML is a simple and fast open source XML parser for C++. The
+strenghts of irrXML are its speed and its simplicity. It ideally fits
+into realtime projects which need to read XML data without overhead,
+like games. irrXML was originally written as part of the Irrlicht
+Engine but after it has become quite mature it now has become a
+separate project.
+
+%description -l pl.UTF-8
+irrXML to prosty i szybki, mający otwarte źródła parser XML dla C++.
+Mocnymi stronami irrXML są szybkość i prostota. Idealnie nadaje się do
+projektów czasu rzeczywistego, potrzebujących czytać dane XML bez
+narzutu, jak gry. irrXML pierowtnie był pisany jako część silnika
+Irrlight, ale gdy stał się w miarę dojrzały, został osobnym projektem.
+
+%package devel
+Summary: Header files for IrrXML library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki IrrXML
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: libstdc++-devel >= 5:3.2
+
+%description devel
+Header files for IrrXML library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki IrrXML.
+
+%package static
+Summary: Static IrrXML library
+Summary(pl.UTF-8): Statyczna biblioteka IrrXML
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static IrrXML library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka IrrXML.
+
+%package apidocs
+Summary: API documentation for IrrXML library
+Summary(pl.UTF-8): Dokumentacja API biblioteki IrrXML
+Group: Documentation
+%{?noarchpackage}
+
+%description apidocs
+API documentation for IrrXML library.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API biblioteki IrrXML.
+
+%prep
+%setup -q
+
+%build
+cd src
+libtool --mode=compile --tag=CXX %{__cxx} %{rpmcppflags} %{rpmcxxflags} -o irrXML.lo -c irrXML.cpp -I.
+libtool --mode=link --tag=CXX %{__cxx} %{rpmldflags} %{rpmcppflags} -o libIrrXML.la irrXML.lo -rpath %{_libdir} %{!?with_static_libs:-shared}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_includedir}/irrxml,%{_libdir},%{_examplesdir}/%{name}-%{version}}
+
+libtool --mode=install install src/libIrrXML.la $RPM_BUILD_ROOT%{_libdir}
+cp -p src/irrXML.h $RPM_BUILD_ROOT%{_includedir}/irrxml
+cp -p example/{test.cpp,config.xml} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+# no external dependencies (beside libstdc++)
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libIrrXML.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc changes.txt readme.txt
+%attr(755,root,root) %{_libdir}/libIrrXML.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libIrrXML.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libIrrXML.so
+%{_includedir}/irrxml
+%{_examplesdir}/%{name}-%{version}
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libIrrXML.a
+%endif
+
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%doc doc/irrXML.chm
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/irrxml.git/commitdiff/5c8a50ce4f1f30ef1c40ba3e3bc651e2c972c2bf
More information about the pld-cvs-commit
mailing list