diff --git a/tinyxml2.rpmlintrc b/tinyxml2.rpmlintrc new file mode 100644 index 0000000..a945cba --- /dev/null +++ b/tinyxml2.rpmlintrc @@ -0,0 +1 @@ +addFilter("E: wrong-script-end-of-line-encoding") diff --git a/tinyxml2.spec b/tinyxml2.spec index 7c06845..c6b5a93 100644 --- a/tinyxml2.spec +++ b/tinyxml2.spec @@ -8,9 +8,10 @@ Version: 10.0.0 Release: 1 License: zlib Group: System/Libraries -Url: http://www.grinninglizard.com/tinyxml2/ -Source0: https://github.com/leethomason/tinyxml2/archive/%{version}/%{name}-%{version}.tar.gz +URL: https://github.com/leethomason/tinyxml2 +Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz Source1: FindTinyXML2.cmake +Source1000: %{name}.rpmlintrc BuildRequires: cmake BuildRequires: doxygen @@ -68,7 +69,8 @@ for writing applications with the %{name} library. %setup -q %build -%cmake +%cmake \ + -DCMAKE_BUILD_TYPE=Release %make # Build the documentation from the "dox" template @@ -79,10 +81,13 @@ doxygen dox %makeinstall_std -C build # Install CMake find module -install -D -m644 %{SOURCE1} %{buildroot}%{_datadir}/cmake/Modules/FindTinyXML2.cmake +install -Dm0644 %{SOURCE1} %{buildroot}%{_datadir}/cmake/Modules/FindTinyXML2.cmake %check pushd build export LD_LIBRARY_PATH=`pwd` ./xmltest .././resources/ popd + +# fix double slash in pc +sed -i 's|//|/|g' %{buildroot}%{_libdir}/pkgconfig/%{name}.pc