modernize spec file (Group tag, %clean, %defattr)

This commit is contained in:
Kamil Dudka 2017-08-01 10:32:07 +02:00
parent 9b9d0e1f8a
commit c7a0df2b5e

View File

@ -1,12 +1,9 @@
# this file is encoded in UTF-8 -*- coding: utf-8 -*-
Summary: Powerful interactive shell Summary: Powerful interactive shell
Name: zsh Name: zsh
Version: 5.3.1 Version: 5.3.1
Release: 11%{?dist} Release: 12%{?dist}
License: MIT License: MIT
URL: http://zsh.sourceforge.net/ URL: http://zsh.sourceforge.net/
Group: System Environment/Shells
Source0: https://www.zsh.org/pub/%{name}-%{version}.tar.xz Source0: https://www.zsh.org/pub/%{name}-%{version}.tar.xz
Source1: zlogin.rhs Source1: zlogin.rhs
Source2: zlogout.rhs Source2: zlogout.rhs
@ -46,7 +43,6 @@ mechanism, and more.
%package html %package html
Summary: Zsh shell manual in html format Summary: Zsh shell manual in html format
Group: System Environment/Shells
BuildArch: noarch BuildArch: noarch
%description html %description html
@ -93,8 +89,6 @@ make %{?_smp_mflags} all html
make check make check
%install %install
rm -rf $RPM_BUILD_ROOT
%makeinstall install.info \ %makeinstall install.info \
fndir=$RPM_BUILD_ROOT%{_datadir}/%{name}/%{version}/functions \ fndir=$RPM_BUILD_ROOT%{_datadir}/%{name}/%{version}/functions \
sitefndir=$RPM_BUILD_ROOT%{_datadir}/%{name}/site-functions \ sitefndir=$RPM_BUILD_ROOT%{_datadir}/%{name}/site-functions \
@ -102,7 +96,7 @@ rm -rf $RPM_BUILD_ROOT
sitescriptdir=$RPM_BUILD_ROOT%{_datadir}/%{name}/scripts \ sitescriptdir=$RPM_BUILD_ROOT%{_datadir}/%{name}/scripts \
runhelpdir=$RPM_BUILD_ROOT%{_datadir}/%{name}/%{version}/help runhelpdir=$RPM_BUILD_ROOT%{_datadir}/%{name}/%{version}/help
rm -f ${RPM_BUILD_ROOT}%{_bindir}/zsh-%{version} rm -f $RPM_BUILD_ROOT%{_bindir}/zsh-%{version}
rm -f $RPM_BUILD_ROOT%{_infodir}/dir rm -f $RPM_BUILD_ROOT%{_infodir}/dir
mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir} mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}
@ -126,9 +120,6 @@ sed -i "s!$RPM_BUILD_ROOT%{_datadir}/%{name}/%{version}/help!%{_datadir}/%{name}
$RPM_BUILD_ROOT%{_datadir}/zsh/%{version}/functions/{run-help,_run-help} $RPM_BUILD_ROOT%{_datadir}/zsh/%{version}/functions/{run-help,_run-help}
%clean
rm -rf $RPM_BUILD_ROOT
%post %post
if [ "$1" = 1 ]; then if [ "$1" = 1 ]; then
if [ ! -f %{_sysconfdir}/shells ] ; then if [ ! -f %{_sysconfdir}/shells ] ; then
@ -164,7 +155,6 @@ fi
%files %files
%defattr(-,root,root)
%doc README LICENCE Etc/BUGS Etc/CONTRIBUTORS Etc/FAQ FEATURES MACHINES %doc README LICENCE Etc/BUGS Etc/CONTRIBUTORS Etc/FAQ FEATURES MACHINES
%doc NEWS Etc/zsh-development-guide Etc/completion-style-guide %doc NEWS Etc/zsh-development-guide Etc/completion-style-guide
%attr(755,root,root) %{_bindir}/zsh %attr(755,root,root) %{_bindir}/zsh
@ -176,10 +166,12 @@ fi
%config(noreplace) %{_sysconfdir}/z* %config(noreplace) %{_sysconfdir}/z*
%files html %files html
%defattr(-,root,root)
%doc Doc/*.html %doc Doc/*.html
%changelog %changelog
* Tue Aug 01 2017 Kamil Dudka <kdudka@redhat.com> - 5.3.1-12
- modernize spec file (Group tag, %%clean, %%defattr)
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.3.1-11 * Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.3.1-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild