1 %define idmetaversion %(. ./IDMETA; echo $VERSION|tr -d '\n')
2 Summary: YAZ++ package (main)
4 Version: %{idmetaversion}
7 Group: Applications/Internet
8 Vendor: Index Data ApS <info@indexdata.dk>
9 Source: yazpp-%{version}.tar.gz
10 BuildRoot: %{_tmppath}/%{name}-%{version}-root
12 BuildRequires: pkgconfig, libyaz4-devel >= 4.2.8
13 Packager: Adam Dickmeiss <adam@indexdata.dk>
14 URL: http://www.indexdata.com/yazplusplus
20 Summary: YAZ++ and ZOOM library
22 Requires: libyaz4 >= 4.2.8
24 %description -n libyazpp4
25 Libraries for the YAZ++ package.
27 %package -n libyazpp4-devel
28 Summary: Z39.50 Library - development package
29 Group: Development/Libraries
30 Requires: libyazpp4 = %{version}, libyaz4-devel
32 %description -n libyazpp4-devel
33 Development libraries and include files for the YAZ++ package.
40 CFLAGS="$RPM_OPT_FLAGS" \
41 ./configure --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} \
42 --enable-shared --with-yaz=/usr/bin
43 make CFLAGS="$RPM_OPT_FLAGS"
46 rm -fr ${RPM_BUILD_ROOT}
47 make prefix=${RPM_BUILD_ROOT}/%{_prefix} mandir=${RPM_BUILD_ROOT}/%{_mandir} \
48 libdir=${RPM_BUILD_ROOT}/%{_libdir} install
49 rm ${RPM_BUILD_ROOT}/%{_libdir}/*.la
52 rm -fr ${RPM_BUILD_ROOT}
54 %post -n libyazpp4 -p /sbin/ldconfig
55 %postun -n libyazpp4 -p /sbin/ldconfig
58 %doc README LICENSE NEWS
62 %files -n libyazpp4-devel
64 %{_bindir}/yazpp-config
68 %{_datadir}/aclocal/yazpp.m4
69 %{_mandir}/man?/yazpp-config.*