[spec2scl/el5] Alter specfile for epel5
Bohuslav Kabrda
bkabrda at fedoraproject.org
Mon Jan 7 14:06:15 UTC 2013
commit a0126d322da6c9617cd799124aecab725bbff667
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date: Mon Jan 7 15:06:07 2013 +0100
Alter specfile for epel5
spec2scl.spec | 27 +++++++++++++--------------
1 files changed, 13 insertions(+), 14 deletions(-)
---
diff --git a/spec2scl.spec b/spec2scl.spec
index 0c4eeb1..9d76d54 100644
--- a/spec2scl.spec
+++ b/spec2scl.spec
@@ -1,5 +1,9 @@
# Created by pyp2rpm-0.5.1
%global pypi_name spec2scl
+%global __python %{_bindir}/python2.6
+%global __os_install_post %{__python26_os_install_post}
+
+%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: %{pypi_name}
Version: 0.3.4
@@ -7,20 +11,18 @@ Release: 1%{?dist}
Summary: Convert RPM specfiles to be SCL ready
License: MIT
+Group: Development/Languages
URL: https://bitbucket.org/bkabrda/spec2scl/
Source0: http://pypi.python.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
Patch0: spec2scl-remove-setup-requires-on-el-6.patch
BuildArch: noarch
+BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires: python-devel
-BuildRequires: python-setuptools
-%if 0%{?fedora}
-BuildRequires: python-flexmock
-BuildRequires: pytest
-%endif
+BuildRequires: python26-devel
+BuildRequires: python26-distribute
-Requires: python-argparse
-Requires: python-setuptools
+Requires: python26-argparse
+Requires: python26-distribute
%description
spec2scl is a tool to convert RPM specfiles to SCL-style specfiles.
@@ -38,14 +40,11 @@ rm -rf %{pypi_name}.egg-info
%install
%{__python} setup.py install --skip-build --root %{buildroot}
-%check
-%if 0%{?fedora}
-# remove erroneously packaged pycache
-rm -rf tests/__pycache__
-PYTHONPATH=$(pwd) py.test
-%endif
+%clean
+rm -rf %{buildroot}
%files
+%defattr(-, root, root, -)
%doc README.rst LICENSE
%{_bindir}/%{pypi_name}
%{python_sitelib}/%{pypi_name}
More information about the scm-commits
mailing list