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