From ab860da2b6cd8d0e5ecb91b85b6e3c56b590154659e0caa0eb591f7651c18de2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sun, 12 Oct 2014 09:27:33 +0000 Subject: [PATCH] - Make us build again for Fedora OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/spec-cleaner?expand=0&rev=37 --- spec-cleaner.changes | 5 +++++ spec-cleaner.spec | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/spec-cleaner.changes b/spec-cleaner.changes index b571891..f9b4830 100644 --- a/spec-cleaner.changes +++ b/spec-cleaner.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Oct 12 09:27:16 UTC 2014 - tchvatal@suse.com + +- Make us build again for Fedora + ------------------------------------------------------------------- Mon Sep 22 13:21:47 UTC 2014 - tchvatal@suse.com diff --git a/spec-cleaner.spec b/spec-cleaner.spec index 8550284..b9432b7 100644 --- a/spec-cleaner.spec +++ b/spec-cleaner.spec @@ -17,6 +17,8 @@ # +# This is used for Fedora, we need to sync this +%{!?py3_ver: %define py3_ver %{python3_version}} Name: spec-cleaner Version: 0.6.2 Release: 0 @@ -25,6 +27,7 @@ License: BSD-3-Clause Group: Development/Tools/Other Url: http://github.com/openSUSE/spec-cleaner Source0: https://github.com/openSUSE/%{name}/archive/%{name}-%{version}.tar.gz +BuildRequires: python3-devel BuildRequires: python3-mock BuildRequires: python3-nose BuildRequires: python3-setuptools @@ -41,6 +44,11 @@ will never be perfect. %prep %setup -q -n %{name}-%{name}-%{version} +# set libexec properly so it works on Fedora too +sed -i \ + -e 's:/usr/lib/obs/:%{_libexecdir}/obs/:g' \ + setup.py + %build python3 setup.py build