[hntool] Fix packaging issues
Filipe Rosset
filiperosset at fedoraproject.org
Mon Feb 24 23:33:40 UTC 2014
commit 43a81882b224b2f01645345a2733463b48eece9b
Author: Filipe Rosset <rosset.filipe at gmail.com>
Date: Mon Feb 24 20:34:24 2014 -0300
Fix packaging issues
- Fix rhbz #992482
- Notified upstream about incorrect-fsf-address
hntool.spec | 22 ++++++++++++++--------
1 files changed, 14 insertions(+), 8 deletions(-)
---
diff --git a/hntool.spec b/hntool.spec
index 95d21af..02d4459 100644
--- a/hntool.spec
+++ b/hntool.spec
@@ -1,8 +1,6 @@
-%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
-
Name: hntool
Version: 0.1.2
-Release: 7%{?dist}
+Release: 8%{?dist}
Summary: Open source hardening tool for Unix
Group: Applications/System
@@ -12,7 +10,7 @@ Source0: http://hntool.googlecode.com/files/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
-BuildRequires: python-setuptools python-devel
+BuildRequires: python-setuptools python2-devel
%description
HnTool is an open source (GPLv2) hardening tool for Unix. It scans your system
@@ -24,24 +22,32 @@ for vulnerabilities or problems in configuration files.
#fix shebang on rpmlint
sed -i -e '1d' HnTool/core.py
+#fix the path to documentation
+sed -i 's/hntool-%s/hntool/' setup.py
+sed -i 's/ % __version__,/,/' setup.py
+
%build
-%{__python} setup.py build
+%{__python2} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install -O1 --skip-build --prefix /usr/ --root $RPM_BUILD_ROOT
+%{__python2} setup.py install -O1 --skip-build --prefix /usr/ --root $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
-%defattr(-,root,root,-)
%doc AUTHORS LICENSE NEWS README TODO
-%{python_sitelib}/*
+%{python2_sitelib}/*
%{_bindir}/hntool
%{_mandir}/man1/hntool*
%changelog
+* Sun Feb 23 2014 Filipe Rosset <rosset.filipe at gmail.com> - 0.1.2-8
+- Fix packaging issues
+- Fix rhbz #992482
+- Notified upstream about incorrect-fsf-address
+
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.1.2-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
More information about the scm-commits
mailing list