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