Changeset 1447 for spec/trunk/SPECS


Ignore:
Timestamp:
Jul 26, 2018, 10:55:06 PM (7 years ago)
Author:
tellie
Message:

spec: yaz: Release version 5.26.1-4.

File:
1 edited

Legend:

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

    r1442 r1447  
    22# Copyright (C) Index Data
    33# See the file LICENSE for details.
    4 #
    54# spec file for YAZ
    65
    7 #%define idmetaversion %(. ./IDMETA; echo $VERSION)
     6%define idmetaversion %(. ./IDMETA; echo $VERSION)
     7
    88Name: yaz
    99Summary: Z39.50 Programs
    1010Version: 5.26.1
    11 Release: 2
     11Release: 4
     12# determine system
     13%define is_redhat5 %(grep 'release 5' /etc/redhat-release >/dev/null 2>&1 && echo 1 || echo 0)
     14%define is_mandrake %(test -e /etc/mandrake-release && echo 1 || echo 0)
     15%define is_suse %(test -e /etc/SuSE-release >/dev/null && echo 1 || echo 0)
     16%define is_suse11 %(grep 'VERSION = 11' /etc/SuSE-release >/dev/null 2>&1 && echo 1 || echo 0)
     17%define is_fedora %(test -e /etc/fedora-release && echo 1 || echo 0)
     18%define is_os2 %(test -e /@unixroot/etc/os2-release && echo 1 || echo 0)
    1219
    13 # determine system
    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)
    1920Requires: readline, libyaz5 = %{version}
     21
    2022License: BSD
    2123Group: Applications/Internet
     
    2729
    2830#%define TCPWRAPPER tcp_wrappers-devel
     31%if %is_redhat5
     32%define TCPWRAPPER tcp_wrappers
     33%endif
    2934
    30 #%if %is_redhat5
    31 #%define TCPWRAPPER tcp_wrappers
    32 #%endif
    33 
    34 #%if %is_suse
    35 #%define TCPWRAPPER tcpd-devel
    36 #%endif
     35%if %is_suse
     36%define TCPWRAPPER tcpd-devel
     37%endif
    3738
    3839#BuildRequires: %{TCPWRAPPER}
    39 
    40 #%if %is_suse11
    41 #BuildRequires: libgnutls-devel
    42 #%else
     40%if %is_suse11
     41BuildRequires: libgnutls-devel
     42%else
    4343#BuildRequires: gnutls-devel
    44 #%endif
     44%endif
    4545
    4646BuildRequires: pkgconfig
     
    5050BuildRequires: libicu-devel
    5151BuildRequires: wget
     52
    5253Packager: Adam Dickmeiss <adam@indexdata.dk>
    5354URL: http://www.indexdata.com/yaz
    54 
    5555%description
    5656This package contains both a test-server and clients (normal & ssl)
     
    6363
    6464%description -n libyaz5
     65
    6566YAZ is a library for the ANSI/NISO Z39.50 protocol for Information
    6667Retrieval.
     
    7374Group: Development/Libraries
    7475Requires: libyaz5 = %{version}, libxml2-devel, libxslt-devel, libicu-devel
    75 #Conflicts: libyaz-devel, libyaz4-devel
     76Conflicts: libyaz-devel, libyaz4-devel
    7677
    7778%description -n libyaz5-devel
     79
    7880Development libraries and includes for the libyaz package.
    79 
    8081%package -n yaz-illclient
    8182Summary: ILL client
     
    8586%description -n yaz-illclient
    8687yaz-illclient: an ISO ILL client.
    87 
    8888%package -n yaz-icu
    8989Summary: Command line utility for ICU utilities of YAZ
     
    101101autoreconf -ivf
    102102export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
    103 export LIBS="-lcx"
     103export LIBS="-lcx -ltinfo"
    104104
    105 #CFLAGS="$RPM_OPT_FLAGS" \
     105CFLAGS="$RPM_OPT_FLAGS" \
    106106 ./configure --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} \
    107         --enable-shared --with-xslt --with-icu --without-memcached
     107    --enable-shared --with-xslt --with-icu --without-memcached
    108108
    109 #       %if %{?make_build:1}%{!?make_build:0}
    110 #%make_build
    111 #%else
    112 #make -j4 CFLAGS="$RPM_OPT_FLAGS"
    113 make
    114 #%endif
     109%if %{?make_build:1}%{!?make_build:0} && %{?is_os2:0}%{!?is_os2:1}
     110%make_build
     111%else
     112make CFLAGS="$RPM_OPT_FLAGS"
     113%endif
    115114
    116115%install
     
    147146%defattr(-,root,root)
    148147%{_libdir}/*.dll
    149 
    150148%files -n libyaz5-devel
    151149%defattr(-,root,root)
     
    174172
    175173%changelog
     174* Thu Jul 26 2018 Elbert Pol <elbert.pol@gmail.com> -5.26.1-4
     175- Updated to latest Xslt and Xml2
     176* Wed Jul 25 2018 Elbert Pol <elbert.pol@gmail.com> -5.26.1-3
     177- Add $(exeext) for tclsh
    176178* Sat Jul 14 2018 Elbert Pol <elbert.pol@gmail.com> - 5.26.1-2
    177179- remove some dependicies
    178180* Sat Jul 14 2018 Elbert Pol <elbert.pol@gmail.com> - 5.26.1-1
    179181- Initial build for OS2
     182
Note: See TracChangeset for help on using the changeset viewer.