Spec file clean up

This commit is contained in:
Jakub Čajka 2014-06-03 11:55:42 +02:00
parent 3017af0452
commit 5d71b4474c

View File

@ -1,14 +1,13 @@
Name: powerpc-utils Name: powerpc-utils
Version: 1.2.20 Version: 1.2.20
Release: 1%{?dist} Release: 2%{?dist}
Summary: Utilities for PowerPC platforms Summary: Utilities for PowerPC platforms
Group: System Environment/Base Group: System Environment/Base
License: CPL License: CPL
URL: http://sourceforge.net/projects/%{name}/ URL: http://sourceforge.net/projects/%{name}/
Source0: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Source1: nvsetenv Source1: nvsetenv
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: zlib-devel doxygen automake librtas-devel libservicelog-devel >= 1.0.1-2 BuildRequires: zlib-devel doxygen automake librtas-devel libservicelog-devel >= 1.0.1-2
BuildRequires: librtas-devel >= 1.3.9 BuildRequires: librtas-devel >= 1.3.9
@ -45,11 +44,10 @@ make %{?_smp_mflags}
%install %install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT FILES= RCSCRIPTS= make install DESTDIR=$RPM_BUILD_ROOT FILES= RCSCRIPTS=
install -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_sbindir}/nvsetenv install -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_sbindir}/nvsetenv
#%define pkgdocdir %{_datadir}/doc/%{name}-%{version} #define pkgdocdir {_datadir}/doc/{name}-{version}
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}} %{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
# move doc files # move doc files
@ -63,11 +61,7 @@ rm -rf $RPM_BUILD_ROOT/etc/init.d/ibmvscsis.sh $RPM_BUILD_ROOT/usr/sbin/vscsisad
# nvsetenv is just a wrapper to nvram # nvsetenv is just a wrapper to nvram
ln -s nvram.8.gz $RPM_BUILD_ROOT/%{_mandir}/man8/nvsetenv.8.gz ln -s nvram.8.gz $RPM_BUILD_ROOT/%{_mandir}/man8/nvsetenv.8.gz
%clean
rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root)
%{_sbindir}/nvsetenv %{_sbindir}/nvsetenv
%{_sbindir}/nvram %{_sbindir}/nvram
%{_sbindir}/snap %{_sbindir}/snap
@ -125,11 +119,10 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man8/ls-vscsi.8* %{_mandir}/man8/ls-vscsi.8*
%doc README COPYRIGHT Changelog %doc README COPYRIGHT Changelog
%post
%preun
%changelog %changelog
* Tue Jun 03 2014 Jakub Čajka <jcajka@redhat.com> - 1.2.20-2
- Spec file clean up
* Mon Apr 14 2014 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 1.2.20 * Mon Apr 14 2014 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 1.2.20
- Update to latest upstream 1.2.20 - Update to latest upstream 1.2.20