[sharutils] Modernize spec code

Petr Pisar ppisar at fedoraproject.org
Wed Apr 3 15:12:24 UTC 2013


commit 18aecdcda352fdebe88aee4cc565672823bcc509
Author: Petr Písař <ppisar at redhat.com>
Date:   Wed Apr 3 17:08:33 2013 +0200

    Modernize spec code

 sharutils.spec |   49 +++++++++++++++++++++++--------------------------
 1 files changed, 23 insertions(+), 26 deletions(-)
---
diff --git a/sharutils.spec b/sharutils.spec
index e6cc5ea..6f39a2a 100644
--- a/sharutils.spec
+++ b/sharutils.spec
@@ -1,28 +1,27 @@
-Summary: The GNU shar utilities for packaging and unpackaging shell archives
-Name: sharutils
-Version: 4.13.4
-Release: 1%{?dist}
-License: GPLv3+ and LGPLv2+ and Public Domain
-Group: Applications/Archiving
-Source: ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz
-URL: http://www.gnu.org/software/%{name}/
-BuildRequires: gettext
-Requires(post): info
-Requires(preun): info
-Provides: bundled(gnulib)
+Summary:    The GNU shar utilities for packaging and unpackaging shell archives
+Name:       sharutils
+Version:    4.13.4
+Release:    1%{?dist}
+License:    GPLv3+ and LGPLv2+ and Public Domain
+Group:      Applications/Archiving
+Source:     ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz
+URL:        http://www.gnu.org/software/%{name}/
+BuildRequires:      gettext
+Requires(post):     info
+Requires(preun):    info
+Provides:           bundled(gnulib)
 
 %description
-The sharutils package contains the GNU shar utilities, a set of tools
-for encoding and decoding packages of files (in binary or text format)
-in a special plain text format called shell archives (shar).  This
-format can be sent through e-mail (which can be problematic for regular
-binary files).  The shar utility supports a wide range of capabilities
-(compressing, uuencoding, splitting long files for multi-part
-mailings, providing check-sums), which make it very flexible at
-creating shar files.  After the files have been sent, the unshar tool
-scans mail messages looking for shar files.  Unshar automatically
-strips off mail headers and introductory text and then unpacks the
-shar files.
+The sharutils package contains the GNU shar utilities, a set of tools for
+encoding and decoding packages of files (in binary or text format) in
+a special plain text format called shell archives (shar).  This format can be
+sent through e-mail (which can be problematic for regular binary files).  The
+shar utility supports a wide range of capabilities (compressing, uuencoding,
+splitting long files for multi-part mailings, providing check-sums), which
+make it very flexible at creating shar files.  After the files have been sent,
+the unshar tool scans mail messages looking for shar files.  Unshar
+automatically strips off mail headers and introductory text and then unpacks
+the shar files.
 
 %prep
 %setup -q
@@ -38,10 +37,8 @@ done
 make %{?_smp_mflags}
 
 %install
-make DESTDIR=${RPM_BUILD_ROOT} INSTALL='install -p' install
+make DESTDIR=${RPM_BUILD_ROOT} install
 rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir
-# gnulib-tool installs compat header files mistakenly
-rm -rf ${RPM_BUILD_ROOT}%{_includedir}
 chmod 644 AUTHORS ChangeLog COPYING NEWS README THANKS TODO
 %find_lang %{name}
 


More information about the scm-commits mailing list