SHA256
6
0
forked from pool/tar

Accepting request 85438 from home:rudi_m:branches:Base:System

This supersedes sr85301, doing a major instead of minor cleanup, see
changelog.

Further notes on the removed patches:
fortifysourcessigabrt, fixed in upstream 065cf095
disable-listed02-test, why ever the test has been disabled in past
  now it works fine
tar-disable_languages, regarding the comments inside the patch it's
  time to drop it
manpage, call help2man from specfile instead of patching tar's build chain
  to avoid depending on autotools

OBS-URL: https://build.opensuse.org/request/show/85438
OBS-URL: https://build.opensuse.org/package/show/Base:System/tar?expand=0&rev=26
This commit is contained in:
Vítězslav Čížek
2011-10-04 11:53:30 +00:00
committed by Git OBS Bridge
parent f7b7c89c3d
commit fec3f970c1
6 changed files with 21 additions and 112 deletions

View File

@@ -26,15 +26,11 @@ Url: http://www.gnu.org/software/tar/
Group: System/Base
Source0: %{name}-%{version}.tar.bz2
#
Patch0: tar-disable_languages.patch
Patch1: tar-disable-listed02-test.patch
Patch2: tar-manpage.patch
Patch3: tar-wildcards.patch
Patch5: tar-fortifysourcessigabrt.patch
Patch6: tar-backup-spec-fix-paths.patch
BuildRequires: help2man
PreReq: %install_info_prereq
Recommends: tar-lang = %version
Requires(pre): info
Recommends: tar-lang = %{version}
Recommends: xz
Provides: base:/bin/tar
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -52,26 +48,19 @@ package.
License: GPLv3+
Summary: Backup scripts
Group: Productivity/Archiving/Backup
Requires: %{name} = %{version}-%{release}
Requires: %{name} = %{version}
%description backup-scripts
Shell scripts for system backup/restore
%lang_package
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch5 -p1
%patch6 -p1
%build
rm -f po/no.* po/ky.*
#autoreconf -fi
aclocal -I m4
automake --force --add-missing
%define my_cflags -W -Wall -Wpointer-arith -Wstrict-prototypes -Wformat-security -Wno-unused-parameter
export CFLAGS="%{optflags} %my_cflags"
export RSH="/usr/bin/rsh"
@@ -81,14 +70,13 @@ export RSH="/usr/bin/rsh"
make %{?_smp_mflags};
%check
#%ifarch %arm
#make check || true
#%else
#make check
#%endif
make check
%install
%make_install
%{?make_install} %{!?make_install:make install DESTDIR=%{buildroot}}
install -d -m 755 %{buildroot}/%{_mandir}/man1
help2man ./src/tar --name "The GNU version of the tar archiving utility" -p tar \
| gzip -c > %{buildroot}/%{_mandir}/man1/tar.1.gz
install -d -m 755 %{buildroot}%{_sysconfdir}/backup
install -D -m 644 scripts/backup-specs %{buildroot}%{_sysconfdir}/backup/backup-specs
rm -rf %{buildroot}%{_libexecdir}/rmt