Ignore:
Timestamp:
May 5, 2019, 11:23:32 AM (6 years ago)
Author:
tellie
Message:

spec: tinyxml2: Release version 7.0.1-1.

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 1
    3 
    4 %global         githubparent    leethomason
    5 %global         commit          8c8293ba8969a46947606a93ff0cb5a083aab47a
    6 %global         shortcommit     %(c=%{commit}; echo ${c:0:7})
    7 %global         commitdate      20171211
    8 %global         gitversion      .%{commitdate}git%{shortcommit}
    9 
    101Name:           tinyxml2
    11 Version:        6.2.0
     2Version:        7.0.1
    123Release:        1%{?dist}
    134Summary:        Simple, small and efficient C++ XML parser
    145
    15 Group:          Development/Libraries
    166License:        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
     7URL:            https://github.com/leethomason/tinyxml2
     8#Source0:        %{url}/archive/%{version}/%{name}-%{version}.tar.gz
     9%scm_source git file://e:/gcc/tinyxml2 tinyxml2-master
    2310
    24 BuildRequires:  cmake
     11BuildRequires:  cmake >= 2.6
     12BuildRequires:  gcc
     13#BuildRequires:  gcc-c++
    2514
    2615%description
     
    3928%package devel
    4029Summary:        Development files for %{name}
    41 Group:          Development/Libraries
    42 Requires:       %{name}%{?_isa} = %{version}-%{release}
     30Requires:       %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
    4331
    4432%description devel
     
    4735
    4836%prep
    49 #%setup -q -n %{name}-%{commit}
     37#%autosetup
    5038%scm_setup
    5139chmod -c -x *.cpp *.h
    52 
    53 # temporary fix for https://github.com/leethomason/tinyxml2/pull/653
    54 sed -i -e 's,lib/,${CMAKE_INSTALL_LIBDIR}/,g' CMakeLists.txt
    55 
    56 #%if 0%{?rhel} == 5 || 0%{?rhel} == 6
    57 #%patch0 -p1 -b .epel
    58 #cp -p %{SOURCE1} .
    59 #%endif
    6040
    6141%build
    6242mkdir objdir
    6343cd objdir
    64 %cmake .. -DBUILD_STATIC_LIBS=OFF
     44%cmake ..
    6545make %{?_smp_mflags}
     46
    6647
    6748# Library tests were disabled in 3.0.0
     
    8162cd objdir
    8263make install DESTDIR=%{buildroot}
     64cp D:/rpmbuild/Build/tinyxml2-7.0.1/objdir/*.dll %{buildroot}%{_libdir}
     65rm %{buildroot}%{_bindir}/tinyxml7.dll
    8366
    8467#%ldconfig_scriptlets
    8568
    8669%files
     70%defattr(-,root,root,-)
    8771%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
    9273
    9374%files devel
     75%defattr(-,root,root,-)
    9476%{_includedir}/%{name}.h
    95 #%{_libdir}/lib%{name}.dll
    96 %{_bindir}/tinyxml6.dll
     77%{_libdir}/tinyxml2_dll.a
    9778%{_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}/
    10280
    10381%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
    10486* Fri May 11 2018  Elbert Pol <elbert.pol@gmail.com> - 6.2.0-1
    10587-  initial rpm for OS2
Note: See TracChangeset for help on using the changeset viewer.