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