Ignore:
Timestamp:
Mar 28, 2022, 7:09:52 PM (3 years ago)
Author:
tellie
Message:

spec: yaz: Release version 5.31.1-1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • spec/trunk/SPECS/yaz.spec

    r1768 r1804  
    1 # This file is part of the YAZ toolkit
    2 # Copyright (C) Index Data
    3 # See the file LICENSE for details.
    4 # spec file for YAZ
    5 
    6 %define idmetaversion %(. ./IDMETA; echo $VERSION)
    7 
    8 Name: yaz
    9 Summary: Z39.50 Programs
    10 Version: 5.31.0
    11 Release: 1%{?dist}
    12 # determine system
    13 %if !0%{?os2_version}
    14 %define is_redhat5 %(grep 'release 5' /etc/redhat-release >/dev/null 2>&1 && echo 1 || echo 0)
    15 %define is_mandrake %(test -e /etc/mandrake-release && echo 1 || echo 0)
    16 %define is_suse %(test -e /etc/SuSE-release >/dev/null && echo 1 || echo 0)
    17 %define is_suse11 %(grep 'VERSION = 11' /etc/SuSE-release >/dev/null 2>&1 && echo 1 || echo 0)
    18 %define is_fedora %(test -e /etc/fedora-release && echo 1 || echo 0)
    19 %define is_os2 %(test -e /@unixroot/etc/os2-release && echo 1 || echo 0)
    20 %endif
    21 
    22 Requires: readline, libyaz5 = %{version}
    23 
    24 License: BSD
    25 Group: Applications/Internet
    26 Vendor: Index Data ApS <info@indexdata.dk>
    27 %if !0%{?os2_version}
    28 Source: yaz-%{version}.tar.gz
     1Name:           yaz
     2Version:        5.31.1
     3Release:        1%{?dist}
     4Summary:        Z39.50/SRW/SRU toolkit
     5License:        BSD
     6URL:            http://www.indexdata.com/yaz/
     7%if !0%{?os2_version}
     8Source0:        http://ftp.indexdata.com/pub/yaz/yaz-%{version}.tar.gz
    299%else
    3010%scm_source github https://github.com/Tellie/yaz-os2 %{version}-os2
    3111%endif
    32  
    33 BuildRoot: %{_tmppath}/%{name}-%{version}-root
    34 Prefix: %{_prefix}
    35 
    36 %if !0%{?os2_version}
    37 #%define TCPWRAPPER tcp_wrappers-devel
    38 %if %is_redhat5
    39 %define TCPWRAPPER tcp_wrappers
    40 %endif
    41 
    42 %if %is_suse
    43 %define TCPWRAPPER tcpd-devel
    44 %endif
    45 
    46 %if %is_suse11
    47 BuildRequires: libgnutls-devel
    48 %endif
    49 %endif
    50 
    51 BuildRequires: gnutls-devel
    52 BuildRequires: pkgconfig
    53 BuildRequires: libxml2-devel
    54 BuildRequires: libxslt-devel
    55 BuildRequires: readline-devel
    56 BuildRequires: libicu-devel
    57 BuildRequires: wget
    58 
    59 Packager: Adam Dickmeiss <adam@indexdata.dk>
    60 URL: http://www.indexdata.com/yaz
     12
     13BuildRequires:  gcc
     14BuildRequires:  bison
     15BuildRequires:  make
     16
     17BuildRequires:  pkgconfig(libexslt)
     18BuildRequires:  pkgconfig(gnutls)
     19%if !0%{?os2_version}
     20BuildRequires:  pkgconfig(hiredis)
     21BuildRequires:  pkgconfig(libmemcached)
     22BuildRequires:  %{_bindir}/tclsh
     23%endif
     24BuildRequires:  pkgconfig(icu-i18n)
     25BuildRequires:  pkgconfig(libxml-2.0)
     26BuildRequires:  pkgconfig(libxslt)
     27
     28BuildRequires:  ncurses-devel
     29BuildRequires:  readline-devel
     30
     31Requires:       lib%{name}%{?_isa} = %{version}-%{release}
     32
    6133%description
    62 This package contains both a test-server and clients (normal & ssl)
    63 for the ANSI/NISO Z39.50 protocol for Information Retrieval.
    64 
    65 %package -n libyaz5
    66 Summary: Z39.50 Library
    67 Group: Libraries
    68 Requires: libxslt, libicu
    69 
    70 %description -n libyaz5
    71 
    72 YAZ is a library for the ANSI/NISO Z39.50 protocol for Information
    73 Retrieval.
    74 
    75 %if !0%{?os2_version}
    76 %post -n libyaz5 -p /sbin/ldconfig
    77 %postun -n libyaz5 -p /sbin/ldconfig
    78 %endif
    79 
    80 %package -n libyaz5-devel
    81 Summary: Z39.50 Library - development package
    82 Group: Development/Libraries
    83 Requires: libyaz5 = %{version}, libxml2-devel, libxslt-devel, libicu-devel
    84 Conflicts: libyaz-devel, libyaz4-devel
    85 
    86 %description -n libyaz5-devel
    87 
    88 Development libraries and includes for the libyaz package.
    89 %package -n yaz-illclient
    90 Summary: ILL client
    91 Group: Applications/Communication
    92 Requires: readline, libyaz5 = %{version}
    93 
    94 %description -n yaz-illclient
    95 yaz-illclient: an ISO ILL client.
    96 %package -n yaz-icu
    97 Summary: Command line utility for ICU utilities of YAZ
    98 Group: Applications/Communication
    99 Requires: libyaz5 = %{version}
    100 
    101 %description -n yaz-icu
    102 The yaz-icu program is a command-line based client which exposes the ICU
    103 chain facility of YAZ.
     34YAZ is a programmers toolkit supporting the development of Z39.50/SRW/SRU
     35clients and servers. Z39.50-2003 (version 3) as well as SRW/SRU version 1.1
     36are supported in both the client and server roles. The SOLR webservice is
     37supported in the client role through the ZOOM API.
     38
     39The current version of YAZ includes support for the industry standard ZOOM
     40API for Z39.50. This API vastly simplifies the process of writing new clients
     41using YAZ, and it reduces your dependency on any single toolkit. YAZ can be
     42used by itself to build Z39.50 applications in C.For programmers preferring
     43another language, YAZ has three language bindings to commonly used application
     44development languages.
     45
     46This package contains both a test-server and clients (normal & ssl).
     47
     48%package -n     lib%{name}
     49Summary:        Shared libraries for %{name}
     50
     51%description -n lib%{name}
     52This packages contains shared libraries for %{name}.
     53
     54%package -n     lib%{name}-devel
     55Summary:        Development files for %{name}
     56Requires:       lib%{name}%{?_isa} = %{version}-%{release}
     57
     58%description -n lib%{name}-devel
     59This package contains libraries and header files for
     60developing applications that use lib%{name}.
     61
     62%package        doc
     63Summary:        Documentation for %{name}
     64BuildArch:      noarch
     65Requires:       %{name} = %{version}-%{release}
     66
     67%description    doc
     68This package contains documentation for %{name}, a Z39.50 protocol
     69server and client.
    10470
    10571%prep
     72%if !0%{?os2_version}
     73%setup -q
     74%else
    10675%scm_setup
     76%endif
    10777
    10878%build
    109 buildconf.sh
     79sh buildconf.sh
    11080export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
    11181export LIBS="-lcx"
    11282
     83%if !0%{?os2_version}
     84%configure \
     85        --enable-shared \
     86        --with-memcached \
     87        --with-redis \
     88        --disable-static \
     89        %{nil}
     90%else
    11391CFLAGS="$RPM_OPT_FLAGS" \
    11492 ./configure --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} \
    11593   --enable-shared --without-memcached --disable-static --with-xslt --with-gnutls --with-icu --with-xml2 --with-iconv
    116 
    117 %if !0%{?os2_version}
    118 %make CFLAGS="$RPM_OPT_FLAGS"
     94%endif
     95
     96%if !0%{?os2_version}
     97%make_build
    11998%else
    12099make %{?_smp_mflags}
     
    122101
    123102%install
    124 rm -fr ${RPM_BUILD_ROOT}
     103%if !0%{?os2_version}
     104%make_install
     105%else
    125106make install DESTDIR=${RPM_BUILD_ROOT}
    126107rm ${RPM_BUILD_ROOT}/%{_libdir}/*.la
     108%endif
     109
     110# Remove cruft
     111%if !0%{?os2_version}
     112find %{buildroot} -name '*.*a' -delete -print
     113%endif
    127114
    128115%check
     
    133120rm -fr ${RPM_BUILD_ROOT}
    134121
     122%if !0%{?os2_version}
     123%post -n lib%{name} -p /sbin/ldconfig
     124
     125%postun -n lib%{name} -p /sbin/ldconfig
     126%endif
     127
    135128%files
    136 %defattr(-,root,root)
    137 %doc README.md LICENSE NEWS
    138 %{_bindir}/yaz-client.exe
    139 %{_bindir}/yaz-ztest.exe
     129%doc NEWS README.md
     130%license LICENSE
     131%if !0%{?os2_version}
     132%{_bindir}/yaz-client
     133%{_bindir}/yaz-iconv
     134%{_bindir}/yaz-icu
     135%{_bindir}/yaz-illclient
     136%{_bindir}/yaz-json-parse
     137%{_bindir}/yaz-marcdump
     138%{_bindir}/yaz-record-conv
     139%{_bindir}/yaz-url
     140%{_bindir}/yaz-ztest
     141%{_bindir}/zoomsh
     142%else
     143%{_bindir}/yaz*.exe
    140144%{_bindir}/zoomsh.exe
    141 %{_bindir}/yaz-marcdump.exe
    142 %{_bindir}/yaz-iconv.exe
    143 %{_bindir}/yaz-json-parse.exe
    144 %{_bindir}/yaz-url.exe
    145 %{_bindir}/yaz-record-conv.exe
     145%endif
    146146%{_mandir}/man1/yaz-client.*
     147%{_mandir}/man1/yaz-iconv.*
     148%{_mandir}/man1/yaz-icu.*
     149%{_mandir}/man1/yaz-illclient.*
    147150%{_mandir}/man1/yaz-json-parse.*
     151%{_mandir}/man7/yaz-log.*
     152%{_mandir}/man1/yaz-marcdump.*
     153%{_mandir}/man1/yaz-record-conv.*
    148154%{_mandir}/man1/yaz-url.*
    149155%{_mandir}/man8/yaz-ztest.*
    150156%{_mandir}/man1/zoomsh.*
    151 %{_mandir}/man1/yaz-marcdump.*
    152 %{_mandir}/man1/yaz-iconv.*
    153 %{_mandir}/man1/yaz-record-conv.*
    154 %{_mandir}/man7/yaz-log.*
     157
     158%files -n lib%{name}
     159%license LICENSE
     160%if !0%{?os2_version}
     161%{_libdir}/libyaz.so.5*
     162%{_libdir}/libyaz_icu.so.5*
     163%{_libdir}/libyaz_server.so.5*
     164%else
     165%{_libdir}/*.dll
     166%endif
     167%{_mandir}/man7/yaz.*
    155168%{_mandir}/man7/bib1-attr.*
    156169
    157 %files -n libyaz5
    158 %defattr(-,root,root)
    159 %{_libdir}/*.dll
    160 
    161 %files -n libyaz5-devel
    162 %defattr(-,root,root)
     170%files -n lib%{name}-devel
     171%doc NEWS README.md
     172%{_bindir}/yaz-asncomp
    163173%{_bindir}/yaz-config
    164 %{_bindir}/yaz-asncomp
    165 %{_includedir}/yaz
    166 %{_libdir}/pkgconfig/yaz*.pc
     174%{_libdir}/pkgconfig/*
     175%if !0%{?os2_version}
     176%{_libdir}/*.so
     177%else
    167178%{_libdir}/*.a
    168 %{_datadir}/aclocal/yaz.m4
     179%endif
     180%{_includedir}/%{name}/
     181%{_datadir}/yaz/
     182%{_datadir}/aclocal/*
    169183%{_mandir}/man1/yaz-asncomp.*
    170 %{_mandir}/man7/yaz.*
    171 %{_mandir}/man?/yaz-config.*
    172 %{_datadir}/doc/yaz
    173 %{_datadir}/yaz
    174 
    175 %files -n yaz-illclient
    176 %defattr(-,root,root)
    177 %{_bindir}/yaz-illclient.exe
    178 %{_mandir}/man1/yaz-illclient.*
    179 
    180 %files -n yaz-icu
    181 %defattr(-,root,root)
    182 %{_bindir}/yaz-icu.exe
    183 %{_mandir}/man1/yaz-icu.*
     184%{_mandir}/man1/yaz-config.*
     185
     186%files -n %{name}-doc
     187%{_docdir}/yaz/*
    184188
    185189%changelog
     190* Fri Mar 25 2022 Elbert Pol <elbert.pol@gmail.com> - 5.31.1-1
     191- Updated to latest version
     192- Thankz Silvan for helping me fixing some problems.
     193
    186194* Sat May 08 2021 Elbert Pol <elbert.pol@gmail.com> - 5.31.0-1
    187195- Updated to latest version
Note: See TracChangeset for help on using the changeset viewer.