| 1 | Name: tinyxml2
|
|---|
| 2 | Version: 7.1.0
|
|---|
| 3 | Release: 1%{?dist}
|
|---|
| 4 | Summary: Simple, small and efficient C++ XML parser
|
|---|
| 5 |
|
|---|
| 6 | License: zlib
|
|---|
| 7 | URL: https://github.com/leethomason/tinyxml2
|
|---|
| 8 | #Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
|---|
| 9 | %scm_source github https://github.com/TeLLie/tinyxml2.git master
|
|---|
| 10 | BuildRequires: cmake >= 2.6
|
|---|
| 11 | BuildRequires: gcc
|
|---|
| 12 | #BuildRequires: gcc-c++
|
|---|
| 13 |
|
|---|
| 14 | %description
|
|---|
| 15 | TinyXML-2 is a simple, small, efficient, C++ XML parser that can be
|
|---|
| 16 | easily integrated into other programs. It uses a Document Object Model
|
|---|
| 17 | (DOM), meaning the XML data is parsed into a C++ objects that can be
|
|---|
| 18 | browsed and manipulated, and then written to disk or another output stream.
|
|---|
| 19 |
|
|---|
| 20 | TinyXML-2 doesn't parse or use DTDs (Document Type Definitions) nor XSLs
|
|---|
| 21 | (eXtensible Stylesheet Language).
|
|---|
| 22 |
|
|---|
| 23 | TinyXML-2 uses a similar API to TinyXML-1, But the implementation of the
|
|---|
| 24 | parser was completely re-written to make it more appropriate for use in a
|
|---|
| 25 | game. It uses less memory, is faster, and uses far fewer memory allocations.
|
|---|
| 26 |
|
|---|
| 27 | %package devel
|
|---|
| 28 | Summary: Development files for %{name}
|
|---|
| 29 | Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|---|
| 30 |
|
|---|
| 31 | %description devel
|
|---|
| 32 | This package contains the libraries and header files that are needed
|
|---|
| 33 | for writing applications with the %{name} library.
|
|---|
| 34 |
|
|---|
| 35 | %debug_package
|
|---|
| 36 |
|
|---|
| 37 | %prep
|
|---|
| 38 | #%autosetup
|
|---|
| 39 | %scm_setup
|
|---|
| 40 | chmod -c -x *.cpp *.h
|
|---|
| 41 |
|
|---|
| 42 | %build
|
|---|
| 43 | export LDFLAGS="-Zomf -Zmap -Zhigh-mem -Zargs-wild -Zargs-resp"
|
|---|
| 44 | export LIBS="-lcx"
|
|---|
| 45 | mkdir objdir
|
|---|
| 46 | cd objdir
|
|---|
| 47 |
|
|---|
| 48 | sh c:/usr/bin/conf.txt
|
|---|
| 49 | make %{?_smp_mflags}
|
|---|
| 50 |
|
|---|
| 51 |
|
|---|
| 52 | # Library tests were disabled in 3.0.0
|
|---|
| 53 | #%check
|
|---|
| 54 | #cd objdir
|
|---|
| 55 | #make test
|
|---|
| 56 | #export LD_LIBRARY_PATH=`pwd`
|
|---|
| 57 | #./test
|
|---|
| 58 |
|
|---|
| 59 | # and partially re-enabled in 6.0.0
|
|---|
| 60 | %check
|
|---|
| 61 | cd objdir
|
|---|
| 62 | make test
|
|---|
| 63 |
|
|---|
| 64 | %install
|
|---|
| 65 | rm -rf %{buildroot}
|
|---|
| 66 | cd objdir
|
|---|
| 67 | make install DESTDIR=%{buildroot}
|
|---|
| 68 | cp D:/rpmbuild/Build/tinyxml2-7.1.0/objdir/*.dll %{buildroot}%{_libdir}
|
|---|
| 69 | #rm %{buildroot}%{_bindir}/tinyxml7.dll
|
|---|
| 70 |
|
|---|
| 71 | #%ldconfig_scriptlets
|
|---|
| 72 |
|
|---|
| 73 | %files
|
|---|
| 74 | %defattr(-,root,root,-)
|
|---|
| 75 | %doc readme.md
|
|---|
| 76 | %{_libdir}/tinyxml7.dll
|
|---|
| 77 | %exclude %{_bindir}/tinyxml7.dll
|
|---|
| 78 |
|
|---|
| 79 | %files devel
|
|---|
| 80 | %defattr(-,root,root,-)
|
|---|
| 81 | %{_includedir}/%{name}.h
|
|---|
| 82 | %{_libdir}/tinyxml2_dll.a
|
|---|
| 83 | %{_libdir}/pkgconfig/%{name}.pc
|
|---|
| 84 | %{_libdir}/cmake/%{name}/
|
|---|
| 85 |
|
|---|
| 86 | %changelog
|
|---|
| 87 | * Tue Dec 17 2019 Elbert Pol <elbert.pol@gmail.com> - 7.1.0-1
|
|---|
| 88 | - Update to latest source
|
|---|
| 89 |
|
|---|
| 90 | * Sun May 05 2019 Elbert Pol <elbert.pol@gmail.com> - 7.0.1-2
|
|---|
| 91 | - Add debug package
|
|---|
| 92 |
|
|---|
| 93 | * Sat May 04 2019 Elbert Pol <elbert.pol@gmail.com> - 7.0.1-1
|
|---|
| 94 | - Updated to latest source
|
|---|
| 95 | - Fix wrong dll place
|
|---|
| 96 |
|
|---|
| 97 | * Fri May 11 2018 Elbert Pol <elbert.pol@gmail.com> - 6.2.0-1
|
|---|
| 98 | - initial rpm for OS2
|
|---|
| 99 | - Add buildlevel os2
|
|---|