More news
[yaz-moved-to-github.git] / yaz.spec.in
1 Summary: Z39.50 Programs
2 Name: yaz
3 Version: @VERSION@
4 Release: 1
5 Requires: libxslt openssl readline libyaz = %{version}
6 License: BSD
7 Group: Other
8 Vendor: Index Data ApS <info@indexdata.dk>
9 Source: yaz-%{version}.tar.gz
10 BuildRoot: %{_tmppath}/%{name}-%{version}-root
11 BuildRequires: libxml2-devel libxslt-devel tcp_wrappers openssl-devel readline-devel
12 Packager: Adam Dickmeiss <adam@indexdata.dk>
13 URL: http://www.indexdata.dk/yaz/
14
15 %description
16 This package contains both a test-server and clients (normal & ssl)
17 for the ANSI/NISO Z39.50 protocol for Information Retrieval.
18
19 %package -n lib%{name}
20 Summary: Z39.50 Library
21 Group: Libraries
22 Requires: libxslt openssl
23
24 %description -n lib%{name}
25 YAZ is a library for the ANSI/NISO Z39.50 protocol for Information
26 Retrieval.
27
28 %package -n lib%{name}-devel
29 Summary: Z39.50 Library - development package
30 Group: Development/Libraries
31 Requires: libyaz = %{version} libxml2-devel libxslt-devel
32
33 %description -n lib%{name}-devel
34 Development libraries and includes for the libyaz package.
35
36 %prep
37 %setup
38
39 %build
40
41 CFLAGS="$RPM_OPT_FLAGS" \
42  ./configure --prefix=/usr --enable-shared --enable-tcpd --with-xslt --with-openssl
43 make CFLAGS="$RPM_OPT_FLAGS"
44
45 %install
46 rm -fr ${RPM_BUILD_ROOT}
47 make prefix=${RPM_BUILD_ROOT}/usr mandir=${RPM_BUILD_ROOT}/usr/share/man install
48
49 %clean
50 rm -fr ${RPM_BUILD_ROOT}
51
52 %files
53 %defattr(-,root,root)
54 %doc README LICENSE NEWS TODO
55 /usr/bin/yaz-client
56 /usr/bin/yaz-ztest
57 /usr/bin/zoomsh*
58 /usr/bin/yaz-marcdump
59 /usr/bin/yaz-iconv
60 /usr/share/man/man1/yaz-client.*
61 /usr/share/man/man8/yaz-ztest.*
62 /usr/share/man/man1/zoomsh.*
63 /usr/share/man/man1/yaz-marcdump.*
64 /usr/share/man/man1/yaz-iconv.*
65 /usr/share/man/man7/yaz-log.*
66
67 %files -n lib%{name}
68 /usr/lib/*.so.*
69
70 %files -n lib%{name}-devel
71 /usr/bin/yaz-config
72 /usr/bin/yaz-asncomp
73 /usr/include/yaz
74 /usr/lib/*.so
75 /usr/lib/*.a
76 /usr/lib/*.la
77 /usr/share/aclocal/yaz.m4
78 /usr/share/man/man1/yaz-asncomp.*
79 /usr/share/man/man7/yaz.*
80 /usr/share/man/man8/yaz-config.*
81 /usr/share/doc/yaz
82 /usr/share/yaz
83