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