1. Guido Draheim
  2. trac-dvbcronrecording-plugin


Guido Draheim  committed be448b0

nonsuse-build spec

  • Participants
  • Parent commits 5e72cf9
  • Branches default

Comments (0)

Files changed (1)

File src/trac-dvbcronrecording-plugin.spec

View file
 %define _version 0.4.15
 %define _name DvbCronRecording
 %define _pkg dvbcronrecording
-%{?!revision: %define revision 0 }
+%{!?revision: %define revision 0 }
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysc
+onfig import get_python_lib; print get_python_lib()")}
+%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sy
+sconfig import get_python_lib; print get_python_lib(1)")}
+%{!?py_requires: %define py_requires Requires: python >= %(%{__python} -c "from 
+distutils.sysconfig import get_python_version; print get_python_version()")}
 Name:           trac-dvbcronrecording-plugin
 Version:        %_version.%revision
 Provides:       %name = %_version
 Obsoletes:      trac-simplerecorder-plugin
 Provides:       trac-simplerecorder-plugin = %version
-%if 0%{?suse_version} > 1110
-BuildArch:      noarch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  unzip
 BuildRequires:  python-devel
-BuildRequires:  python-setuptools >= 0.6c8
+BuildRequires:  python-setuptools >= 0.6
 Requires:       python-setuptools
 Requires:       trac >= 0.11
 Summary:        Recording plugin for Trac
+%if %{?suse_version: 0%{?suse_version} > 1110} %{!?suse_version: 1}
+BuildArch:      noarch
 Creates a database to manage a list of recordings.
 The actual recording is performed by a tuning the
 %{__python} setup.py build
-%{__python} setup.py install --root=%{buildroot} --prefix=%{_prefix} --record-rpm=INSTALLED_FILES
+%{__python} setup.py install --root=%{buildroot} --prefix=%{_prefix} \
+ %{!?suse_version: --record=INSTALLED_FILES} %{?suse_version: --record-rpm=INSTALLED_FILES}
 test "%{buildroot}" != "/" && %__rm -rf %{buildroot}