Changeset 811


Ignore:
Timestamp:
Jun 22, 2016, 9:30:43 AM (9 years ago)
Author:
Yuri Dario
Message:

spec: bzip2, rebuild package, fixes ticket#183.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified spec/trunk/SPECS/bzip2.spec

    r168 r811  
     1#define svn_url     F:/rd/ports/bzip2/trunk
     2%define svn_url     http://svn.netlabs.org/repos/ports/bzip2/trunk
     3%define svn_rev     192
    14
    25Summary: A file compression utility
    36Name: bzip2
    47Version: 1.0.6
    5 Release: 5%{?dist}
     8Release: 6%{?dist}
    69License: BSD
    710Group: Applications/File
    811URL: http://www.bzip.org/
    9 Source: http://www.bzip.org/%{version}/bzip2-%{version}.tar.gz
    10 Patch0: bzip2-os2.diff
    11 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
     12Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
    1213
    1314%description
     
    2829
    2930%description devel
    30 
    3131Header files and a library of bzip2 functions, for developing apps
    3232which will use the library.
     
    3737
    3838%description libs
    39 
    4039Libraries for applications using the bzip2 compression format.
    4140
     41%debug_package
     42
    4243%prep
    43 # -D Do not delete the directory before unpacking.
    44 # -T Disable the automatic unpacking of the archives.
    45 %setup
    46 %patch0 -p1 -b .os2~
     44%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}
     45%setup -q
     46%else
     47%setup -n "%{name}-%{version}" -Tc
     48echo %{svn_rev}
     49svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
     50rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"
     51(cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}")
     52%endif
    4753
    4854%build
     
    110116
    111117%changelog
     118* Wed Jun 22 2016 yd <yd@os2power.com> 1.0.6-6
     119- rebuild package, fixes ticket#183.
     120- added debug package.
Note: See TracChangeset for help on using the changeset viewer.