Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:GA
spacewalk-usix.4854
spacewalk-usix.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File spacewalk-usix.spec of Package spacewalk-usix.4854
# # spec file for package spacewalk-usix # # Copyright (c) 2017 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %if 0%{?rhel} && 0%{?rhel} < 6 %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %endif %if 0%{?fedora} >= 23 %{!?python3_sitelib: %global python3_sitelib %(%{__python3} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} %global python3rhnroot %{python3_sitelib}/spacewalk %endif %global pythonrhnroot %{python_sitelib}/spacewalk Name: spacewalk-usix Version: 2.7.5.2 Release: 0 Summary: Spacewalk server and client nano six library License: GPL-2.0 Group: Applications/Internet Url: https://github.com/spacewalkproject/spacewalk Source0: spacewalk-usix-git-0.731bbdf.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?fedora} || 0%{?rhel} || 0%{?suse_version} >= 1210 BuildArch: noarch %endif Provides: spacewalk-backend-usix = %{version}-%{release} Obsoletes: spacewalk-backend-usix < 2.8 BuildRequires: python-devel %description Library for writing code that runs on Python 2 and 3 %if 0%{?fedora} >= 23 %package -n python3-%{name} Summary: Spacewalk client micro six library Group: Applications/Internet Provides: python3-spacewalk-backend-usix = %{version}-%{release} Obsoletes: python3-spacewalk-backend-usix < 2.8 BuildRequires: python3-devel %description -n python3-%{name} Library for writing code that runs on Python 2 and 3 %endif %prep %setup -q -n spacewalk-usix-git-0.731bbdf %build %define debug_package %{nil} %install rm -rf $RPM_BUILD_ROOT install -m 0755 -d $RPM_BUILD_ROOT%{pythonrhnroot}/common install -m 0644 __init__.py $RPM_BUILD_ROOT%{pythonrhnroot}/__init__.py install -m 0644 common/__init__.py $RPM_BUILD_ROOT%{pythonrhnroot}/common/__init__.py install -m 0644 common/usix.py* $RPM_BUILD_ROOT%{pythonrhnroot}/common/usix.py %if 0%{?fedora} && 0%{?fedora} >= 23 install -d $RPM_BUILD_ROOT%{python3rhnroot}/common cp $RPM_BUILD_ROOT%{pythonrhnroot}/__init__.py $RPM_BUILD_ROOT%{python3rhnroot} cp $RPM_BUILD_ROOT%{pythonrhnroot}/common/__init__.py $RPM_BUILD_ROOT%{python3rhnroot}/common cp $RPM_BUILD_ROOT%{pythonrhnroot}/common/usix.py $RPM_BUILD_ROOT%{python3rhnroot}/common %endif %clean rm -rf $RPM_BUILD_ROOT %check %if 0%{?fedora} && 0%{?fedora} >= 23 rm -r -f $RPM_BUILD_ROOT%{python3rhnroot}/__pycache__ rm -r -f $RPM_BUILD_ROOT%{python3rhnroot}/common/__pycache__ %endif %files %defattr(-,root,root) %dir %{pythonrhnroot} %dir %{pythonrhnroot}/common %{pythonrhnroot}/__init__.py %{pythonrhnroot}/common/__init__.py %{pythonrhnroot}/common/usix.py* %if 0%{?fedora} || 0%{?rhel} || 0%{?suse_version} >= 1200 %exclude %{pythonrhnroot}/__init__.pyc %exclude %{pythonrhnroot}/__init__.pyo %exclude %{pythonrhnroot}/common/__init__.pyc %exclude %{pythonrhnroot}/common/__init__.pyo %endif %if 0%{?fedora} && 0%{?fedora} >= 23 %files -n python3-%{name} %dir %{python3rhnroot} %dir %{python3rhnroot}/common %{python3rhnroot}/__init__.py %{python3rhnroot}/common/__init__.py %{python3rhnroot}/common/usix.py* %exclude %{python3rhnroot}/__init__.pyc %exclude %{python3rhnroot}/__init__.pyo %exclude %{python3rhnroot}/common/__init__.pyc %exclude %{python3rhnroot}/common/__init__.pyo %endif %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor