Changeset 1735 for spec/trunk/SPECS/tinyxml2.spec
- Timestamp:
- Nov 27, 2020, 11:49:19 PM (5 years ago)
- File:
-
- 1 edited
-
spec/trunk/SPECS/tinyxml2.spec (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/tinyxml2.spec
r1697 r1735 1 Name: tinyxml2 2 Version: 7.1.0 3 Release: 1%{?dist} 4 Summary: Simple, small and efficient C++ XML parser 1 %define major 8 2 %if !0%{?os2_version} 3 %define libname %mklibname %{name}_ %{major} 4 %define develname %mklibname %{name} -d 5 %endif 5 6 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++ 7 Summary: A small and simple XML parser 8 Name: tinyxml2 9 Version: 8.0.0 10 Release: 1 11 License: zlib 12 Group: System/Libraries 13 Url: http://www.grinninglizard.com/tinyxml/ 14 %if !0%{?os2_version} 15 Source0: https://github.com/leethomason/tinyxml2/archive/%{version}/%{name}-%{version}.tar.gz 16 %else 17 %scm_source github https://github.com/TeLLie/tinyxml2 %{version}-os2 18 %endif 19 Source1: FindTinyXML2.cmake 20 BuildRequires: cmake 13 21 14 22 %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. 23 TinyXML2 is a simple, small, C++ XML parser 19 24 20 TinyXML-2 doesn't parse or use DTDs (Document Type Definitions) nor XSLs 21 (eXtensible Stylesheet Language). 25 %if !0%{?os2_version} 26 %package -n %{libname} 27 Summary: A small and simple XML parsing library 28 Group: System/Libraries 22 29 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. 30 %description -n %{libname} 31 TinyXML is a simple, small, C++ XML parser that can be easily 32 integrating into other programs. Have you ever found yourself 33 writing a text file parser every time you needed to save human 34 readable data or serialize objects? TinyXML solves the text I/O 35 file once and for all. 36 %endif 26 37 38 %if !0%{?os2_version} 39 %package -n %{develname} 40 %else 27 41 %package devel 28 Summary: Development files for %{name} 29 Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} 42 %endif 43 Summary: Development files for %{name} 44 Group: Development/C++ 45 %if !0%{?os2_version} 46 Provides: %{name}-devel = %{version}-%{release} 47 Provides: lib%{name}-devel = %{version}-%{release} 48 Requires: %{libname} = %{version}-%{release} 49 %endif 30 50 51 %if !0%{?os2_version} 52 %description -n %{develname} 53 %else 31 54 %description devel 32 This package contains the libraries and header files that are needed 33 for writing applications with the %{name} library. 55 %endif 56 Development files and headers for %{name}. 57 58 %legacy_runtime_packages 34 59 35 60 %debug_package 36 61 37 62 %prep 38 #%autosetup 63 %if !0%{?os2_version} 64 %autosetup -p1 65 %else 39 66 %scm_setup 40 chmod -c -x *.cpp *.h 67 %endif 41 68 42 69 %build 43 export LDFLAGS="-Zomf -Zmap -Zhigh-mem -Zargs-wild -Zargs-resp" 70 mkdir builder 71 cd builder 72 73 export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" 44 74 export LIBS="-lcx" 45 mkdir objdir46 cd objdir47 75 48 sh c:/usr/bin/conf.txt 76 %if !0%{?os2_version} 77 %cmake 78 %make 79 %else 80 %cmake .. \ 81 -DOS2_USE_CXX_EMXEXP=ON \ 82 -DBUILD_TESTS=ON \ 83 -Wno-dev 49 84 make %{?_smp_mflags} 85 %endif 50 86 87 %install 88 %make_install -C builder 51 89 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 90 # Install CMake find module 91 install -D -m644 %{SOURCE1} %{buildroot}%{_datadir}/cmake/Modules/FindTinyXML2.cmake 58 92 59 # and partially re-enabled in 6.0.060 93 %check 61 cd objdir94 cd builder 62 95 make test 63 96 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 97 %if !0%{?os2_version} 98 %files -n %{libname} 99 %else 73 100 %files 101 %endif 74 102 %defattr(-,root,root,-) 75 103 %doc readme.md 76 %{_libdir}/tinyxml7.dll 77 %exclude %{_bindir}/tinyxml7.dll 104 %if !0%{?os2_version} 105 %{_libdir}/libtinyxml2.so.%{major}* 106 %else 107 %{_libdir}/*.dll 108 %endif 78 109 110 %if !0%{?os2_version} 111 %files -n %{develname} 112 %else 79 113 %files devel 80 %defattr(-,root,root,-) 81 %{_includedir}/%{name}.h 82 %{_libdir}/tinyxml2_dll.a 83 %{_libdir}/pkgconfig/%{name}.pc 114 %endif 115 %doc readme.md 116 %{_datadir}/cmake/Modules/FindTinyXML2.cmake 84 117 %{_libdir}/cmake/%{name}/ 118 %{_includedir}/*.h 119 %if !0%{?os2_version} 120 %{_libdir}/libtinyxml2.so 121 %else 122 %{_libdir}/*.a 123 %endif 124 %{_libdir}/pkgconfig/*.pc 85 125 86 126 %changelog 127 * Sat Oct 17 2020 Elbert Pol <elbert.pol@gmail.com> - 8.0.0-1 128 - Updated to latest version 129 87 130 * Tue Dec 17 2019 Elbert Pol <elbert.pol@gmail.com> - 7.1.0-1 88 131 - Update to latest source
Note:
See TracChangeset
for help on using the changeset viewer.
