Changeset 513


Ignore:
Timestamp:
Feb 2, 2015, 6:10:43 PM (11 years ago)
Author:
Yuri Dario
Message:

spec: file, r266, rebuilt with gcc 4.9.2 and python 2.7.

File:
1 edited

Legend:

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

    r168 r513  
     1#define svn_url     F:/rd/ports/file/trunk
     2%define svn_url     http://svn.netlabs.org/repos/ports/file/trunk
     3%define svn_rev     266
     4
    15%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
    26%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
     
    610Name: file
    711Version: 5.04
    8 Release: 6%{?dist}
     12Release: 7%{?dist}
    913License: BSD
    1014Group: Applications/File
    11 Source0: ftp://ftp.astron.com/pub/file/file-%{version}.tar.gz
    1215URL: http://www.darwinsys.com/file/
    1316
    14 Patch0: file-os2.diff
     17Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
    1518
    1619Requires: file-libs = %{version}-%{release}
     
    6366file(1) command.
    6467
     68%package debug
     69Summary: HLL debug data for exception handling support.
     70
     71%description debug
     72HLL debug data for exception handling support.
     73
    6574%prep
    66 
    67 # Don't use -b -- it will lead to poblems when compiling magic file
     75%if %(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')
    6876%setup -q
    69 %patch0 -p1
     77%else
     78%setup -n "%{name}-%{version}" -T -c
     79svn export -r %{svn_rev} %{svn_url} . --force
     80rm -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip"
     81(cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" "%{name}-%{version}")
     82%endif
    7083
    7184#iconv -f iso-8859-1 -t utf-8 < doc/libmagic.man > doc/libmagic.man_
     
    7487
    7588%build
    76 export CONFIG_SHELL="/bin/sh"
     89export CONFIG_SITE="/@unixroot/usr/share/config.legacy"
    7790export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
    7891export LIBS="-lurpo -lmmap"
     
    8093%configure \
    8194        --enable-fsect-man5 --disable-rpath \
    82         --disable-shared --disable-static \
    83         "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
     95        --disable-shared --disable-static
    8496
    85 # remove hardcoded library paths from local libtool
    86 #sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
    87 #sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
    88 #export LD_LIBRARY_PATH=%{_builddir}/%{name}-%{version}/src/.libs
    8997make %{?_smp_mflags}
    9098
     
    118126rm -rf $RPM_BUILD_ROOT
    119127
    120 #%post libs -p /sbin/ldconfig
    121 
    122 #%postun libs -p /sbin/ldconfig
    123 
    124128%files
    125129%defattr(-,root,root,-)
     
    152156%{_libdir}/python*/*
    153157
     158%files debug
     159%defattr(-,root,root)
     160%{_libdir}/*.dbg
     161
    154162%changelog
     163* Mon Feb 02 2015 yd <yd@os2power.com> 5.04-7
     164- r266, rebuilt with gcc 4.9.2 and python 2.7.
Note: See TracChangeset for help on using the changeset viewer.