RPM: Remove *.la from install
[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 libyaz4-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 libyazpp4
18 Summary: YAZ++ and ZOOM library
19 Group: Libraries
20 Requires: libyaz4
21
22 %description -n libyazpp4
23 Libraries for the YAZ++ package.
24
25 %package -n libyazpp4-devel
26 Summary: Z39.50 Library - development package
27 Group: Development/Libraries
28 Requires: libyazpp4 = %{version} libyaz4-devel
29
30 %description -n libyazpp4-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 rm ${RPM_BUILD_ROOT}/%{_libdir}/*.la
48
49 %clean
50 rm -fr ${RPM_BUILD_ROOT}
51
52 %files -n libyazpp4
53 %doc README LICENSE NEWS
54 %defattr(-,root,root)
55 %{_libdir}/*.so.*
56
57 %files -n libyazpp4-devel
58 %defattr(-,root,root)
59 %{_bindir}/yazpp-config
60 %{_includedir}/yazpp
61 %{_libdir}/*.so
62 %{_libdir}/*.a
63 %{_datadir}/aclocal/yazpp.m4
64 %{_mandir}/man8/yazpp-config.*
65 %{_datadir}/doc/yazpp
66