]> git.pld-linux.org Git - packages/yaz.git/blob - yaz.spec
- "rm -f missing" on top %build.
[packages/yaz.git] / yaz.spec
1 Summary:        Z39.50 protocol support library
2 Summary(pl):    Biblioteka obs³uguj±ca protokó³ Z39.50
3 Name:           yaz
4 Version:        1.8.6
5 Release:        1
6 License:        BSD-like
7 Vendor:         Index Data ApS <info@indexdata.dk>
8 Group:          Libraries
9 Source0:        http://ftp.indexdata.dk/pub/yaz/%{name}-%{version}.tar.gz
10 Patch0:         %{name}-libwrap-fix.patch
11 URL:            http://www.indexdata.dk/yaz/
12 BuildRequires:  autoconf
13 BuildRequires:  automake
14 BuildRequires:  libwrap-devel
15 BuildRequires:  readline-devel
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 YAZ is a C library for developing client - and server applications
20 using the ANSI/NISO Z39.50 protocol for Information Retrieval.
21
22 %description -l pl
23 YAZ to biblioteka w C do tworzenia aplikacji klienckich i serwerów
24 korzystaj±cych z protoko³u ANSI/NISO Z39.50 do uzyskiwania informacji.
25
26 %package devel
27 Summary:        Header files for YAZ library
28 Summary(pl):    Pliki nag³ówkowe biblioteki YAZ
29 Group:          Development/Libraries
30 Requires:       %{name} = %{version}
31 Requires:       libwrap-devel
32
33 %description devel
34 Header files for YAZ library.
35
36 %description devel -l pl
37 Pliki nag³ówkowe biblioteki YAZ.
38
39 %package static
40 Summary:        YAZ static libraries
41 Summary(pl):    Statyczne biblioteki YAZ
42 Group:          Development/Libraries
43 Requires:       %{name}-devel = %{version}
44
45 %description static
46 YAZ static libraries.
47
48 %description static -l pl
49 Statyczne biblioteki YAZ.
50
51 %prep
52 %setup -q
53 %patch -p1
54
55 %build
56 rm -f missing
57 aclocal
58 autoconf
59 automake -a -c -f --foreign
60 %configure \
61         --enable-shared \
62         --enable-tcpd
63
64 %{__make}
65
66 %install
67 rm -rf $RPM_BUILD_ROOT
68 %{__make} install \
69         DESTDIR=$RPM_BUILD_ROOT
70
71 %{__make} install -C doc \
72         DESTDIR=$RPM_BUILD_ROOT
73
74 mv -f $RPM_BUILD_ROOT%{_datadir}/yaz/doc ./doc-dist
75
76 gzip -9nf README LICENSE CHANGELOG TODO
77
78 %clean
79 rm -rf $RPM_BUILD_ROOT
80
81 %post   -p /sbin/ldconfig
82 %postun -p /sbin/ldconfig
83
84 %files
85 %defattr(644,root,root,755)
86 %doc *.gz
87 %config %{_datadir}/yaz/tab
88 %attr(755,root,root) %{_bindir}/yaz-client
89 %attr(755,root,root) %{_bindir}/yaz-ztest
90 %attr(755,root,root) %{_bindir}/yaz-comp
91 %attr(755,root,root) %{_bindir}/zoomsh
92 %attr(755,root,root) %{_libdir}/lib*.so.*.*
93 %{_datadir}/yaz
94
95 %files devel
96 %defattr(644,root,root,755)
97 %doc doc-dist/*
98 %attr(755,root,root) %{_bindir}/yaz-config
99 %attr(755,root,root) %{_libdir}/lib*.so
100 %attr(755,root,root) %{_libdir}/lib*.la
101 %{_includedir}/yaz
102 %{_aclocaldir}/yaz.m4
103
104 %files static
105 %defattr(644,root,root,755)
106 %{_libdir}/lib*.a
This page took 0.082501 seconds and 4 git commands to generate.