1596be95f695d04d690e89daa384efc917153c55
[yazpp-moved-to-github.git] / yazpp.spec.in
1 Summary: YAZ++ package (main)
2 Name: yazpp
3 Version: @VERSION@
4 Release: 1
5 License: BSD
6 Group: Applications/Internet
7 Vendor: Index Data ApS <info@indexdata.dk>
8 Source: yazpp-%{version}.tar.gz
9 BuildRoot: %{_tmppath}/%{name}-%{version}-root
10 BuildRequires: pkgconfig libyaz3-devel
11 Packager: Adam Dickmeiss <adam@indexdata.dk>
12 URL: http://www.indexdata.dk/yazplusplus/
13
14 %description
15 YAZ++ package.
16
17 %package -n libyazpp3
18 Summary: YAZ++ and ZOOM library
19 Group: Libraries
20 Requires: libyaz3
21
22 %description -n libyazpp3
23 Libraries for the YAZ++ package.
24
25 %package -n libyazpp3-devel
26 Summary: Z39.50 Library - development package
27 Group: Development/Libraries
28 Requires: libyazpp3 = %{version} libyaz3-devel
29
30 %description -n libyazpp3-devel
31 Development libraries and include files for the YAZ++ package.
32
33 %prep
34 %setup
35
36 %build
37
38 CFLAGS="$RPM_OPT_FLAGS" \
39  ./configure --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} \
40         --enable-shared --with-yaz=/usr/bin
41 make CFLAGS="$RPM_OPT_FLAGS"
42
43 %install
44 rm -fr ${RPM_BUILD_ROOT}
45 make prefix=${RPM_BUILD_ROOT}/%{_prefix} mandir=${RPM_BUILD_ROOT}/%{_mandir} \
46         libdir=${RPM_BUILD_ROOT}/%{_libdir} install
47
48 %clean
49 rm -fr ${RPM_BUILD_ROOT}
50
51 %files -n libyazpp3
52 %doc README LICENSE NEWS
53 %defattr(-,root,root)
54 %{_libdir}/*.so.*
55
56 %files -n libyazpp3-devel
57 %defattr(-,root,root)
58 %{_bindir}/yazpp-config
59 %{_includedir}/yazpp
60 %{_libdir}/*.so
61 %{_libdir}/*.a
62 %{_libdir}/*.la
63 %{_datadir}/aclocal/yazpp.m4
64 %{_mandir}/man8/yazpp-config.*
65 %{_datadir}/doc/yazpp
66