/[packages]/cauldron/yaz/current/SPECS/yaz.spec
ViewVC logotype

Contents of /cauldron/yaz/current/SPECS/yaz.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 48392 - (show annotations) (download)
Mon Feb 7 04:05:09 2011 UTC (13 years, 2 months ago) by spuhler
File size: 3261 byte(s)
removed buildroot definition from .spec
removed the if mdkversion lines
1 %define major 4
2 %define libname %mklibname yaz %{major}
3 %define develname %mklibname yaz -d
4
5 Summary: Z39.50 protocol support library
6 Name: yaz
7 Version: 4.0.1
8 Release: %mkrel 4
9 License: BSD-like
10 Group: System/Libraries
11 URL: http://www.indexdata.dk/yaz/
12 Source0: http://ftp.indexdata.dk/pub/yaz/%{name}-%{version}.tar.gz
13 Patch0: yaz-config.diff
14 BuildRequires: docbook-style-dsssl
15 BuildRequires: docbook-style-xsl
16 BuildRequires: libtool
17 BuildRequires: libxml2-devel
18 BuildRequires: libxslt-devel
19 BuildRequires: openssl-devel
20 BuildRequires: readline-devel
21 BuildRequires: ncurses-devel
22 BuildRequires: termcap-devel
23 BuildRequires: tcp_wrappers-devel
24 BuildRequires: libicu-devel
25 BuildRequires: bison
26 BuildRequires: tcl
27
28
29 %description
30 This package contains both a test-server and clients (normal & ssl) for the
31 ANSI/NISO Z39.50 protocol for Information Retrieval.
32
33 %package -n %{libname}
34 Summary: Z39.50 Library
35 Group: System/Libraries
36 Requires: openssl
37 Requires: tcp_wrappers
38 Requires: %{name} = %{version}-%{release}
39
40 %description -n %{libname}
41 YAZ is a library for the ANSI/NISO Z39.50 protocol for Information Retrieval.
42
43 %package -n %{develname}
44 Summary: Z39.50 Library - development package
45 Group: Development/C
46 Requires: %{libname} = %{version}
47 Provides: %{name}-devel
48 Provides: lib%{name}-devel
49 Conflicts: %{mklibname yaz 2 -d}
50 Obsoletes: %{mklibname yaz 3 -d}
51
52 %description -n %{develname}
53 Development libraries and includes for the libyaz package.
54
55 %prep
56
57 %setup -q
58 %patch0 -p0
59
60 # lib64 fix
61 perl -pi -e "s|/lib\b|/%{_lib}|g" configure*
62 perl -pi -e "s|/usr/lib/|%{_libdir}/|g" configure*
63
64 %build
65 autoreconf -fi
66 %configure2_5x \
67 --enable-shared \
68 --enable-tcpd \
69 --with-openssl \
70 --with-xml2 \
71 --with-xslt \
72 --with-exslt \
73 --with-icu
74
75 %make
76
77 %check
78 make check
79
80 %install
81 [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
82
83 %makeinstall_std docdir=/installed-docs
84
85 # fix installed docs
86 rm -rf installed-docs
87 mv %{buildroot}/installed-docs .
88 mv %{buildroot}%{_docdir}/yaz/* installed-docs/
89
90 # fix yaz-config (weird stuff...)
91 perl -pi -e "s|^yaz_echo_source=.*|yaz_echo_source=yes|g" %{buildroot}%{_bindir}/yaz-config
92
93 %multiarch_binaries %{buildroot}%{_bindir}/yaz-config
94
95
96 %clean
97 [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
98
99 %files
100 %defattr(644,root,root,755)
101 %doc README LICENSE installed-docs/*.html installed-docs/*.png
102 %attr(755,root,root) %{_bindir}/yaz-*
103 %attr(755,root,root) %{_bindir}/zoomsh
104 %{_mandir}/man1/yaz-client*.*
105 %{_mandir}/man1/yaz-iconv.1*
106 %{_mandir}/man1/yaz-icu.1*
107 %{_mandir}/man1/yaz-illclient.1*
108 %{_mandir}/man1/yaz-json-parse.1*
109 %{_mandir}/man1/yaz-marcdump.1*
110 %{_mandir}/man1/zoomsh.*
111 %{_mandir}/man8/yaz-ztest*.*
112 # moved from lib pkg
113 %{_mandir}/man7/*
114 %{_datadir}/yaz/etc
115
116 %files -n %{libname}
117 %defattr(644,root,root,755)
118 %attr(755,root,root) %{_libdir}/*.so.%{major}*
119
120 %files -n %{develname}
121 %defattr(644,root,root,755)
122 %attr(755,root,root) %{_bindir}/yaz-config
123 %multiarch %attr(755,root,root) %{multiarch_bindir}/yaz-config
124 %attr(755,root,root) %{_bindir}/yaz-asncomp
125 %{_includedir}/yaz
126 %{_libdir}/*.so
127 %{_libdir}/*.a
128 %{_libdir}/*.la
129 %{_libdir}/pkgconfig/*.pc
130 %{_datadir}/aclocal/yaz.m4
131 %{_datadir}/yaz/z39.50
132 %{_datadir}/yaz/ill
133 %{_mandir}/man1/yaz-asncomp.*
134 %{_mandir}/man8/yaz-config.*
135
136
137
138

  ViewVC Help
Powered by ViewVC 1.1.30