Changeset 1745 for spec/trunk/SPECS


Ignore:
Timestamp:
Jan 10, 2021, 4:47:46 PM (5 years ago)
Author:
tellie
Message:

spec: lzip: Release version 1.22-1.

File:
1 edited

Legend:

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

    r1695 r1745  
    11Name:           lzip
    2 Version:        1.21
    3 Release:        2%{?dist}
     2Version:        1.22
     3Release:        1%{?dist}
    44Summary:        LZMA compressor with integrity checking
    55
    66License:        GPLv3+
    77URL:            http://www.nongnu.org/lzip/lzip.html
    8 #Source0:        http://download.savannah.gnu.org/releases/lzip/lzip-%{version}.tar.gz
    9 #Source1:        http://download.savannah.gnu.org/releases/lzip/lzip-%{version}.tar.gz.sig
    10 %scm_source github http://github.com/TeLLie/%{name}-os2 master
     8%if !0%{?os2_version}
     9Source0:        http://download.savannah.gnu.org/releases/lzip/lzip-%{version}.tar.gz
     10Source1:        http://download.savannah.gnu.org/releases/lzip/lzip-%{version}.tar.gz.sig
     11%else
     12%scm_source github http://github.com/TeLLie/%{name}-os2 %{version}-os2
     13%endif
    1114
    12 git clone https://git.progress-linux.org/users/daniel.baumann/debian/packages/lzip
    1315BuildRequires:  gcc
    1416
    15 #Requires(post): info
    16 #Requires(preun): info
     17%if !0%{?os2_version}
     18Requires(post): info
     19Requires(preun): info
     20%endif
     21
     22BuildRoot:      %{_tmppath}/%{name}-%{version}-build
    1723
    1824%description
     
    2430
    2531%prep
    26 #%setup -q
     32%if !0%{?os2_version}
     33%setup -q
     34%else
    2735%scm_setup
     36%endif
    2837# file needs to be copied, because it is used in "make check"
    29 #cp -a COPYING{,.txt}
     38%if !0%{?os2_version}
     39cp -a COPYING{,.txt}
     40%else
    3041cp -a COPYING COPYING.txt
     42%endif
    3143# convert CRLF to LF
    3244sed -i 's/\r//' COPYING.txt
    33 
    3445
    3546%build
     
    5768
    5869%post
    59 #/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
    60 
     70%if !0%{?os2_version}
     71/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
     72%endif
    6173
    6274%preun
    63 #if [ $1 = 0 ] ; then
    64 #/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
    65 #fi
    66 
     75%if !0%{?os2_version}
     76if [ $1 = 0 ] ; then
     77/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
     78fi
     79%endif
    6780
    6881%files
    6982%defattr(-,root,root,-)
    70 /@unixroot/usr/bin/lzip
     83%exclude /@unixroot/usr/bin/lzip
    7184%license COPYING.txt
    7285# TODO is currently empty
    7386%doc AUTHORS ChangeLog NEWS README
     87%if !0%{?os2_version}
     88%{_bindir}/lzip
     89%else
    7490%{_bindir}/lzip.exe
    7591%{_infodir}/lzip.info*
    7692%{_mandir}/man1/lzip.1*
     93%endif
    7794
    7895%changelog
     96* Sun Jan 10 2021 Elbert Pol <elbert.pol@gmail.com> - 1.22 - 1
     97- Update to latest version
     98
    7999* Thu Jan 31 2019 Elbert Pol <elbert.pol@gmail.com> - 1.21-2
    80100- Upload src to github
Note: See TracChangeset for help on using the changeset viewer.