modernize spec file (Group tag, %clean, %defattr)
This commit is contained in:
parent
9b9d0e1f8a
commit
c7a0df2b5e
18
zsh.spec
18
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 <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
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user