X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=uriparser.spec;h=af3277c9582eabe8c4252bb6212eae1acfccdd69;hb=e910c8c850090a675ac27754f72ec992948f784d;hp=57727892e431adc6a481ac4132164905ed1bc51d;hpb=e22306093633a54119a3da0cde092fd954525504;p=packages%2Furiparser.git diff --git a/uriparser.spec b/uriparser.spec index 5772789..af3277c 100644 --- a/uriparser.spec +++ b/uriparser.spec @@ -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.9.0 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: 16452063f65826f8d1b5fc3b13e71d3a +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: gtest-devel >= 1.8.1-3} +%if %{with doc} +BuildRequires: doxygen +BuildRequires: graphviz +%endif +BuildRequires: libstdc++-devel +BuildRequires: libtool >= 2:2 +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,8 +60,8 @@ Static uriparser library. Statyczna biblioteka uriparser. %prep -%setup -q -c -T -lzma -dc %{SOURCE0} | tar xf - -C .. +%setup -q +%patch0 -p1 %build %{__libtoolize} @@ -56,7 +69,9 @@ lzma -dc %{SOURCE0} | tar xf - -C .. %{__automake} %{__autoheader} %{__autoconf} -%configure +%configure \ + %{!?with_doc:--disable-doc} \ + %{!?with_tests:--disable-test} %{__make} %install @@ -65,6 +80,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 +93,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)