]>
Commit | Line | Data |
---|---|---|
4659b623 | 1 | # Conditional build |
2 | %bcond_without tests # disable 'make check' | |
3 | # | |
cc01f00a | 4 | Summary: A strictly RFC 3986 compliant URI parsing library |
00e051a9 | 5 | Summary(pl.UTF-8): Biblioteka analizująca URI ściśle zgodne z RFC 3986 |
cc01f00a | 6 | Name: uriparser |
4659b623 | 7 | Version: 0.7.5 |
cc01f00a AM |
8 | Release: 1 |
9 | License: BSD | |
10 | Group: Libraries | |
e2230609 | 11 | Source0: http://dl.sourceforge.net/uriparser/%{name}-%{version}.tar.lzma |
4659b623 | 12 | # Source0-md5: a87b79caa1258cf9f232b55fce66ff22 |
cc01f00a | 13 | URL: http://uriparser.sourceforge.net/ |
e2230609 JB |
14 | BuildRequires: autoconf >= 2.61 |
15 | BuildRequires: automake >= 1:1.10.1 | |
4659b623 | 16 | %{?with_tests:BuildRequires: cpptest-devel >= 1.1.0} |
17 | BuildRequires: doxygen | |
18 | BuildRequires: graphviz-devel | |
cc01f00a | 19 | BuildRequires: libtool |
e2230609 | 20 | BuildRequires: lzma >= 1:4.42 |
85049899 | 21 | BuildRequires: pkg-config >= 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 |
4659b623 | 29 | uriparser to biblioteka analizująca URI ściśle zgodne z RFC 3986. |
30 | Jest 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 |
e2230609 JB |
57 | %setup -q -c -T |
58 | lzma -dc %{SOURCE0} | tar xf - -C .. | |
cc01f00a | 59 | |
4659b623 | 60 | # configure first in doc, in order to create regular Doxyfile |
61 | cd doc | |
e2230609 JB |
62 | %{__libtoolize} |
63 | %{__aclocal} | |
64 | %{__automake} | |
e2230609 | 65 | %{__autoconf} |
cc01f00a | 66 | %configure |
4659b623 | 67 | |
68 | %build | |
69 | %{__libtoolize} | |
70 | %{__aclocal} | |
71 | %{__automake} | |
72 | #%%{__autoheader} | |
73 | %{__autoconf} | |
74 | %configure \ | |
75 | %{!?with_tests:--disable-test} | |
cc01f00a AM |
76 | %{__make} |
77 | ||
78 | %install | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %{__make} install \ | |
82 | DESTDIR=$RPM_BUILD_ROOT | |
83 | ||
84 | %clean | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | ||
87 | %post -p /sbin/ldconfig | |
88 | %postun -p /sbin/ldconfig | |
89 | ||
90 | %files | |
91 | %defattr(644,root,root,755) | |
4659b623 | 92 | %doc AUTHORS COPYING ChangeLog doc/{*.{htm,txt},html} |
e55fa743 JB |
93 | %attr(755,root,root) %{_libdir}/liburiparser.so.*.*.* |
94 | %attr(755,root,root) %ghost %{_libdir}/liburiparser.so.1 | |
cc01f00a AM |
95 | |
96 | %files devel | |
97 | %defattr(644,root,root,755) | |
e55fa743 JB |
98 | %attr(755,root,root) %{_libdir}/liburiparser.so |
99 | %{_libdir}/liburiparser.la | |
100 | %{_includedir}/uriparser | |
85049899 | 101 | %{_pkgconfigdir}/liburiparser.pc |
cc01f00a AM |
102 | |
103 | %files static | |
104 | %defattr(644,root,root,755) | |
e55fa743 | 105 | %{_libdir}/liburiparser.a |