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