Accepting request 635690 from home:pluskalm:branches:Archiving
- Use url to fetch keyring - Do not force building with pie, its default now anyways - Use https for urls - Install license OBS-URL: https://build.opensuse.org/request/show/635690 OBS-URL: https://build.opensuse.org/package/show/Archiving/cpio?expand=0&rev=70
This commit is contained in:
committed by
Git OBS Bridge
parent
41c2809514
commit
52929427ba
29
cpio.spec
29
cpio.spec
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package cpio
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2018 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
|
||||
@@ -12,7 +12,7 @@
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
@@ -20,12 +20,12 @@ Name: cpio
|
||||
Version: 2.12
|
||||
Release: 0
|
||||
Summary: A Backup and Archiving Utility
|
||||
License: GPL-3.0
|
||||
License: GPL-3.0-only
|
||||
Group: Productivity/Archiving/Backup
|
||||
Url: http://www.gnu.org/software/cpio/cpio.html
|
||||
Source0: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.bz2
|
||||
Source1: http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.bz2.sig
|
||||
Source2: %{name}.keyring
|
||||
URL: https://www.gnu.org/software/cpio/cpio.html
|
||||
Source0: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.bz2
|
||||
Source1: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.bz2.sig
|
||||
Source2: https://savannah.gnu.org/project/memberlist-gpgkeys.php?group=%{name}&download=1#/%{name}.keyring
|
||||
Patch2: cpio-use_new_ascii_format.patch
|
||||
Patch4: cpio-use_sbin_rmt.patch
|
||||
#PATCH-FIX-UPSTREAM cpio-2.12 cpio-open_nonblock.patch bnc#94449,
|
||||
@@ -51,7 +51,6 @@ Requires(preun): %{install_info_prereq}
|
||||
Recommends: %{name}-lang = %{version}
|
||||
Recommends: %{name}-mt = %{version}
|
||||
Recommends: rmt
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
GNU cpio is a program to manage archives of files. Cpio copies files
|
||||
@@ -92,8 +91,7 @@ This package includes the 'mt', a local tape drive control program.
|
||||
%build
|
||||
gettextize -f
|
||||
autoreconf -fiv
|
||||
export CFLAGS="%{optflags} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fPIE"
|
||||
export LDFLAGS="-pie"
|
||||
export CFLAGS="%{optflags} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE"
|
||||
%configure \
|
||||
--with-rmt="%{_bindir}/rmt" \
|
||||
--enable-mt \
|
||||
@@ -133,24 +131,23 @@ if [ ! -f %{_bindir}/gnumt ] ; then
|
||||
fi
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%license COPYING
|
||||
%doc NEWS ChangeLog
|
||||
#UsrMerge
|
||||
/bin/cpio
|
||||
#EndUsrMerge
|
||||
%{_bindir}/cpio
|
||||
%{_infodir}/cpio.info%{ext_info}
|
||||
%{_mandir}/man1/cpio.1%{ext_man}
|
||||
%{_infodir}/cpio.info%{?ext_info}
|
||||
%{_mandir}/man1/cpio.1%{?ext_man}
|
||||
|
||||
%files mt
|
||||
%defattr(-,root,root)
|
||||
%ghost %{_bindir}/mt
|
||||
%{_bindir}/gnumt
|
||||
%ghost %{_mandir}/man1/mt.1%{ext_man}
|
||||
%{_mandir}/man1/gnumt.1%{ext_man}
|
||||
%{_mandir}/man1/gnumt.1%{?ext_man}
|
||||
%ghost %{_sysconfdir}/alternatives/mt
|
||||
%ghost %{_sysconfdir}/alternatives/mt.1%{ext_man}
|
||||
|
||||
%files lang -f %{name}.lang
|
||||
%defattr(-,root,root)
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user