]>
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 |
4659b623 | 8 | Version: 0.7.5 |
cc01f00a AM |
9 | Release: 1 |
10 | License: BSD | |
11 | Group: Libraries | |
e2230609 | 12 | Source0: http://dl.sourceforge.net/uriparser/%{name}-%{version}.tar.lzma |
4659b623 | 13 | # Source0-md5: a87b79caa1258cf9f232b55fce66ff22 |
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 |
e2230609 | 21 | BuildRequires: lzma >= 1:4.42 |
8cd5b2b7 | 22 | BuildRequires: pkgconfig >= 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 |
4659b623 | 30 | uriparser to biblioteka analizująca URI ściśle zgodne z RFC 3986. |
31 | Jest 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 |
e2230609 JB |
58 | %setup -q -c -T |
59 | lzma -dc %{SOURCE0} | tar xf - -C .. | |
cc01f00a | 60 | |
8cd5b2b7 | 61 | %build |
4659b623 | 62 | # configure first in doc, in order to create regular Doxyfile |
63 | cd doc | |
e2230609 JB |
64 | %{__libtoolize} |
65 | %{__aclocal} | |
66 | %{__automake} | |
e2230609 | 67 | %{__autoconf} |
cc01f00a | 68 | %configure |
8cd5b2b7 | 69 | cd .. |
4659b623 | 70 | %{__libtoolize} |
71 | %{__aclocal} | |
72 | %{__automake} | |
73 | #%%{__autoheader} | |
74 | %{__autoconf} | |
75 | %configure \ | |
76 | %{!?with_tests:--disable-test} | |
cc01f00a AM |
77 | %{__make} |
78 | ||
79 | %install | |
80 | rm -rf $RPM_BUILD_ROOT | |
81 | ||
82 | %{__make} install \ | |
83 | DESTDIR=$RPM_BUILD_ROOT | |
84 | ||
85 | %clean | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %post -p /sbin/ldconfig | |
89 | %postun -p /sbin/ldconfig | |
90 | ||
91 | %files | |
92 | %defattr(644,root,root,755) | |
4659b623 | 93 | %doc AUTHORS COPYING ChangeLog doc/{*.{htm,txt},html} |
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) | |
e55fa743 JB |
99 | %attr(755,root,root) %{_libdir}/liburiparser.so |
100 | %{_libdir}/liburiparser.la | |
101 | %{_includedir}/uriparser | |
85049899 | 102 | %{_pkgconfigdir}/liburiparser.pc |
cc01f00a AM |
103 | |
104 | %files static | |
105 | %defattr(644,root,root,755) | |
e55fa743 | 106 | %{_libdir}/liburiparser.a |