[hexedit] Modernize the spec file.
Richard W.M. Jones
rjones at fedoraproject.org
Fri Apr 5 16:33:27 UTC 2013
commit 6d27a5808c72baf165762c3b205a172e07e0049d
Author: Richard W.M. Jones <rjones at redhat.com>
Date: Fri Apr 5 17:32:57 2013 +0100
Modernize the spec file.
hexedit.spec | 17 +++++++----------
1 files changed, 7 insertions(+), 10 deletions(-)
---
diff --git a/hexedit.spec b/hexedit.spec
index fcef672..91d1ba1 100644
--- a/hexedit.spec
+++ b/hexedit.spec
@@ -3,7 +3,7 @@ Name: hexedit
Version: 1.2.13
Release: 3%{?dist}
License: GPLv2+
-Group: Applications/Editors
+
URL: http://rigaux.org/hexedit.html
Source: http://rigaux.org/%{name}-%{version}.src.tgz
@@ -12,7 +12,6 @@ Patch1: hexedit-1.2.13-config.patch
Patch2: hexedit-man-page-color.patch
BuildRequires: ncurses-devel
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
Hexedit shows a file both in ASCII and in hexadecimal. The file can be a device
@@ -30,22 +29,20 @@ and search through it.
make %{_smp_mflags}
%install
-rm -rf $RPM_BUILD_ROOT
-
-make install mandir=$RPM_BUILD_ROOT%{_mandir} bindir=$RPM_BUILD_ROOT%{_bindir} INSTALL='install -p'
-
-%clean
-rm -rf $RPM_BUILD_ROOT
+make install \
+ mandir=$RPM_BUILD_ROOT%{_mandir} \
+ bindir=$RPM_BUILD_ROOT%{_bindir} \
+ INSTALL='install -p'
%files
-%defattr(-,root,root)
%doc hexedit-%{version}.lsm COPYING Changes
%{_bindir}/hexedit
-%{_mandir}/*/*
+%{_mandir}/man1/hexedit.1*
%changelog
* Fri Apr 05 2013 Richard W.M. Jones <rjones at redhat.com> - 1.2.13-3
- Add patch to document --color option.
+- Modernize the spec file.
* Tue Mar 26 2013 Ville Skyttä <ville.skytta at iki.fi> - 1.2.13-2
- Bring back config patch to fix -debuginfo, it hasn't been upstreamed yet.
More information about the scm-commits
mailing list