From c7a0df2b5e69efea245635f4f401cb2d18ec1c2a Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Tue, 1 Aug 2017 10:32:07 +0200 Subject: [PATCH] modernize spec file (Group tag, %clean, %defattr) --- zsh.spec | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/zsh.spec b/zsh.spec index 589bece..addac52 100644 --- a/zsh.spec +++ b/zsh.spec @@ -1,12 +1,9 @@ -# this file is encoded in UTF-8 -*- coding: utf-8 -*- - Summary: Powerful interactive shell Name: zsh Version: 5.3.1 -Release: 11%{?dist} +Release: 12%{?dist} License: MIT URL: http://zsh.sourceforge.net/ -Group: System Environment/Shells Source0: https://www.zsh.org/pub/%{name}-%{version}.tar.xz Source1: zlogin.rhs Source2: zlogout.rhs @@ -46,7 +43,6 @@ mechanism, and more. %package html Summary: Zsh shell manual in html format -Group: System Environment/Shells BuildArch: noarch %description html @@ -93,8 +89,6 @@ make %{?_smp_mflags} all html make check %install -rm -rf $RPM_BUILD_ROOT - %makeinstall install.info \ fndir=$RPM_BUILD_ROOT%{_datadir}/%{name}/%{version}/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 \ 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 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} -%clean -rm -rf $RPM_BUILD_ROOT - %post if [ "$1" = 1 ]; then if [ ! -f %{_sysconfdir}/shells ] ; then @@ -164,7 +155,6 @@ fi %files -%defattr(-,root,root) %doc README LICENCE Etc/BUGS Etc/CONTRIBUTORS Etc/FAQ FEATURES MACHINES %doc NEWS Etc/zsh-development-guide Etc/completion-style-guide %attr(755,root,root) %{_bindir}/zsh @@ -176,10 +166,12 @@ fi %config(noreplace) %{_sysconfdir}/z* %files html -%defattr(-,root,root) %doc Doc/*.html %changelog +* Tue Aug 01 2017 Kamil Dudka - 5.3.1-12 +- modernize spec file (Group tag, %%clean, %%defattr) + * Thu Jul 27 2017 Fedora Release Engineering - 5.3.1-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild