-Source0: http://dl.sourceforge.net/uriparser/%{name}-%{version}.tar.gz
-# Source0-md5: 81bba5d493a977fc90dfd81fd361a5a7
-Patch0: %{name}-libtool.patch
-URL: http://uriparser.sourceforge.net/
-BuildRequires: autoconf
-BuildRequires: automake
-BuildRequires: libtool
+#Source0Download: https://github.com/uriparser/uriparser/releases
+Source0: https://github.com/uriparser/uriparser/releases/download/%{name}-%{version}/%{name}-%{version}.tar.bz2
+# Source0-md5: ce2507966df78e36ccf71782fc598a59
+Patch0: %{name}-doxygen.patch
+URL: https://uriparser.github.io/
+BuildRequires: autoconf >= 2.61
+BuildRequires: automake >= 1:1.10.1
+%{?with_tests:BuildRequires: cpptest-devel >= 1.1.0}
+%if %{with doc}
+BuildRequires: doxygen
+BuildRequires: graphviz
+%endif
+BuildRequires: libstdc++-devel
+BuildRequires: libtool >= 2:1.5
+BuildRequires: pkgconfig >= 1:0.9.0