fix license tag, update to 4.7, cleanup spec
This commit is contained in:
parent
7fc7f33e65
commit
fe476b9d20
@ -1,14 +1,15 @@
|
|||||||
Summary: The GNU shar utilities for packaging and unpackaging shell archives.
|
Summary: The GNU shar utilities for packaging and unpackaging shell archives
|
||||||
Name: sharutils
|
Name: sharutils
|
||||||
Version: 4.6.3
|
Version: 4.7
|
||||||
Release: 2%{?dist}
|
Release: 1%{?dist}
|
||||||
License: GPL
|
License: GPLv3+
|
||||||
Group: Applications/Archiving
|
Group: Applications/Archiving
|
||||||
Source: ftp://ftp.gnu.org/gnu/sharutils/REL-%{version}/sharutils-%{version}.tar.bz2
|
Source: ftp://ftp.gnu.org/gnu/sharutils/REL-%{version}/sharutils-%{version}.tar.bz2
|
||||||
URL: http://www.gnu.org/software/sharutils/
|
URL: http://www.gnu.org/software/sharutils/
|
||||||
BuildRequires: gettext
|
BuildRequires: gettext
|
||||||
Prereq: /sbin/install-info
|
Requires(pre): info
|
||||||
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
Requires(preun): info
|
||||||
|
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The sharutils package contains the GNU shar utilities, a set of tools
|
The sharutils package contains the GNU shar utilities, a set of tools
|
||||||
@ -23,44 +24,55 @@ scans mail messages looking for shar files. Unshar automatically
|
|||||||
strips off mail headers and introductory text and then unpacks the
|
strips off mail headers and introductory text and then unpacks the
|
||||||
shar files.
|
shar files.
|
||||||
|
|
||||||
Install sharutils if you send binary files through e-mail.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
|
# convert TODO, THANKS to UTF-8
|
||||||
|
for i in TODO THANKS; do
|
||||||
|
iconv -f iso-8859-1 -t utf-8 -o $i{.utf8,}
|
||||||
|
mv $i{.utf8,}
|
||||||
|
done
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
%configure
|
||||||
make
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf ${RPM_BUILD_ROOT}
|
rm -rf ${RPM_BUILD_ROOT}
|
||||||
|
make DESTDIR=${RPM_BUILD_ROOT} INSTALL='install -p' install
|
||||||
%makeinstall
|
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir
|
rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir
|
||||||
mkdir -p ${RPM_BUILD_ROOT}%{_docdir}-%{name}-%{version}
|
|
||||||
chmod 644 AUTHORS ChangeLog COPYING NEWS README THANKS TODO
|
chmod 644 AUTHORS ChangeLog COPYING NEWS README THANKS TODO
|
||||||
|
|
||||||
|
%check
|
||||||
|
make check
|
||||||
|
|
||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/sbin/install-info %{_infodir}/sharutils.info.gz %{_infodir}/dir ||:
|
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir ||:
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ $1 = 0 ]; then
|
if [ $1 = 0 ]; then
|
||||||
/sbin/install-info --delete %{_infodir}/sharutils.info.gz %{_infodir}/dir ||:
|
/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir ||:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf ${RPM_BUILD_ROOT}
|
rm -rf ${RPM_BUILD_ROOT}
|
||||||
|
|
||||||
%files -f %{name}.lang
|
%files -f %{name}.lang
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root,-)
|
||||||
%doc AUTHORS ChangeLog COPYING NEWS README THANKS TODO
|
%doc AUTHORS ChangeLog COPYING NEWS README THANKS TODO
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
%{_infodir}/*info*
|
%{_infodir}/*info*
|
||||||
%{_mandir}/*/*
|
%{_mandir}/man1/*
|
||||||
|
%{_mandir}/man5/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Sep 4 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 4.7-1
|
||||||
|
- update to 4.7
|
||||||
|
- fix license tag
|
||||||
|
- package cleanups
|
||||||
|
|
||||||
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 4.6.3-2
|
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 4.6.3-2
|
||||||
- Autorebuild for GCC 4.3
|
- Autorebuild for GCC 4.3
|
||||||
|
|
||||||
@ -158,7 +170,7 @@ rm -rf ${RPM_BUILD_ROOT}
|
|||||||
- rebuilt in the new build environment
|
- rebuilt in the new build environment
|
||||||
|
|
||||||
* Thu Jun 08 2000 Than Ngo <than@redhat.de>
|
* Thu Jun 08 2000 Than Ngo <than@redhat.de>
|
||||||
- add %defattr(-,root,root) (Bug# 11990)
|
- add %%defattr(-,root,root) (Bug# 11990)
|
||||||
- use rpm macros
|
- use rpm macros
|
||||||
|
|
||||||
* Sun May 21 2000 Ngo Than <than@redhat.de>
|
* Sun May 21 2000 Ngo Than <than@redhat.de>
|
||||||
|
Loading…
Reference in New Issue
Block a user