]>
Commit | Line | Data |
---|---|---|
8cd5b2b7 | 1 | # |
4659b623 | 2 | # Conditional build |
453061df | 3 | %bcond_without doc # disable generated documentation |
4659b623 | 4 | %bcond_without tests # disable 'make check' |
5 | # | |
cc01f00a | 6 | Summary: A strictly RFC 3986 compliant URI parsing library |
00e051a9 | 7 | Summary(pl.UTF-8): Biblioteka analizująca URI ściśle zgodne z RFC 3986 |
cc01f00a | 8 | Name: uriparser |
64a3b2d5 | 9 | Version: 0.8.5 |
811af47e | 10 | Release: 1 |
cc01f00a AM |
11 | License: BSD |
12 | Group: Libraries | |
64a3b2d5 JB |
13 | #Source0Download: https://github.com/uriparser/uriparser/releases |
14 | Source0: https://github.com/uriparser/uriparser/releases/download/%{name}-%{version}/%{name}-%{version}.tar.bz2 | |
15 | # Source0-md5: 80c110ec22b70570ec124563a7a63075 | |
811af47e | 16 | Patch0: %{name}-doxygen.patch |
64a3b2d5 | 17 | URL: https://uriparser.github.io/ |
e2230609 JB |
18 | BuildRequires: autoconf >= 2.61 |
19 | BuildRequires: automake >= 1:1.10.1 | |
4659b623 | 20 | %{?with_tests:BuildRequires: cpptest-devel >= 1.1.0} |
453061df | 21 | %if %{with doc} |
4659b623 | 22 | BuildRequires: doxygen |
4419e3dc | 23 | BuildRequires: graphviz |
453061df | 24 | %endif |
4419e3dc JB |
25 | BuildRequires: libstdc++-devel |
26 | BuildRequires: libtool >= 2:1.5 | |
27 | BuildRequires: pkgconfig >= 1:0.9.0 | |
cc01f00a AM |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
30 | %description | |
31 | uriparser is a strictly RFC 3986 compliant URI parsing library. | |
32 | uriparser is cross-platform, fast, supports Unicode. | |
33 | ||
00e051a9 | 34 | %description -l pl.UTF-8 |
53fe79b8 ŁK |
35 | uriparser to biblioteka analizująca URI ściśle zgodne z RFC 3986. Jest |
36 | wieloplatformowa, szybka i obsługuje Unicode. | |
00e051a9 | 37 | |
cc01f00a | 38 | %package devel |
00e051a9 JB |
39 | Summary: Header files for uriparser |
40 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki uriparser | |
cc01f00a AM |
41 | Group: Development/Libraries |
42 | Requires: %{name} = %{version}-%{release} | |
43 | ||
44 | %description devel | |
00e051a9 JB |
45 | Header files for uriparser. |
46 | ||
fef0bd2b | 47 | %description devel -l pl.UTF-8 |
00e051a9 | 48 | Pliki nagłówkowe biblioteki uriparser. |
cc01f00a AM |
49 | |
50 | %package static | |
51 | Summary: Static uriparser library | |
00e051a9 | 52 | Summary(pl.UTF-8): Statyczna biblioteka uriparser |
cc01f00a AM |
53 | Group: Development/Libraries |
54 | Requires: %{name}-devel = %{version}-%{release} | |
55 | ||
56 | %description static | |
57 | Static uriparser library. | |
58 | ||
00e051a9 JB |
59 | %description static -l pl.UTF-8 |
60 | Statyczna biblioteka uriparser. | |
61 | ||
cc01f00a | 62 | %prep |
53fe79b8 | 63 | %setup -q |
811af47e | 64 | %patch0 -p1 |
cc01f00a | 65 | |
8cd5b2b7 | 66 | %build |
4659b623 | 67 | %{__libtoolize} |
68 | %{__aclocal} | |
69 | %{__automake} | |
4659b623 | 70 | %{__autoconf} |
71 | %configure \ | |
453061df | 72 | %{!?with_doc:--disable-doc} \ |
4659b623 | 73 | %{!?with_tests:--disable-test} |
cc01f00a AM |
74 | %{__make} |
75 | ||
76 | %install | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
79 | %{__make} install \ | |
80 | DESTDIR=$RPM_BUILD_ROOT | |
81 | ||
453061df | 82 | %if %{with doc} |
329bd1a4 JB |
83 | # packaged as %doc |
84 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/uriparser | |
453061df | 85 | %endif |
329bd1a4 | 86 | |
cc01f00a AM |
87 | %clean |
88 | rm -rf $RPM_BUILD_ROOT | |
89 | ||
90 | %post -p /sbin/ldconfig | |
91 | %postun -p /sbin/ldconfig | |
92 | ||
93 | %files | |
94 | %defattr(644,root,root,755) | |
79b6d58e | 95 | %doc AUTHORS COPYING ChangeLog THANKS |
437aea75 | 96 | %attr(755,root,root) %{_bindir}/uriparse |
e55fa743 JB |
97 | %attr(755,root,root) %{_libdir}/liburiparser.so.*.*.* |
98 | %attr(755,root,root) %ghost %{_libdir}/liburiparser.so.1 | |
cc01f00a AM |
99 | |
100 | %files devel | |
101 | %defattr(644,root,root,755) | |
453061df JK |
102 | %if %{with doc} |
103 | %doc doc/html | |
104 | %endif | |
e55fa743 JB |
105 | %attr(755,root,root) %{_libdir}/liburiparser.so |
106 | %{_libdir}/liburiparser.la | |
107 | %{_includedir}/uriparser | |
85049899 | 108 | %{_pkgconfigdir}/liburiparser.pc |
cc01f00a AM |
109 | |
110 | %files static | |
111 | %defattr(644,root,root,755) | |
e55fa743 | 112 | %{_libdir}/liburiparser.a |