Modernize spec code

This commit is contained in:
Petr Písař 2013-04-03 17:08:33 +02:00
parent 5d74c7fcd6
commit 18aecdcda3

View File

@ -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}