Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
systemsmanagement:spacewalk
spacewalk-koan
spacewalk-koan.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File spacewalk-koan.spec of Package spacewalk-koan
# # spec file for package spacewalk-koan # # Copyright (c) 2019 SUSE LINUX 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%{?fedora} || 0%{?suse_version} > 1320 || 0%{?rhel} >= 8 || 0%{?mageia} %global build_py3 1 %global default_py3 1 %endif %if ( 0%{?fedora} && 0%{?fedora} < 28 ) || ( 0%{?rhel} && 0%{?rhel} < 8 ) || ( 0%{?suse_version} && 0%{?suse_version} < 1320 ) %global build_py2 1 %endif %define pythonX %{?default_py3: python3}%{!?default_py3: python2} Summary: Support package for spacewalk koan interaction License: GPL-2.0-only Name: spacewalk-koan Version: 2.10.0 Release: 1.git.272.e0506f8%{?dist} Source0: spacewalk-koan-git-272.efdd721.tar.gz URL: https://github.com/spacewalkproject/spacewalk BuildArch: noarch Requires: %{pythonX}-%{name} = %{version}-%{release} Requires: koan20 Requires: xz Conflicts: rhn-kickstart Conflicts: rhn-kickstart-common Conflicts: rhn-kickstart-virtualization Requires: rhn-check %description Support package for spacewalk koan interaction. %if 0%{?build_py2} %package -n python2-%{name} Summary: Support package for spacewalk koan interaction %{?python_provide:%python_provide python2-%{name}} BuildRequires: python2 Requires: python2 %if 0%{?suse_version} # provide directories for filelist check in OBS BuildRequires: rhn-client-tools %endif %description -n python2-%{name} Python 2 specific files for %{name}. %endif %if 0%{?build_py3} %package -n python3-%{name} Summary: Support package for spacewalk koan interaction %{?python_provide:%python_provide python3-%{name}} BuildRequires: python3 BuildRequires: python3-rpm-macros Requires: python3 %description -n python3-%{name} Python 3 specific files for %{name}. %endif %prep %setup -q -n spacewalk-koan-git-272.efdd721 %build make -f Makefile.spacewalk-koan all %install %if 0%{?build_py2} make -f Makefile.spacewalk-koan install PREFIX=$RPM_BUILD_ROOT ROOT=%{python_sitelib} \ MANDIR=%{_mandir} %endif %if 0%{?build_py3} make -f Makefile.spacewalk-koan install PREFIX=$RPM_BUILD_ROOT ROOT=%{python3_sitelib} \ MANDIR=%{_mandir} %endif %if 0%{?suse_version} && 0%{?build_py2} %py_compile -O %{buildroot}/%{python_sitelib} %endif %if 0%{?suse_version} && 0%{?build_py3} %py3_compile -O %{buildroot}/%{python3_sitelib} %endif %clean %files %config(noreplace) %{_sysconfdir}/sysconfig/rhn/clientCaps.d/kickstart %{_sbindir}/* %if 0%{?build_py2} %files -n python2-%{name} %{python_sitelib}/spacewalkkoan/ %{python_sitelib}/rhn/actions/ %if 0%{?suse_version} %dir %{python_sitelib}/rhn %dir /etc/sysconfig/rhn %dir /etc/sysconfig/rhn/clientCaps.d %endif %endif %if 0%{?build_py3} %files -n python3-%{name} %{python3_sitelib}/spacewalkkoan/ %{python3_sitelib}/rhn/actions/ %if 0%{?suse_version} %dir %{python3_sitelib}/rhn %dir /etc/sysconfig/rhn %dir /etc/sysconfig/rhn/clientCaps.d %endif %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