Changeset 1629 for spec/trunk/SPECS/tinyxml2.spec
- Timestamp:
- May 5, 2019, 11:23:32 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/tinyxml2.spec
r1402 r1629 1 # tinyml2 parses files potentially coming from untrusted sources.2 %global _hardened_build 13 4 %global githubparent leethomason5 %global commit 8c8293ba8969a46947606a93ff0cb5a083aab47a6 %global shortcommit %(c=%{commit}; echo ${c:0:7})7 %global commitdate 201712118 %global gitversion .%{commitdate}git%{shortcommit}9 10 1 Name: tinyxml2 11 Version: 6.2.02 Version: 7.0.1 12 3 Release: 1%{?dist} 13 4 Summary: Simple, small and efficient C++ XML parser 14 5 15 Group: Development/Libraries16 6 License: zlib 17 URL: https://github.com/%{githubparent}/%{name} 18 #Source0: https://github.com/%{githubparent}/%{name}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz 19 %scm_source github https://github.com/TeLLie/tinyxml2 master 20 # EPEL has a too old CMake which is missing GNUInstallDirs (copied from Fedora 19 CMake) 21 #Source1: GNUInstallDirs.cmake 22 #Patch0: tinyxml2-epelbuild.patch 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 23 10 24 BuildRequires: cmake 11 BuildRequires: cmake >= 2.6 12 BuildRequires: gcc 13 #BuildRequires: gcc-c++ 25 14 26 15 %description … … 39 28 %package devel 40 29 Summary: Development files for %{name} 41 Group: Development/Libraries 42 Requires: %{name}%{?_isa} = %{version}-%{release} 30 Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} 43 31 44 32 %description devel … … 47 35 48 36 %prep 49 #% setup -q -n %{name}-%{commit}37 #%autosetup 50 38 %scm_setup 51 39 chmod -c -x *.cpp *.h 52 53 # temporary fix for https://github.com/leethomason/tinyxml2/pull/65354 sed -i -e 's,lib/,${CMAKE_INSTALL_LIBDIR}/,g' CMakeLists.txt55 56 #%if 0%{?rhel} == 5 || 0%{?rhel} == 657 #%patch0 -p1 -b .epel58 #cp -p %{SOURCE1} .59 #%endif60 40 61 41 %build 62 42 mkdir objdir 63 43 cd objdir 64 %cmake .. -DBUILD_STATIC_LIBS=OFF44 %cmake .. 65 45 make %{?_smp_mflags} 46 66 47 67 48 # Library tests were disabled in 3.0.0 … … 81 62 cd objdir 82 63 make install DESTDIR=%{buildroot} 64 cp D:/rpmbuild/Build/tinyxml2-7.0.1/objdir/*.dll %{buildroot}%{_libdir} 65 rm %{buildroot}%{_bindir}/tinyxml7.dll 83 66 84 67 #%ldconfig_scriptlets 85 68 86 69 %files 70 %defattr(-,root,root,-) 87 71 %doc readme.md 88 #%{_libdir}/lib%{name}.so.%{version} 89 #%{_libdir}/lib%{name}.so.6 90 %{_libdir}/%{name}*.a 91 #%{_libdir}/tinyxml6.dll 72 %{_libdir}/tinyxml7.dll 92 73 93 74 %files devel 75 %defattr(-,root,root,-) 94 76 %{_includedir}/%{name}.h 95 #%{_libdir}/lib%{name}.dll 96 %{_bindir}/tinyxml6.dll 77 %{_libdir}/tinyxml2_dll.a 97 78 %{_libdir}/pkgconfig/%{name}.pc 98 %{_libdir}/cmake/%{name}/tinyxml2Config.cmake 99 %{_libdir}/cmake/%{name}/tinyxml2Targets-noconfig.cmake 100 %{_libdir}/cmake/%{name}/tinyxml2Targets.cmake 101 79 %{_libdir}/cmake/%{name}/ 102 80 103 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 104 86 * Fri May 11 2018 Elbert Pol <elbert.pol@gmail.com> - 6.2.0-1 105 87 - initial rpm for OS2
Note:
See TracChangeset
for help on using the changeset viewer.