arc/arc.spec
Marcus Meissner 45e9058a89 Accepting request 663595 from home:kbabioch:branches:Archiving
- Make use of license %macro 
- Applied spec-cleaner
- Added patches:
  * arc-5.21p-directory-traversel.patch: Fixes a directory traversal
    vulnerability (CVE-2015-9275 bsc#1121032)
  * arc-5.21p-fix-arcdie.patch: Fixed a crash on 64 bit machines when arcdie
    gets called with more than 1 variable argument
  * arc-5.21p-hdrv1-read-fix.patch: Fixed version 1 arc header reading

OBS-URL: https://build.opensuse.org/request/show/663595
OBS-URL: https://build.opensuse.org/package/show/Archiving/arc?expand=0&rev=6
2019-01-08 10:53:30 +00:00

59 lines
1.6 KiB
RPMSpec

#
# spec file for package arc
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: arc
Version: 5.21q
Release: 0
Summary: Archiving tool for arc achives
License: GPL-2.0-only
Group: Productivity/Archiving/Compression
URL: https://github.com/ani6al/arc
Source: https://github.com/ani6al/arc/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0: arc-5.21p-directory-traversel.patch
Patch1: arc-5.21p-fix-arcdie.patch
Patch2: arc-5.21p-hdrv1-read-fix.patch
%description
This package allows you to unpack *.arc file
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%build
make %{?_smp_mflags} OPT="%{optflags}"
%install
install -Dpm 0755 arc \
%{buildroot}%{_bindir}/arc
install -Dpm 0755 marc \
%{buildroot}%{_bindir}/marc
install -Dpm 0644 arc.1 \
%{buildroot}%{_mandir}/man1/arc.1
%files
%doc Arc521.doc Arcinfo Readme
%license LICENSE
%{_bindir}/arc
%{_bindir}/marc
%{_mandir}/man1/arc.1%{ext_man}
%changelog