]> git.pld-linux.org Git - packages/uriparser.git/blob - uriparser.spec
- .pc goes to pkgconfigdir
[packages/uriparser.git] / uriparser.spec
1 # Conditional build
2 %bcond_without  tests   # disable 'make check'
3 #
4 Summary:        A strictly RFC 3986 compliant URI parsing library
5 Summary(pl.UTF-8):      Biblioteka analizująca URI ściśle zgodne z RFC 3986
6 Name:           uriparser
7 Version:        0.7.5
8 Release:        1
9 License:        BSD
10 Group:          Libraries
11 Source0:        http://dl.sourceforge.net/uriparser/%{name}-%{version}.tar.lzma
12 # Source0-md5:  a87b79caa1258cf9f232b55fce66ff22
13 URL:            http://uriparser.sourceforge.net/
14 BuildRequires:  autoconf >= 2.61
15 BuildRequires:  automake >= 1:1.10.1
16 %{?with_tests:BuildRequires:    cpptest-devel >= 1.1.0}
17 BuildRequires:  doxygen
18 BuildRequires:  graphviz-devel
19 BuildRequires:  libtool
20 BuildRequires:  lzma >= 1:4.42
21 BuildRequires:  pkg-config >= 0.9.0
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
28 %description -l pl.UTF-8
29 uriparser to biblioteka analizująca URI ściśle zgodne z RFC 3986.
30 Jest wieloplatformowa, szybka i obsługuje Unicode.
31
32 %package devel
33 Summary:        Header files for uriparser
34 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki uriparser
35 Group:          Development/Libraries
36 Requires:       %{name} = %{version}-%{release}
37
38 %description devel
39 Header files for uriparser.
40
41 %description devel -l pl.UTF-8
42 Pliki nagłówkowe biblioteki uriparser.
43
44 %package static
45 Summary:        Static uriparser library
46 Summary(pl.UTF-8):      Statyczna biblioteka uriparser
47 Group:          Development/Libraries
48 Requires:       %{name}-devel = %{version}-%{release}
49
50 %description static
51 Static uriparser library.
52
53 %description static -l pl.UTF-8
54 Statyczna biblioteka uriparser.
55
56 %prep
57 %setup -q -c -T
58 lzma -dc %{SOURCE0} | tar xf - -C ..
59
60 # configure first in doc, in order to create regular Doxyfile
61 cd doc
62 %{__libtoolize}
63 %{__aclocal}
64 %{__automake}
65 %{__autoconf}
66 %configure
67
68 %build
69 %{__libtoolize}
70 %{__aclocal}
71 %{__automake}
72 #%%{__autoheader}
73 %{__autoconf}
74 %configure \
75          %{!?with_tests:--disable-test}
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)
92 %doc AUTHORS COPYING ChangeLog doc/{*.{htm,txt},html}
93 %attr(755,root,root) %{_libdir}/liburiparser.so.*.*.*
94 %attr(755,root,root) %ghost %{_libdir}/liburiparser.so.1
95
96 %files devel
97 %defattr(644,root,root,755)
98 %attr(755,root,root) %{_libdir}/liburiparser.so
99 %{_libdir}/liburiparser.la
100 %{_includedir}/uriparser
101 %{_pkgconfigdir}/liburiparser.pc
102
103 %files static
104 %defattr(644,root,root,755)
105 %{_libdir}/liburiparser.a
This page took 0.114245 seconds and 4 git commands to generate.