diff --git a/tar-disable-listed02-test.patch b/tar-disable-listed02-test.patch deleted file mode 100644 index adb5d0e..0000000 --- a/tar-disable-listed02-test.patch +++ /dev/null @@ -1,12 +0,0 @@ -Index: tar-1.26/tests/testsuite.at -=================================================================== ---- tar-1.26.orig/tests/testsuite.at -+++ tar-1.26/tests/testsuite.at -@@ -180,7 +180,6 @@ m4_include([incremental.at]) - m4_include([incr01.at]) - m4_include([incr02.at]) - m4_include([listed01.at]) --m4_include([listed02.at]) - m4_include([listed03.at]) - m4_include([listed04.at]) - m4_include([incr03.at]) diff --git a/tar-disable_languages.patch b/tar-disable_languages.patch deleted file mode 100644 index f7fe21c..0000000 --- a/tar-disable_languages.patch +++ /dev/null @@ -1,14 +0,0 @@ -Disable the languages, which don't have yet a path in /usr/share/locale/ - -Index: tar-1.23/po/LINGUAS -=================================================================== ---- tar-1.23.orig/po/LINGUAS -+++ tar-1.23/po/LINGUAS -@@ -16,7 +16,6 @@ id - it - ja - ko --ky - ms - nb - nl diff --git a/tar-fortifysourcessigabrt.patch b/tar-fortifysourcessigabrt.patch deleted file mode 100644 index 2ed813f..0000000 --- a/tar-fortifysourcessigabrt.patch +++ /dev/null @@ -1,26 +0,0 @@ -Index: tar-1.25/src/create.c -=================================================================== ---- tar-1.25.orig/src/create.c -+++ tar-1.25/src/create.c -@@ -517,8 +517,8 @@ start_private_header (const char *name, - GID_TO_CHARS (getgid (), header->header.gid); - MAJOR_TO_CHARS (0, header->header.devmajor); - MINOR_TO_CHARS (0, header->header.devminor); -- strncpy (header->header.magic, TMAGIC, TMAGLEN); -- strncpy (header->header.version, TVERSION, TVERSLEN); -+ memcpy (header->header.magic, TMAGIC, TMAGLEN); -+ memcpy (header->header.version, TVERSION, TVERSLEN); - return header; - } - -@@ -906,8 +906,8 @@ start_header (struct tar_stat_info *st) - - case POSIX_FORMAT: - case USTAR_FORMAT: -- strncpy (header->header.magic, TMAGIC, TMAGLEN); -- strncpy (header->header.version, TVERSION, TVERSLEN); -+ memcpy (header->header.magic, TMAGIC, TMAGLEN); -+ memcpy (header->header.version, TVERSION, TVERSLEN); - break; - - default: diff --git a/tar-manpage.patch b/tar-manpage.patch deleted file mode 100644 index 90b75b0..0000000 --- a/tar-manpage.patch +++ /dev/null @@ -1,38 +0,0 @@ -Index: tar-1.25/doc/Makefile.am -=================================================================== ---- tar-1.25.orig/doc/Makefile.am -+++ tar-1.25/doc/Makefile.am -@@ -32,6 +32,9 @@ tar_TEXINFOS = \ - sparse.texi\ - value.texi - EXTRA_DIST = gendocs_template mastermenu.el texify.sed untabify.el -+dist_man_MANS = tar.1 -+TAR = $(top_builddir)/src/tar -+HELP2MAN = /usr/bin/help2man - - # The rendering level is anyone of PUBLISH, DISTRIB or PROOF. - # Just call `make RENDITION=PROOF [target]' if you want PROOF rendition. -@@ -39,6 +42,10 @@ RENDITION = DISTRIB - - MAKEINFOFLAGS=-D$(RENDITION) - -+tar.1: $(top_srcdir)/src/tar.c $(top_srcdir)/configure.ac -+ $(HELP2MAN) --name "The GNU version of the tar archiving utility" \ -+ -p tar $(TAR) > $(srcdir)/tar.1 -+ - header.texi: $(top_srcdir)/src/tar.h - sed -f $(srcdir)/texify.sed $(top_srcdir)/src/tar.h \ - | expand >$@ -Index: tar-1.25/Makefile.am -=================================================================== ---- tar-1.25.orig/Makefile.am -+++ tar-1.25/Makefile.am -@@ -20,7 +20,7 @@ - - ACLOCAL_AMFLAGS = -I m4 - EXTRA_DIST = ChangeLog.1 Make.rules --SUBDIRS = doc gnu lib rmt src scripts po tests -+SUBDIRS = gnu lib rmt src doc scripts po tests - - dist-hook: - $(MAKE) changelog_dir=$(distdir) ChangeLog diff --git a/tar.changes b/tar.changes index 1aee109..58c2a0e 100644 --- a/tar.changes +++ b/tar.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Thu Sep 29 11:32:04 UTC 2011 - sweet_f_a@gmx.de + +- spec cleaner, avoid some deprecated macros +- fix non-utf8-spec-file +- fix macro-in-comment +- enable make check +- remove upstream-fixed/obsolete patches (fortifysourcessigabrt, + disable-listed02-test, disable_languages) +- call help2man inside specfile instead of paching tar's build chain + ------------------------------------------------------------------- Tue Mar 15 08:18:08 UTC 2011 - puzel@novell.com @@ -391,7 +402,7 @@ Sun May 30 10:37:44 CEST 2004 - mmj@suse.de ------------------------------------------------------------------- Thu Apr 15 20:45:11 CEST 2004 - mmj@suse.de -- Fix detection of remote paths [#38709]. Thanks Jürgen! +- Fix detection of remote paths [#38709]. Thanks Jürgen! ------------------------------------------------------------------- Tue Apr 13 10:47:51 CEST 2004 - mmj@suse.de diff --git a/tar.spec b/tar.spec index d4978e0..f053bc7 100644 --- a/tar.spec +++ b/tar.spec @@ -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