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