]> git.pld-linux.org Git - packages/uriparser.git/blob - uriparser.spec
d77b06c17b408ee718ddd90c51a2c071db24de28
[packages/uriparser.git] / uriparser.spec
1 #
2 # Conditional build
3 %bcond_without  doc     # disable generated documentation
4 %bcond_without  tests   # disable 'make check'
5 #
6 Summary:        A strictly RFC 3986 compliant URI parsing library
7 Summary(pl.UTF-8):      Biblioteka analizująca URI ściśle zgodne z RFC 3986
8 Name:           uriparser
9 Version:        0.8.4
10 Release:        1
11 License:        BSD
12 Group:          Libraries
13 Source0:        http://downloads.sourceforge.net/uriparser/%{name}-%{version}.tar.bz2
14 # Source0-md5:  9aabdc3611546f553f4af372167de6d6
15 Patch0:         %{name}-doxygen.patch
16 URL:            http://uriparser.sourceforge.net/
17 BuildRequires:  autoconf >= 2.61
18 BuildRequires:  automake >= 1:1.10.1
19 %{?with_tests:BuildRequires:    cpptest-devel >= 1.1.0}
20 %if %{with doc}
21 BuildRequires:  doxygen
22 BuildRequires:  graphviz
23 %endif
24 BuildRequires:  libstdc++-devel
25 BuildRequires:  libtool >= 2:1.5
26 BuildRequires:  pkgconfig >= 1:0.9.0
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 uriparser is a strictly RFC 3986 compliant URI parsing library.
31 uriparser is cross-platform, fast, supports Unicode.
32
33 %description -l pl.UTF-8
34 uriparser to biblioteka analizująca URI ściśle zgodne z RFC 3986. Jest
35 wieloplatformowa, szybka i obsługuje Unicode.
36
37 %package devel
38 Summary:        Header files for uriparser
39 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki uriparser
40 Group:          Development/Libraries
41 Requires:       %{name} = %{version}-%{release}
42
43 %description devel
44 Header files for uriparser.
45
46 %description devel -l pl.UTF-8
47 Pliki nagłówkowe biblioteki uriparser.
48
49 %package static
50 Summary:        Static uriparser library
51 Summary(pl.UTF-8):      Statyczna biblioteka uriparser
52 Group:          Development/Libraries
53 Requires:       %{name}-devel = %{version}-%{release}
54
55 %description static
56 Static uriparser library.
57
58 %description static -l pl.UTF-8
59 Statyczna biblioteka uriparser.
60
61 %prep
62 %setup -q
63 %patch0 -p1
64
65 %build
66 %{__libtoolize}
67 %{__aclocal}
68 %{__automake}
69 %{__autoconf}
70 %configure \
71          %{!?with_doc:--disable-doc} \
72          %{!?with_tests:--disable-test}
73 %{__make}
74
75 %install
76 rm -rf $RPM_BUILD_ROOT
77
78 %{__make} install \
79         DESTDIR=$RPM_BUILD_ROOT
80
81 %if %{with doc}
82 # packaged as %doc
83 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/uriparser
84 %endif
85
86 %clean
87 rm -rf $RPM_BUILD_ROOT
88
89 %post   -p /sbin/ldconfig
90 %postun -p /sbin/ldconfig
91
92 %files
93 %defattr(644,root,root,755)
94 %doc AUTHORS COPYING ChangeLog THANKS
95 %attr(755,root,root) %{_bindir}/uriparse
96 %attr(755,root,root) %{_libdir}/liburiparser.so.*.*.*
97 %attr(755,root,root) %ghost %{_libdir}/liburiparser.so.1
98
99 %files devel
100 %defattr(644,root,root,755)
101 %if %{with doc}
102 %doc doc/html
103 %endif
104 %attr(755,root,root) %{_libdir}/liburiparser.so
105 %{_libdir}/liburiparser.la
106 %{_includedir}/uriparser
107 %{_pkgconfigdir}/liburiparser.pc
108
109 %files static
110 %defattr(644,root,root,755)
111 %{_libdir}/liburiparser.a
This page took 0.063913 seconds and 3 git commands to generate.