Directive s=pw sets structure to phrase if term includes blank(s).
[yaz-moved-to-github.git] / yaz.spec
index 98da8d0..33afd51 100644 (file)
--- a/yaz.spec
+++ b/yaz.spec
@@ -1,19 +1,18 @@
-Summary: YAZ - A Z39.50 Library
 Name: yaz
-Version: 1.5
-Release: 1
-Copyright: BSD
+Version: 1.7
+Release: 2
+Copyright: YAZ License
 Group: Development/Libraries
 Vendor: Index Data ApS <info@indexdata.dk>
-Url: http://www.indexdata.dk/yaz/
-Source: yaz-1.5.tar.gz
+Source: yaz-%{version}.tar.gz
 BuildRoot: /var/tmp/%{name}-%{version}-root
 Packager: Adam Dickmeiss <adam@indexdata.dk>
+URL: http://www.indexdata.dk/yaz/
+Summary: Z39.50 Library
 
 %description
-The YAZ package is a developers' library for developing client - and
-server application using the ANSI/NISO Z39.50 protocol for Information
-Retrieval.
+YAZ is a C library for developing client - and server applications
+using the ANSI/NISO Z39.50 protocol for Information Retrieval. 
 
 %prep
 %setup
@@ -21,20 +20,30 @@ Retrieval.
 %build
 
 CFLAGS="$RPM_OPT_FLAGS" \
- ./configure --with-build-root=$RPM_BUILD_ROOT --prefix=/usr --enable-yc --enable-tcpd
+ ./configure --prefix=/usr --enable-shared --enable-tcpd
 make CFLAGS="$RPM_OPT_FLAGS"
 
 %install
 rm -fr $RPM_BUILD_ROOT
-make install
+make prefix=$RPM_BUILD_ROOT/usr install
+cd doc; make prefix=$RPM_BUILD_ROOT/usr install
 
 %files
 %defattr(-,root,root)
 %doc README LICENSE CHANGELOG TODO
-%config /usr/lib/yaz/tab
+%config /usr/share/yaz/tab
 /usr/bin/yaz-client
 /usr/bin/yaz-ztest
 /usr/bin/yaz-config
+/usr/bin/yaz-comp
 /usr/lib/libyaz.a
+/usr/lib/libyaz.so
+/usr/lib/libyaz.so.1
+/usr/lib/libyaz.so.1.0.0
+/usr/lib/libyazthread.a
+/usr/lib/libyazthread.so
+/usr/lib/libyazthread.so.1
+/usr/lib/libyazthread.so.1.0.0
 /usr/include/yaz
-%dir /usr/lib/yaz
+/usr/share/yaz/doc
+/usr/share/aclocal/yaz.m4