Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
systemsmanagement:spacewalk
rhn-custom-info
rhn-custom-info.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File rhn-custom-info.spec of Package rhn-custom-info
# # spec file for package rhn-custom-info # # 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%{?rhel} >= 8 %global build_py3 1 %endif Name: rhn-custom-info Summary: Set and list custom values for RHN-enabled machines License: GPL-2.0-only Version: 5.4.44 Release: 1.git.0.e0506f8%{?dist} Source0: rhn-custom-info-git-0.9bf6715.tar.gz URL: https://github.com/spacewalkproject/spacewalk BuildArch: noarch %if 0%{?build_py3} BuildRequires: python3-devel Requires: python3-rhnlib %else BuildRequires: python-devel Requires: rhnlib %endif %if 0%{?fedora} || 0%{?rhel} >= 8 Requires: dnf-plugin-spacewalk %else %if 0%{?suse_version} Requires: zypp-plugin-spacewalk # provide rhn directories for filelist check BuildRequires: rhn-client-tools %else Requires: yum-rhn-plugin %endif %endif %description Allows for the setting and listing of custom key/value pairs for an RHN-enabled system. %prep %setup -q -n rhn-custom-info-git-0.9bf6715 %build make -f Makefile.rhn-custom-info all %if 0%{?build_py3} sed -i 's|#!/usr/bin/python|#!/usr/bin/python3|' *.py %endif %install install -d $RPM_BUILD_ROOT %global pypath %{?build_py3:%{python3_sitelib}}%{!?build_py3:%{python_sitelib}} make -f Makefile.rhn-custom-info install PREFIX=$RPM_BUILD_ROOT ROOT=%{pypath} install -d $RPM_BUILD_ROOT%{_mandir}/man8/ install -m 644 rhn-custom-info.8 $RPM_BUILD_ROOT%{_mandir}/man8/ %clean %files %{_bindir}/rhn-custom-info %{pypath}/custominfo/ %doc LICENSE %{_mandir}/man8/rhn-custom-info.* %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