]> git.pld-linux.org Git - packages/uriparser.git/blobdiff - uriparser.spec
- updated to 0.8.6 (includes crash fix)
[packages/uriparser.git] / uriparser.spec
index 57727892e431adc6a481ac4132164905ed1bc51d..12fa5ae8fda6ba5cf091845dd44f4252cde6f0bf 100644 (file)
@@ -1,17 +1,30 @@
+#
+# Conditional build
+%bcond_without  doc    # disable generated documentation
+%bcond_without  tests  # disable 'make check'
+#
 Summary:       A strictly RFC 3986 compliant URI parsing library
 Summary(pl.UTF-8):     Biblioteka analizująca URI ściśle zgodne z RFC 3986
 Name:          uriparser
-Version:       0.7.1
+Version:       0.8.6
 Release:       1
 License:       BSD
 Group:         Libraries
-Source0:       http://dl.sourceforge.net/uriparser/%{name}-%{version}.tar.lzma
-# Source0-md5: 1c30504fc79b3b275e13fbd8ac2825f4
-URL:           http://uriparser.sourceforge.net/
+#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
-BuildRequires: libtool
-BuildRequires: lzma >= 1:4.42
+%{?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
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -31,7 +44,7 @@ Requires:     %{name} = %{version}-%{release}
 %description devel
 Header files for uriparser.
 
-%description devel -l pl.UTF_8
+%description devel -l pl.UTF-8
 Pliki nagłówkowe biblioteki uriparser.
 
 %package static
@@ -47,16 +60,17 @@ Static uriparser library.
 Statyczna biblioteka uriparser.
 
 %prep
-%setup -q -c -T
-lzma -dc %{SOURCE0} | tar xf - -C ..
+%setup -q
+%patch0 -p1
 
 %build
 %{__libtoolize}
 %{__aclocal}
 %{__automake}
-%{__autoheader}
 %{__autoconf}
-%configure
+%configure \
+        %{!?with_doc:--disable-doc} \
+        %{!?with_tests:--disable-test}
 %{__make}
 
 %install
@@ -65,6 +79,11 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+%if %{with doc}
+# packaged as %doc
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/uriparser
+%endif
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -73,15 +92,20 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS COPYING ChangeLog doc/*.{htm,txt}
+%doc AUTHORS COPYING ChangeLog THANKS
+%attr(755,root,root) %{_bindir}/uriparse
 %attr(755,root,root) %{_libdir}/liburiparser.so.*.*.*
 %attr(755,root,root) %ghost %{_libdir}/liburiparser.so.1
 
 %files devel
 %defattr(644,root,root,755)
+%if %{with doc}
+%doc doc/html
+%endif
 %attr(755,root,root) %{_libdir}/liburiparser.so
 %{_libdir}/liburiparser.la
 %{_includedir}/uriparser
+%{_pkgconfigdir}/liburiparser.pc
 
 %files static
 %defattr(644,root,root,755)
This page took 0.128021 seconds and 4 git commands to generate.