commit uriparser for openSUSE:Factory

2020-08-12 Thread root
Hello community,

here is the log from the commit of package uriparser for openSUSE:Factory 
checked in at 2020-08-12 10:56:35

Comparing /work/SRC/openSUSE:Factory/uriparser (Old)
 and  /work/SRC/openSUSE:Factory/.uriparser.new.3399 (New)


Package is "uriparser"

Wed Aug 12 10:56:35 2020 rev:7 rq:825273 version:0.9.4

Changes:

--- /work/SRC/openSUSE:Factory/uriparser/uriparser.changes  2019-07-28 
10:20:15.992601642 +0200
+++ /work/SRC/openSUSE:Factory/.uriparser.new.3399/uriparser.changes
2020-08-12 10:56:39.112747971 +0200
@@ -1,0 +2,27 @@
+Tue Jul 28 09:34:10 UTC 2020 - Martin Rey 
+
+- Update to version 0.9.4
+  * Fixed: testrunner: No longer crashes when compiled with NDEBUG
+(GitHub #67)
+  * Fixed: CMake: Support GTest 1.8.0 (GitHub #68)
+  Thanks to Ryan Schmidt for the related report!
+  * Fixed: CMake: Use variable GTEST_INCLUDE_DIRS (with plural "S")
+rather than GTEST_INCLUDE_DIR (GitHub #79, #81)
+  Thanks to Wouter Beek for the related report!
+  * Improved: CMake: Send config summary to stdout, not stderr
+(GitHub #72)
+  Thanks to Scott Donelan for the patch!
+  * Improved: Make -DURIPARSER_BUILD_TESTS=OFF unlock compilation
+without a C++ compiler; thanks to Fabrice Fontaine for the
+patch! (GitHub #69)
+  * Added: Functions to make UriUri[AW] instances independent of
+the original URI string (GitHub #77 and #78)
+New functions:
+  uriMakeOwner[AW]
+  uriMakeOwnerMm[AW]
+  * Added: CMake option URIPARSER_ENABLE_INSTALL to toggle
+installation of files, defaults to "ON" (GitHub #74, #75)
+  Thanks to Scott Donelan for the patch!
+  * Soname: 1:26:0
+
+---

Old:

  uriparser-0.9.3.tar.bz2

New:

  uriparser-0.9.4.tar.bz2



Other differences:
--
++ uriparser.spec ++
--- /var/tmp/diff_new_pack.ncBAU3/_old  2020-08-12 10:56:40.284748554 +0200
+++ /var/tmp/diff_new_pack.ncBAU3/_new  2020-08-12 10:56:40.288748556 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package uriparser
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -20,12 +20,12 @@
 
 %define so_ver  1
 Name:   uriparser
-Version:0.9.3
+Version:0.9.4
 Release:0
 Summary:A strictly RFC 3986 compliant URI parsing library
 License:BSD-3-Clause AND LGPL-2.1-or-later
 Group:  Development/Libraries/C and C++
-Url:https://uriparser.github.io
+URL:https://uriparser.github.io
 Source: 
https://github.com/uriparser/uriparser/releases/download/uriparser-%{version}/uriparser-%{version}.tar.bz2
 Source1:baselibs.conf
 BuildRequires:  cmake

++ uriparser-0.9.3.tar.bz2 -> uriparser-0.9.4.tar.bz2 ++
 2573 lines of diff (skipped)




commit uriparser for openSUSE:Factory

2019-07-28 Thread root
Hello community,

here is the log from the commit of package uriparser for openSUSE:Factory 
checked in at 2019-07-28 10:20:14

Comparing /work/SRC/openSUSE:Factory/uriparser (Old)
 and  /work/SRC/openSUSE:Factory/.uriparser.new.4126 (New)


Package is "uriparser"

Sun Jul 28 10:20:14 2019 rev:6 rq:718134 version:0.9.3

Changes:

--- /work/SRC/openSUSE:Factory/uriparser/uriparser.changes  2019-01-25 
22:41:38.419355703 +0100
+++ /work/SRC/openSUSE:Factory/.uriparser.new.4126/uriparser.changes
2019-07-28 10:20:15.992601642 +0200
@@ -1,0 +2,32 @@
+Mon Jul 22 18:58:11 UTC 2019 - Todd R 
+
+- Update to version 0.9.3
+  * Fixed: pkg-config: Fix version line in liburiparser.pc (GitHub #65)
+  * Changed: MinGW: Add library version suffix to DLL name
+  Thanks to Sandro Mani for the patch! (GitHub #63, #64)
+  * Soname: 1:26:0
+- Update to version 0.9.2
+  * Fixed: Add missing extern "C" wrapper to UriIp4.h for use from C++
+  * Fixed: Linking error for symbol defaultMemoryManager from mixing C and C++
+  Thanks to Jørgen Ibsen for the report! (GitHub #52)
+  * Fixed: Link errors on Haiku regarding function inet_ntop (GitHub #45)
+  Thanks to Schrijvers Luc for the patch!
+  * Fixed: Mark API functions with __declspec(dllexport) and
+  __declspec(dllimport) in *.h files for Visual Studio (GitHub #60)
+  * Improved: Use -fvisibility=hidden by default with supporting compilers,
+   e.g. GCC and Clang (GitHub #60)
+  * Changed: Migrated from GNU Autotools to CMake (GitHub #17, #47, #56, #59)
+  Thanks for their support with the CMake migration to:
+  - David Demelier
+  - Jørgen Ibsen
+  - KangLin
+  - Kouhei Sutou
+  - myd7349
+  - Richard Hodges
+  - Zachary Lund
+  * Removed: All Windows-related build systems other than CMake
+  * Soname: 1:25:0
+- Switch to cmake build
+- Split docs into own subpackage
+
+---

Old:

  uriparser-0.9.1.tar.bz2

New:

  uriparser-0.9.3.tar.bz2



Other differences:
--
++ uriparser.spec ++
--- /var/tmp/diff_new_pack.SMrmwf/_old  2019-07-28 10:20:16.596601643 +0200
+++ /var/tmp/diff_new_pack.SMrmwf/_new  2019-07-28 10:20:16.596601643 +0200
@@ -20,7 +20,7 @@
 
 %define so_ver 1
 Name:   uriparser
-Version:0.9.1
+Version:0.9.3
 Release:0
 Summary:A strictly RFC 3986 compliant URI parsing library
 License:BSD-3-Clause AND LGPL-2.1-or-later
@@ -28,16 +28,17 @@
 Url:https://uriparser.github.io
 Source: 
https://github.com/uriparser/uriparser/releases/download/uriparser-%{version}/uriparser-%{version}.tar.bz2
 Source1:baselibs.conf
-BuildRequires:  automake
+BuildRequires:  cmake
 BuildRequires:  doxygen
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++
+BuildRequires:  graphviz
+BuildRequires:  libqt5-qttools
+BuildRequires:  pkg-config
+BuildRequires:  pkgconfig(libxdot)
 %if %{with googletest}
 BuildRequires:  gtest >= 1.8.1
 %endif
-BuildRequires:  libtool
-BuildRequires:  pkgconfig
-BuildRequires:  pkgconfig(libxdot)
 Provides:   uriparse = %{version}-%{release}
 Obsoletes:  uriparse < %{version}-%{release}
 
@@ -57,8 +58,10 @@
 uriparser is a strictly RFC 3986 compliant URI parsing library
 and supports Unicode.
 
+This package contains the shared library for %{name}.
+
 %package devel
-Summary:Development files for a URI parsing library
+Summary:Development files for the uriparser URL parsing library
 License:BSD-3-Clause
 Group:  Development/Libraries/C and C++
 Requires:   glibc-devel
@@ -70,30 +73,48 @@
 uriparser is a strictly RFC 3986 compliant URI parsing library
 and supports Unicode.
 
-This subpackage contains the header files for the library.
+This subpackage contains the headers and other developments
+files needed to build packagesfor that depend on %{name}.
+
+%packagedoc
+Summary:Documentation files for the uriparser URI parsing library
+License:BSD-3-Clause
+Group:  Documentation/Other
+
+%descriptiondoc
+uriparser is a strictly RFC 3986 compliant URI parsing library
+and supports Unicode.
+
+This subpackage contains the documentation for %{name}.
 
 %prep
 %setup -q -n %{name}-%{version}
 
 %build
-autoreconf -fiv
-%configure \
---disable-static \
-%if ! %{with googletest}
---disable-test \
+%cmake \
+-DCMAKE_INSTALL_DOCDIR:PATH=%{_docdir}/%{name} \
+-DBUILD_SHARED_LIBS:BOOL=ON \
+-DURIPARSER_BUILD_CHAR:BOOL=ON \
+-DURIPARSER_BUILD_DOCS:BOOL=ON \
+%if %{with googletest}
+-DURIPARSER_BUILD_TESTS:BOOL=ON \
+%else
+-DURIPARSER_BUILD_TESTS:BOOL=OFF \
 %endif
---docdir=%{_docdir}/%{name}-devel
-make 

commit uriparser for openSUSE:Factory

2019-01-25 Thread root
Hello community,

here is the log from the commit of package uriparser for openSUSE:Factory 
checked in at 2019-01-25 22:41:36

Comparing /work/SRC/openSUSE:Factory/uriparser (Old)
 and  /work/SRC/openSUSE:Factory/.uriparser.new.28833 (New)


Package is "uriparser"

Fri Jan 25 22:41:36 2019 rev:5 rq:666491 version:0.9.1

Changes:

--- /work/SRC/openSUSE:Factory/uriparser/uriparser.changes  2018-11-20 
22:26:07.722822141 +0100
+++ /work/SRC/openSUSE:Factory/.uriparser.new.28833/uriparser.changes   
2019-01-25 22:41:38.419355703 +0100
@@ -1,0 +2,17 @@
+Wed Jan 16 14:00:52 UTC 2019 - adam.ma...@suse.de
+
+- Update to version 0.9.1
+  * Fixed Out-of-bounds read in uriParse*Ex* for incomplete URIs
+with IPv6 addresses with embedded IPv4 address, e.g. "//[::44.1"
+mitigated if passed parameter  points to readable
+memory containing a '\0' byte. (bsc#1122193, CVE-2018-20721)
+  * Fixed: When parsing a malformed URI with an IPvFuture address
+(e.g. "http://[vA.123456; missing "]"), errorPos would point
+to the first character after "v" than the actual position of the
+error (here: the end of the string)
+  * Fixed: uriToStringCharsRequired* reported 1 more byte than
+needed for IPv4 address URIs (GitHub #41);
+  * Improved: For parse errors, waterproof errorPos <= afterLast
+  * Soname: 1:24:0
+
+---

Old:

  uriparser-0.9.0.tar.bz2

New:

  uriparser-0.9.1.tar.bz2



Other differences:
--
++ uriparser.spec ++
--- /var/tmp/diff_new_pack.tfHSYj/_old  2019-01-25 22:41:39.231354703 +0100
+++ /var/tmp/diff_new_pack.tfHSYj/_new  2019-01-25 22:41:39.243354688 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package uriparser
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -20,7 +20,7 @@
 
 %define so_ver 1
 Name:   uriparser
-Version:0.9.0
+Version:0.9.1
 Release:0
 Summary:A strictly RFC 3986 compliant URI parsing library
 License:BSD-3-Clause AND LGPL-2.1-or-later

++ uriparser-0.9.0.tar.bz2 -> uriparser-0.9.1.tar.bz2 ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/uriparser-0.9.0/ChangeLog 
new/uriparser-0.9.1/ChangeLog
--- old/uriparser-0.9.0/ChangeLog   2018-10-27 00:32:21.0 +0200
+++ new/uriparser-0.9.1/ChangeLog   2019-01-02 17:54:41.0 +0100
@@ -2,16 +2,41 @@
   https://github.com/uriparser/uriparser/labels/help%20wanted
   If you can help, please get in touch.  Thanks!
 
+2019-01-02 -- 0.9.1
+
+> SECURITY 
+  * Fixed:
+  Out-of-bounds read in uriParse*Ex* for incomplete URIs with IPv6
+  addresses with embedded IPv4 address, e.g. "//[::44.1";
+  mitigated if passed parameter  points to readable memory
+  containing a '\0' byte.
+  Thanks to Joergen Ibsen for the report!
+> SECURITY 
+  * Fixed: When parsing a malformed URI with an IPvFuture address
+  (e.g. "http://[vA.123456; missing "]"), errorPos would point to the first
+  character after "v" than the actual position of the error (here: the end
+  of the string)
+  * Fixed: uriToStringCharsRequired* reported 1 more byte than actually needed
+  for IPv4 address URIs (GitHub #41); Thanks to @gyh007 for the patch!
+  * Fixed: Compilation with MinGW
+  Thanks to Sandro Mani for the patch!
+  * Fixed: Drop use of asprintf from the test suite for MinGW (GitHub #40)
+  * Improved: For parse errors, waterproof errorPos <= afterLast
+  * Soname: 1:24:0
+
 2018-10-27 -- 0.9.0
 
 > SECURITY 
-  * Fixed: Out-of-bounds write in uriComposeQuery* and uriComposeQueryEx*
+  * Fixed: [CVE-2018-19198]
+  Out-of-bounds write in uriComposeQuery* and uriComposeQueryEx*
   Commit 864f5d4c127def386dd5cc926ad96934b297f04e
   Thanks to Google Autofuzz team for the report!
-  * Fixed: Detect integer overflow in uriComposeQuery* and uriComposeQueryEx*
+  * Fixed: [CVE-2018-19199]
+  Detect integer overflow in uriComposeQuery* and uriComposeQueryEx*
   Commit f76275d4a91b28d687250525d3a0c5509bbd666f
   Thanks to Google Autofuzz team for the report!
-  * Fixed: Protect uriResetUri* against acting on NULL input
+  * Fixed: [CVE-2018-19200]
+  Protect uriResetUri* against acting on NULL input
   Commit 

commit uriparser for openSUSE:Factory

2018-11-20 Thread root
Hello community,

here is the log from the commit of package uriparser for openSUSE:Factory 
checked in at 2018-11-20 22:25:55

Comparing /work/SRC/openSUSE:Factory/uriparser (Old)
 and  /work/SRC/openSUSE:Factory/.uriparser.new.19453 (New)


Package is "uriparser"

Tue Nov 20 22:25:55 2018 rev:4 rq:649645 version:0.9.0

Changes:

--- /work/SRC/openSUSE:Factory/uriparser/uriparser.changes  2018-03-07 
10:30:58.550490168 +0100
+++ /work/SRC/openSUSE:Factory/.uriparser.new.19453/uriparser.changes   
2018-11-20 22:26:07.722822141 +0100
@@ -1,0 +2,64 @@
+Fri Nov 16 10:45:59 UTC 2018 - adam.ma...@suse.de
+
+- Update to version 0.9.0
+  * Fixed: Out-of-bounds write in uriComposeQuery* and
+uriComposeQueryEx* (bsc#1115722, CVE-2018-19198)
+  * Fixed: Detect integer overflow in uriComposeQuery* and
+uriComposeQueryEx* (bsc#1115723, CVE-2018-19199)
+  * Fixed: Protect uriResetUri* against acting on NULL input
+(bsc#1115724, CVE-2018-19200)
+  * Changed: Marked as deprecated:
+  Deprecated functions:
+uriNormalizeSyntaxMaskRequired[AW]
+uriParseUri[AW]
+uriParseUriEx[AW]
+Added: Add convenience functions to ease user code to parse a single URI
+  New functions:
+uriParseSingleUri[AW]
+uriParseSingleUriEx[AW]
+uriParseSingleUriExMm[AW]
+Added: Support for custom memory managers (GitHub #26, #35), see Doxygen
+  New functions (as extension of existing ones):
+uriAddBaseUriExMm[AW]
+uriComposeQueryMallocExMm[AW]
+uriDissectQueryMallocExMm[AW]
+uriFreeQueryListMm[AW]
+uriFreeUriMembersMm[AW]
+uriNormalizeSyntaxExMm[AW]
+uriParseSingleUriExMm[AW]
+uriRemoveBaseUriMm[AW]
+  New functions (for convenience):
+uriCompleteMemoryManager
+uriEmulateCalloc
+uriEmulateReallocarray
+uriTestMemoryManager
+  New error codes:
+URI_ERROR_MEMORY_MANAGER_FAULTY
+URI_ERROR_MEMORY_MANAGER_INCOMPLETE
+  New types:
+UriFuncCalloc
+UriFuncFree
+UriFuncMalloc
+UriFuncRealloc
+UriFuncReallocarray
+UriMemoryManager
+   * Added: Add non-void versions of uriNormalizeSyntaxMaskRequired*
+   * Changed: Migrate test suite from CppTest to GoogleTest
+   * Improved: Make test suite free of memory leaks
+   * Removed: Support for pointless define URI_SIZEDOWN
+   * Soname: 1:23:0
+
+- Changes in version 0.8.6
+  * Fixed: Bad/NULL .hostText.afterLast when parsing certain rather
+pathologic but well-formed URIs with empty host
+  * Fixed: Fix uriRemoveBaseUri for case where scheme, host name,
+IPvFuture address or path segments of the source address were
+string prefixes of the related counterpart in the base URI.
+  * Fixed: Make UriStringToUnixFilename and UriStringToWindowsFilename
+support minimal representation a la RFC 8089, e.g. file:/bin/bash
+  * Soname: 1:22:0
+
+- uriparser-doxygen.patch: dropped, not needed
+- package documentation
+
+---

Old:

  uriparser-0.8.5.tar.gz
  uriparser-doxygen.patch

New:

  uriparser-0.9.0.tar.bz2



Other differences:
--
++ uriparser.spec ++
--- /var/tmp/diff_new_pack.u9wG9R/_old  2018-11-20 22:26:09.270821249 +0100
+++ /var/tmp/diff_new_pack.u9wG9R/_new  2018-11-20 22:26:09.270821249 +0100
@@ -16,24 +16,24 @@
 #
 
 
-%bcond_with cpptest
+%bcond_with googletest
 
 %define so_ver 1
 Name:   uriparser
-Version:0.8.5
+Version:0.9.0
 Release:0
 Summary:A strictly RFC 3986 compliant URI parsing library
 License:BSD-3-Clause AND LGPL-2.1-or-later
 Group:  Development/Libraries/C and C++
 Url:https://uriparser.github.io
-Source: 
https://github.com/uriparser/uriparser/archive/%{name}-%{version}.tar.gz
+Source: 
https://github.com/uriparser/uriparser/releases/download/uriparser-%{version}/uriparser-%{version}.tar.bz2
 Source1:baselibs.conf
-Patch0: uriparser-doxygen.patch
 BuildRequires:  automake
 BuildRequires:  doxygen
+BuildRequires:  fdupes
 BuildRequires:  gcc-c++
-%if %{with cpptest}
-BuildRequires:  cpptest-devel > 1.1.0
+%if %{with googletest}
+BuildRequires:  gtest >= 1.8.1
 %endif
 BuildRequires:  libtool
 BuildRequires:  pkgconfig
@@ -73,18 +73,13 @@
 This subpackage contains the header files for the library.
 
 %prep
-%setup -q -n %{name}-%{name}-%{version}
-%patch0 -p 1
-#file is dated in the future..
-#find . -type f -exec touch {} +
-# This is ridiculous but the patch doesn't apply at all for no reasons
-sed -i "s|# .qhp output|HTML_TIMESTAMP=NO|g" doc/Doxyfile.in
+%setup -q -n %{name}-%{version}
 
 %build
 autoreconf 

commit uriparser for openSUSE:Factory

2018-03-07 Thread root
Hello community,

here is the log from the commit of package uriparser for openSUSE:Factory 
checked in at 2018-03-07 10:30:57

Comparing /work/SRC/openSUSE:Factory/uriparser (Old)
 and  /work/SRC/openSUSE:Factory/.uriparser.new (New)


Package is "uriparser"

Wed Mar  7 10:30:57 2018 rev:3 rq:582544 version:0.8.5

Changes:

--- /work/SRC/openSUSE:Factory/uriparser/uriparser.changes  2018-03-01 
12:06:23.933134555 +0100
+++ /work/SRC/openSUSE:Factory/.uriparser.new/uriparser.changes 2018-03-07 
10:30:58.550490168 +0100
@@ -1,0 +2,5 @@
+Thu Mar  1 11:54:00 UTC 2018 - adam.ma...@suse.de
+
+- Fix unit test building when cpptest is available.
+
+---



Other differences:
--
++ uriparser.spec ++
--- /var/tmp/diff_new_pack.DN3Szp/_old  2018-03-07 10:30:59.398459581 +0100
+++ /var/tmp/diff_new_pack.DN3Szp/_new  2018-03-07 10:30:59.398459581 +0100
@@ -84,7 +84,7 @@
 autoreconf -fiv
 %configure \
 --disable-static \
-%if %{without cpptest}
+%if ! %{with cpptest}
 --disable-test \
 %endif
 --docdir=%{_docdir}/%{name}-devel




commit uriparser for openSUSE:Factory

2018-03-01 Thread root
Hello community,

here is the log from the commit of package uriparser for openSUSE:Factory 
checked in at 2018-03-01 12:06:22

Comparing /work/SRC/openSUSE:Factory/uriparser (Old)
 and  /work/SRC/openSUSE:Factory/.uriparser.new (New)


Package is "uriparser"

Thu Mar  1 12:06:22 2018 rev:2 rq:580496 version:0.8.5

Changes:

--- /work/SRC/openSUSE:Factory/uriparser/uriparser.changes  2018-02-22 
14:59:22.784622640 +0100
+++ /work/SRC/openSUSE:Factory/.uriparser.new/uriparser.changes 2018-03-01 
12:06:23.933134555 +0100
@@ -1,0 +2,8 @@
+Mon Feb 26 08:32:38 UTC 2018 - adam.ma...@suse.de
+
+- Fix License - the source code contains LGPL licensed test suite.
+  The library itself is licensed under BSD license. Use SPDX v3
+- Test suite requires cpptest, which we don't have at the moment.
+- spec-cleaner cleanup.
+
+---



Other differences:
--
++ uriparser.spec ++
--- /var/tmp/diff_new_pack.IGh8ZF/_old  2018-03-01 12:06:24.573111586 +0100
+++ /var/tmp/diff_new_pack.IGh8ZF/_new  2018-03-01 12:06:24.577111443 +0100
@@ -1,5 +1,5 @@
 #
-# spec file for package liburiparser1
+# spec file for package uriparser
 #
 # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
@@ -15,12 +15,15 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
+
+%bcond_with cpptest
+
 %define so_ver 1
 Name:   uriparser
 Version:0.8.5
 Release:0
 Summary:A strictly RFC 3986 compliant URI parsing library
-License:BSD-3-Clause
+License:BSD-3-Clause AND LGPL-2.1-or-later
 Group:  Development/Libraries/C and C++
 Url:https://uriparser.github.io
 Source: 
https://github.com/uriparser/uriparser/archive/%{name}-%{version}.tar.gz
@@ -29,8 +32,11 @@
 BuildRequires:  automake
 BuildRequires:  doxygen
 BuildRequires:  gcc-c++
+%if %{with cpptest}
+BuildRequires:  cpptest-devel > 1.1.0
+%endif
 BuildRequires:  libtool
-BuildRequires:  pkg-config
+BuildRequires:  pkgconfig
 BuildRequires:  pkgconfig(libxdot)
 Provides:   uriparse = %{version}-%{release}
 Obsoletes:  uriparse < %{version}-%{release}
@@ -53,10 +59,10 @@
 
 %package devel
 Summary:Development files for a URI parsing library
-License:BSD-3-Clause and LGPL-2.1
+License:BSD-3-Clause
 Group:  Development/Libraries/C and C++
-Requires:   liburiparser%{so_ver} = %{version}
 Requires:   glibc-devel
+Requires:   liburiparser%{so_ver} = %{version}
 Provides:   liburiparser-devel = %{version}-%{release}
 Obsoletes:  liburiparser-devel < %{version}-%{release}
 
@@ -76,36 +82,37 @@
 
 %build
 autoreconf -fiv
-%configure --disable-static --disable-test --docdir=%{_docdir}/%{name}-devel
+%configure \
+--disable-static \
+%if %{without cpptest}
+--disable-test \
+%endif
+--docdir=%{_docdir}/%{name}-devel
 make %{?_smp_mflags}
 
 %install
 %make_install
-rm -f %{buildroot}%{_libdir}/*.la
+find %{buildroot} -type f -name "*.la" -delete -print
 # Currently documentation is useless - revisit at later date
 rm -rf %{buildroot}%{_docdir}/%{name}-devel/html
 
 %check
 export MALLOC_CHECK_=2 MALLOC_PERTURB_=$((${RANDOM:-256} % 256))
-make check
+make %{?_smp_mflags} check
 unset MALLOC_CHECK_ MALLOC_PERTURB_
 
 %post -n liburiparser%{so_ver} -p /sbin/ldconfig
-
 %postun -n liburiparser%{so_ver} -p /sbin/ldconfig
 
 %files
-%defattr(-,root,root)
 %license COPYING
 %{_bindir}/uriparse
 
 %files -n liburiparser%{so_ver}
-%defattr(-,root,root)
 %{_libdir}/liburiparser.so.%{so_ver}
 %{_libdir}/liburiparser.so.%{so_ver}.*
 
 %files devel
-%defattr(-,root,root)
 %license COPYING
 %doc ChangeLog README.md THANKS TODO.txt GOALS.txt AUTHORS
 %dir %{_includedir}/%{name}