source: spec/trunk/SPECS/tinyxml2.spec@ 1695

Last change on this file since 1695 was 1695, checked in by tellie, 5 years ago

spec: fribidi: Release version 0.19.5-1

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