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