Ignore:
Timestamp:
Oct 5, 2016, 10:49:10 AM (9 years ago)
Author:
Silvan Scherrer
Message:

spec: findutils: update to version 4.6.0

File:
1 edited

Legend:

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

    r386 r855  
     1#define svn_url     e:/trees/findutils/trunk
     2%define svn_url     http://svn.netlabs.org/repos/ports/findutils/trunk
     3%define svn_rev     1720
     4
    15Summary: The GNU versions of find utilities (find and xargs)
    26Name: findutils
    3 Version: 4.4.2
    4 Release: 6%{?dist}
     7Version: 4.6.0
     8Release: 1%{?dist}
    59Epoch: 1
    610License: GPLv3+
    711Group: Applications/File
    812URL: http://www.gnu.org/software/findutils/
    9 Source0: ftp://ftp.gnu.org/gnu/findutils/%{name}-%{version}.tar.gz
    10 
    11 Patch0: findutils-os2.patch
     13Vendor:  bww bitwise works GmbH
     14Source:  %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
    1215
    1316Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
    14 #BuildRequires: libtool, automake, autoconf
    15 #BuildRequires: dejagnu, texinfo
    16 BuildRequires: gettext-devel
     17BuildRequires: libtool, automake, autoconf
     18BuildRequires: texinfo
     19#BuildRequires: dejagnu
     20
     21#Requires(post): /sbin/install-info
     22#Requires(preun): /sbin/install-info
    1723
    1824%description
     
    2733useful for finding things on your system.
    2834
    29 %package debug
    30 Summary: HLL debug data for exception handling support.
    31 
    32 %description debug
    33 HLL debug data for exception handling support.
    34 
     35%debug_package
    3536
    3637%prep
     38%if %{?svn_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{!?svn_rev):0}
    3739%setup -q
    38 %patch0 -p1
     40%else
     41%setup -n "%{name}-%{version}" -Tc
     42svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
     43rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"
     44(cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}")
     45%endif
     46
     47autoreconf -fiv
    3948
    4049%build
    41 export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe"
    42 export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE"
    43 export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
    44 export LIBS="-lurpo -lmmap"
    45 %configure \
    46    --without-fts \
    47    "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
     50export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
     51export LIBS="-lcx -lpthread"
     52%configure
     53
    4854make %{?_smp_mflags}
    4955
     
    5561make install DESTDIR=$RPM_BUILD_ROOT
    5662
    57 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
    58 rm -f $RPM_BUILD_ROOT/%{_libdir}/charset.alias
    59 
    60 #%find_lang %{name}
    61 
    62 # move find to /bin/find
    63 #mkdir -p $RPM_BUILD_ROOT/bin
    64 #mv $RPM_BUILD_ROOT{%_bindir,/bin}/find
    65 
    66 # create /usr/bin/find -> /bin/find symlink
    67 #ln -sf ../../bin/find $RPM_BUILD_ROOT/usr/bin
     63rm -f %{buildroot}%{_infodir}/dir
    6864
    6965# yd move conflicting tools to libexec/bin and place a symlink for script compatibility
     
    7470done
    7571
     72%find_lang %{name}
     73
     74%post
     75#if [ -f %{_infodir}/find.info.gz ]; then
     76#  /sbin/install-info %{_infodir}/find.info.gz %{_infodir}/dir || :
     77#fi
     78
     79%preun
     80#if [ $1 = 0 ]; then
     81#  if [ -f %{_infodir}/find.info.gz ]; then
     82#    /sbin/install-info --delete %{_infodir}/find.info.gz %{_infodir}/dir || :
     83#  fi
     84#fi
     85
    7686%clean
    7787rm -rf $RPM_BUILD_ROOT
    7888
    79 %files
    80 # -f %{name}.lang
     89%files -f %{name}.lang
    8190%defattr(-,root,root,-)
    82 %doc AUTHORS COPYING NEWS README THANKS TODO
     91%{!?_licensedir:%global license %%doc}
     92%license COPYING
     93%doc AUTHORS NEWS README THANKS TODO
    8394%{_bindir}/find
    84 %{_bindir}/ftsfind.exe
    8595%{_bindir}/xargs.exe
    8696%{_bindir}/locate.exe
     
    92102%{_infodir}/find-maint.info
    93103%{_datadir}/locale/*
    94 %exclude %{_bindir}/*.dbg
    95104%exclude %{_libexecdir}/*.dbg
    96105%exclude %{_libexecdir}/bin/*.dbg
    97106
    98 %files debug
    99 %defattr(-,root,root)
    100 %{_bindir}/*.dbg
    101 %{_libexecdir}/*.dbg
    102 %{_libexecdir}/bin/*.dbg
     107%changelog
     108* Wed Oct 05 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> - 4.6.0-1
     109- udated version to 4.6.0
     110- adjusted spec to latest toolset
    103111
    104 %changelog
    105112* Sat Mar 15 2014 yd
    106113- fixed libexec dir for symlinks.
     
    120127
    121128* Sun Jan 08 2012 yd
    122 - initial unixroot build.
     129- initial unixroot build
Note: See TracChangeset for help on using the changeset viewer.