From d50414208a6e95e7a2397f8cf8d48ddbf8b506a7 Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Tue, 2 Jun 2020 09:30:21 +0200 Subject: [PATCH] Update to 0.9.4 --- uriparser.spec | 10 ++++++++-- uriparser_buildtests.patch | 19 +++++++++++++++++++ 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 uriparser_buildtests.patch diff --git a/uriparser.spec b/uriparser.spec index 089744d..18bc5f5 100644 --- a/uriparser.spec +++ b/uriparser.spec @@ -1,14 +1,17 @@ %global _hardened_build 1 Name: uriparser -Version: 0.9.3 -Release: 3%{?dist} +Version: 0.9.4 +Release: 1%{?dist} Summary: URI parsing library - RFC 3986 License: BSD URL: https://uriparser.github.io/ Source0: https://github.com/%{name}/%{name}/releases/download/%{name}-%{version}/%{name}-%{version}.tar.bz2 +# Don't use -isystem, pass -fPIE when building tests +Patch0: uriparser_buildtests.patch + BuildRequires: cmake BuildRequires: doxygen BuildRequires: gcc-c++ @@ -80,6 +83,9 @@ LD_LIBRARY_PATH=".libs" make check %changelog +* Sun May 31 2020 Sandro Mani - 0.9.4-1 +- Update to 0.9.4 + * Fri Jan 31 2020 Fedora Release Engineering - 0.9.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild diff --git a/uriparser_buildtests.patch b/uriparser_buildtests.patch new file mode 100644 index 0000000..36b4ccd --- /dev/null +++ b/uriparser_buildtests.patch @@ -0,0 +1,19 @@ +diff -rupN uriparser-0.9.4/CMakeLists.txt uriparser-0.9.4-new/CMakeLists.txt +--- uriparser-0.9.4/CMakeLists.txt 2020-05-31 17:11:30.000000000 +0200 ++++ uriparser-0.9.4-new/CMakeLists.txt 2020-06-02 09:25:06.950566977 +0200 +@@ -271,13 +271,14 @@ if(URIPARSER_BUILD_TESTS) + ${LIBRARY_CODE_FILES} + ) + ++ set_property(TARGET testrunner PROPERTY POSITION_INDEPENDENT_CODE TRUE) + target_compile_definitions(testrunner PRIVATE URI_STATIC_BUILD) + + if(MSVC) + target_compile_definitions(testrunner PRIVATE -D_CRT_SECURE_NO_WARNINGS) + endif() + +- target_include_directories(testrunner SYSTEM PRIVATE ++ target_include_directories(testrunner PRIVATE + ${GTEST_INCLUDE_DIRS} + ) +