]>
Commit | Line | Data |
---|---|---|
cc01f00a AM |
1 | Summary: A strictly RFC 3986 compliant URI parsing library |
2 | Name: uriparser | |
3 | Version: 0.3.3 | |
4 | Release: 1 | |
5 | License: BSD | |
6 | Group: Libraries | |
7 | Source0: http://dl.sourceforge.net/uriparser/%{name}-%{version}.tar.gz | |
8 | # Source0-md5: 81bba5d493a977fc90dfd81fd361a5a7 | |
9 | Patch0: %{name}-libtool.patch | |
10 | URL: http://uriparser.sourceforge.net/ | |
11 | BuildRequires: autoconf | |
12 | BuildRequires: automake | |
13 | BuildRequires: libtool | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %description | |
17 | uriparser is a strictly RFC 3986 compliant URI parsing library. | |
18 | uriparser is cross-platform, fast, supports Unicode. | |
19 | ||
20 | %package devel | |
21 | Summary: Header files and develpment documentation for uriparser | |
22 | Group: Development/Libraries | |
23 | Requires: %{name} = %{version}-%{release} | |
24 | ||
25 | %description devel | |
26 | Header files and develpment documentation for uriparser. | |
27 | ||
28 | %package static | |
29 | Summary: Static uriparser library | |
30 | Group: Development/Libraries | |
31 | Requires: %{name}-devel = %{version}-%{release} | |
32 | ||
33 | %description static | |
34 | Static uriparser library. | |
35 | ||
36 | %prep | |
37 | %setup -q | |
38 | %patch0 -p1 | |
39 | ||
40 | %build | |
41 | %{__libtoolize} | |
42 | %{__aclocal} | |
43 | %{__automake} | |
44 | %{__autoconf} | |
45 | %configure | |
46 | %{__make} | |
47 | ||
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %{__make} install \ | |
52 | DESTDIR=$RPM_BUILD_ROOT | |
53 | ||
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %post -p /sbin/ldconfig | |
58 | %postun -p /sbin/ldconfig | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
62 | %doc doc/*.{htm,txt} AUTHORS ChangeLog | |
63 | %attr(755,root,root) %{_libdir}/lib*.so.*.* | |
64 | ||
65 | %files devel | |
66 | %defattr(644,root,root,755) | |
67 | %attr(755,root,root) %{_libdir}/lib*.so | |
68 | %{_includedir}/* | |
69 | %{_libdir}/*.la | |
70 | ||
71 | %files static | |
72 | %defattr(644,root,root,755) | |
73 | %{_libdir}/lib*.a |