Ignore:
Timestamp:
Nov 27, 2020, 11:49:19 PM (5 years ago)
Author:
tellie
Message:

spec: lxqt-wallet: Release version 3.2.1-1

File:
1 edited

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
    56
    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++
     7Summary:        A small and simple XML parser
     8Name:           tinyxml2
     9Version:        8.0.0
     10Release:        1
     11License:        zlib
     12Group:          System/Libraries
     13Url:            http://www.grinninglizard.com/tinyxml/
     14%if !0%{?os2_version}
     15Source0:        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
     19Source1:        FindTinyXML2.cmake
     20BuildRequires:  cmake
    1321
    1422%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.
     23TinyXML2 is a simple, small, C++ XML parser
    1924
    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}
     27Summary:        A small and simple XML parsing library
     28Group:          System/Libraries
    2229
    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}
     31TinyXML is a simple, small, C++ XML parser that can be easily
     32integrating into other programs. Have you ever found yourself
     33writing a text file parser every time you needed to save human
     34readable data or serialize objects? TinyXML solves the text I/O
     35file once and for all.
     36%endif
    2637
     38%if !0%{?os2_version}
     39%package -n %{develname}
     40%else
    2741%package devel
    28 Summary:        Development files for %{name}
    29 Requires:       %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
     42%endif
     43Summary:        Development files for %{name}
     44Group:          Development/C++
     45%if !0%{?os2_version}
     46Provides:       %{name}-devel = %{version}-%{release}
     47Provides:       lib%{name}-devel = %{version}-%{release}
     48Requires:       %{libname} = %{version}-%{release}
     49%endif
    3050
     51%if !0%{?os2_version}
     52%description -n %{develname}
     53%else
    3154%description devel
    32 This package contains the libraries and header files that are needed
    33 for writing applications with the %{name} library.
     55%endif
     56Development files and headers for %{name}.
     57
     58%legacy_runtime_packages
    3459
    3560%debug_package
    3661
    3762%prep
    38 #%autosetup
     63%if !0%{?os2_version}
     64%autosetup -p1
     65%else
    3966%scm_setup
    40 chmod -c -x *.cpp *.h
     67%endif
    4168
    4269%build
    43 export LDFLAGS="-Zomf -Zmap -Zhigh-mem -Zargs-wild -Zargs-resp"
     70mkdir builder
     71cd builder
     72
     73export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
    4474export LIBS="-lcx"
    45 mkdir objdir
    46 cd objdir
    4775
    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
    4984make %{?_smp_mflags}
     85%endif
    5086
     87%install
     88%make_install -C builder
    5189
    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
     91install -D -m644 %{SOURCE1} %{buildroot}%{_datadir}/cmake/Modules/FindTinyXML2.cmake
    5892
    59 # and partially re-enabled in 6.0.0
    6093%check
    61 cd objdir
     94cd builder
    6295make test
    6396
    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
    73100%files
     101%endif
    74102%defattr(-,root,root,-)
    75103%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
    78109
     110%if !0%{?os2_version}
     111%files -n %{develname}
     112%else
    79113%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
    84117%{_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
    85125
    86126%changelog
     127* Sat Oct 17 2020 Elbert Pol <elbert.pol@gmail.com> - 8.0.0-1
     128- Updated to latest version
     129
    87130* Tue Dec 17 2019 Elbert Pol <elbert.pol@gmail.com> - 7.1.0-1
    88131- Update to latest source
Note: See TracChangeset for help on using the changeset viewer.