Fix RPM build
[yaz-moved-to-github.git] / yaz.spec.in
1 Name: yaz
2 Version: @VERSION@
3 Release: 1
4 Copyright: YAZ License
5 Group: Development/Libraries
6 Vendor: Index Data ApS <info@indexdata.dk>
7 Source: yaz-%{version}.tar.gz
8 BuildRoot: /var/tmp/%{name}-%{version}-root
9 Packager: Adam Dickmeiss <adam@indexdata.dk>
10 URL: http://www.indexdata.dk/yaz/
11 Summary: Z39.50 Library
12
13 %description
14 YAZ is a C library for developing client - and server applications
15 using the ANSI/NISO Z39.50 protocol for Information Retrieval. 
16
17 %prep
18 %setup
19
20 %build
21
22 CFLAGS="$RPM_OPT_FLAGS" \
23  ./configure --prefix=/usr --enable-shared --enable-tcpd
24 make CFLAGS="$RPM_OPT_FLAGS"
25
26 %install
27 rm -fr ${RPM_BUILD_ROOT}
28 make prefix=${RPM_BUILD_ROOT}/usr mandir=${RPM_BUILD_ROOT}/usr/share/man install
29
30 %clean
31 rm -fr ${RPM_BUILD_ROOT}
32
33 %files
34 %defattr(-,root,root)
35 %doc README LICENSE CHANGELOG TODO
36 /usr/bin/*
37 /usr/lib/*.a
38 /usr/lib/*.so
39 /usr/lib/*.so.*
40 /usr/include/yaz
41 /usr/share/yaz/z39.50
42 /usr/share/yaz/ill
43 /usr/share/doc/yaz
44 /usr/share/aclocal/yaz.m4
45 /usr/share/man/*/*