Changeset 1711 for spec/trunk/SPECS/yaz.spec
- Timestamp:
- Sep 30, 2020, 8:37:34 PM (5 years ago)
- File:
-
- 1 edited
-
spec/trunk/SPECS/yaz.spec (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/yaz.spec
r1447 r1711 8 8 Name: yaz 9 9 Summary: Z39.50 Programs 10 Version: 5. 26.111 Release: 410 Version: 5.30.3 11 Release: 1 12 12 # determine system 13 %if !0%{?os2_version} 13 14 %define is_redhat5 %(grep 'release 5' /etc/redhat-release >/dev/null 2>&1 && echo 1 || echo 0) 14 15 %define is_mandrake %(test -e /etc/mandrake-release && echo 1 || echo 0) … … 17 18 %define is_fedora %(test -e /etc/fedora-release && echo 1 || echo 0) 18 19 %define is_os2 %(test -e /@unixroot/etc/os2-release && echo 1 || echo 0) 20 %endif 21 22 Patch0: filepath-os2.patch 23 Patch1: tpath-os2.patch 24 Patch2: makefile-os2.patch 25 Patch3: yaz-asncomp-os2.patch 26 Patch4: tcpip_os2.patch 19 27 20 28 Requires: readline, libyaz5 = %{version} … … 24 32 Vendor: Index Data ApS <info@indexdata.dk> 25 33 #Source: yaz-%{version}.tar.gz 26 %scm_source github http ://github.com/TeLLie/%{name}-os2master34 %scm_source github https://github.com/indexdata/yaz master 27 35 BuildRoot: %{_tmppath}/%{name}-%{version}-root 28 36 Prefix: %{_prefix} 29 37 38 %if !0%{?os2_version} 30 39 #%define TCPWRAPPER tcp_wrappers-devel 31 40 %if %is_redhat5 … … 37 46 %endif 38 47 39 #BuildRequires: %{TCPWRAPPER}40 48 %if %is_suse11 41 49 BuildRequires: libgnutls-devel 42 %e lse43 #BuildRequires: gnutls-devel 44 %endif 45 50 %endif 51 %endif 52 53 BuildRequires: gnutls-devel 46 54 BuildRequires: pkgconfig 47 55 BuildRequires: libxml2-devel … … 67 75 Retrieval. 68 76 69 #%post -n libyaz5 -p /sbin/ldconfig 70 #%postun -n libyaz5 -p /sbin/ldconfig 77 %if !0%{?os2_version} 78 %post -n libyaz5 -p /sbin/ldconfig 79 %postun -n libyaz5 -p /sbin/ldconfig 80 %endif 71 81 72 82 %package -n libyaz5-devel … … 97 107 %prep 98 108 %scm_setup 109 %patch0 -p0 -b .os2~ 110 %patch1 -p1 -b .tpath~ 111 %patch2 -p0 -b .makefile~ 112 %patch3 -p0 -b .asncomp~ 113 %patch4 -p0 -b .tcpip~ 99 114 100 115 %build 101 autoreconf -ivf 116 buildconf.sh 102 117 export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" 103 export LIBS="-lcx -ltinfo"118 export LIBS="-lcx" 104 119 105 120 CFLAGS="$RPM_OPT_FLAGS" \ 106 121 ./configure --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} \ 107 --enable-shared --with-xslt --with-icu --without-memcached108 109 %if %{?make_build:1}%{!?make_build:0} && %{?is_os2:0}%{!?is_os2:1}110 %make _build122 --enable-shared --without-memcached --disable-static --with-xslt --with-gnutls --with-icu --with-xml2 --with-iconv 123 124 %if !0%{?os2_version} 125 %make CFLAGS="$RPM_OPT_FLAGS" 111 126 %else 112 make CFLAGS="$RPM_OPT_FLAGS"127 make %{?_smp_mflags} 113 128 %endif 114 129 … … 117 132 make install DESTDIR=${RPM_BUILD_ROOT} 118 133 rm ${RPM_BUILD_ROOT}/%{_libdir}/*.la 134 135 %check 136 export BEGINLIBPATH=%{_builddir}/%{buildsubdir}/src/.libs 137 make -k check 119 138 120 139 %clean … … 146 165 %defattr(-,root,root) 147 166 %{_libdir}/*.dll 167 148 168 %files -n libyaz5-devel 149 169 %defattr(-,root,root) … … 151 171 %{_bindir}/yaz-asncomp 152 172 %{_includedir}/yaz 153 %{_libdir}/pkgconfig/yaz .pc173 %{_libdir}/pkgconfig/yaz*.pc 154 174 %{_libdir}/*.dll 155 175 %{_libdir}/*.a … … 172 192 173 193 %changelog 194 * Sat Aug 01 2020 Elbert Pol <elbert.pol@gmail.com> - 5.30.3-1 195 - Updated to latest source 196 - Updated the spec file 197 - Added patched to get is build and to get the test build 198 174 199 * Thu Jul 26 2018 Elbert Pol <elbert.pol@gmail.com> -5.26.1-4 175 200 - Updated to latest Xslt and Xml2 176 201 * Wed Jul 25 2018 Elbert Pol <elbert.pol@gmail.com> -5.26.1-3 177 202 - Add $(exeext) for tclsh 203 178 204 * Sat Jul 14 2018 Elbert Pol <elbert.pol@gmail.com> - 5.26.1-2 179 205 - remove some dependicies 206 180 207 * Sat Jul 14 2018 Elbert Pol <elbert.pol@gmail.com> - 5.26.1-1 181 208 - Initial build for OS2
Note:
See TracChangeset
for help on using the changeset viewer.
