Ignore:
Timestamp:
Sep 30, 2020, 8:37:34 PM (5 years ago)
Author:
tellie
Message:

spec: speexdsp: Release version 1.2.0-1.

File:
1 edited

Legend:

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

    r1447 r1711  
    88Name: yaz
    99Summary: Z39.50 Programs
    10 Version: 5.26.1
    11 Release: 4
     10Version: 5.30.3
     11Release: 1
    1212# determine system
     13%if !0%{?os2_version}
    1314%define is_redhat5 %(grep 'release 5' /etc/redhat-release >/dev/null 2>&1 && echo 1 || echo 0)
    1415%define is_mandrake %(test -e /etc/mandrake-release && echo 1 || echo 0)
     
    1718%define is_fedora %(test -e /etc/fedora-release && echo 1 || echo 0)
    1819%define is_os2 %(test -e /@unixroot/etc/os2-release && echo 1 || echo 0)
     20%endif
     21
     22Patch0: filepath-os2.patch
     23Patch1: tpath-os2.patch
     24Patch2: makefile-os2.patch
     25Patch3: yaz-asncomp-os2.patch
     26Patch4: tcpip_os2.patch
    1927
    2028Requires: readline, libyaz5 = %{version}
     
    2432Vendor: Index Data ApS <info@indexdata.dk>
    2533#Source: yaz-%{version}.tar.gz
    26 %scm_source github http://github.com/TeLLie/%{name}-os2 master
     34%scm_source github https://github.com/indexdata/yaz master
    2735BuildRoot: %{_tmppath}/%{name}-%{version}-root
    2836Prefix: %{_prefix}
    2937
     38%if !0%{?os2_version}
    3039#%define TCPWRAPPER tcp_wrappers-devel
    3140%if %is_redhat5
     
    3746%endif
    3847
    39 #BuildRequires: %{TCPWRAPPER}
    4048%if %is_suse11
    4149BuildRequires: libgnutls-devel
    42 %else
    43 #BuildRequires: gnutls-devel
    44 %endif
    45 
     50%endif
     51%endif
     52
     53BuildRequires: gnutls-devel
    4654BuildRequires: pkgconfig
    4755BuildRequires: libxml2-devel
     
    6775Retrieval.
    6876
    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
    7181
    7282%package -n libyaz5-devel
     
    97107%prep
    98108%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~
    99114
    100115%build
    101 autoreconf -ivf
     116buildconf.sh
    102117export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
    103 export LIBS="-lcx -ltinfo"
     118export LIBS="-lcx"
    104119
    105120CFLAGS="$RPM_OPT_FLAGS" \
    106121 ./configure --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} \
    107     --enable-shared --with-xslt --with-icu --without-memcached
    108 
    109 %if %{?make_build:1}%{!?make_build:0} && %{?is_os2:0}%{!?is_os2:1}
    110 %make_build
     122   --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"
    111126%else
    112 make CFLAGS="$RPM_OPT_FLAGS"
     127make %{?_smp_mflags}
    113128%endif
    114129
     
    117132make install DESTDIR=${RPM_BUILD_ROOT}
    118133rm ${RPM_BUILD_ROOT}/%{_libdir}/*.la
     134
     135%check
     136export BEGINLIBPATH=%{_builddir}/%{buildsubdir}/src/.libs
     137make -k check
    119138
    120139%clean
     
    146165%defattr(-,root,root)
    147166%{_libdir}/*.dll
     167
    148168%files -n libyaz5-devel
    149169%defattr(-,root,root)
     
    151171%{_bindir}/yaz-asncomp
    152172%{_includedir}/yaz
    153 %{_libdir}/pkgconfig/yaz.pc
     173%{_libdir}/pkgconfig/yaz*.pc
    154174%{_libdir}/*.dll
    155175%{_libdir}/*.a
     
    172192
    173193%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
    174199* Thu Jul 26 2018 Elbert Pol <elbert.pol@gmail.com> -5.26.1-4
    175200- Updated to latest Xslt and Xml2
    176201* Wed Jul 25 2018 Elbert Pol <elbert.pol@gmail.com> -5.26.1-3
    177202- Add $(exeext) for tclsh
     203
    178204* Sat Jul 14 2018 Elbert Pol <elbert.pol@gmail.com> - 5.26.1-2
    179205- remove some dependicies
     206
    180207* Sat Jul 14 2018 Elbert Pol <elbert.pol@gmail.com> - 5.26.1-1
    181208- Initial build for OS2
Note: See TracChangeset for help on using the changeset viewer.