Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
systemsmanagement:Uyuni:Snapshots:2024.03
yum-rhn-plugin
yum-rhn-plugin.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File yum-rhn-plugin.spec of Package yum-rhn-plugin
# # spec file for package yum-rhn-plugin # # Copyright (c) 2022 SUSE LLC # Copyright (c) 2008-2018 Red Hat, Inc. # # 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 https://bugs.opensuse.org/ # %define __python /usr/bin/python2 # package renaming fun :( %define rhn_client_tools spacewalk-client-tools %define rhn_setup spacewalk-client-setup %define rhn_check spacewalk-check %define rhnsd mgr-daemon # Summary: Spacewalk support for yum License: GPL-2.0-only Group: System Environment/Base Name: yum-rhn-plugin Version: 4.4.3 Release: 1 Source0: yum-rhn-plugin-git-0.e38ce1b.tar.gz URL: https://github.com/uyuni-project/uyuni BuildRoot: %{_tmppath}/%{name}-%{version}-build %if %{?suse_version: %{?suse_version} > 1110} %{!?suse_version:1} BuildArch: noarch %endif %if 0%{?fedora} >= 28 || 0%{?rhel} >= 8 BuildRequires: python2 %else BuildRequires: python %endif BuildRequires: gettext BuildRequires: intltool Requires: %{rhn_client_tools} >= 2.8.4 Requires: yum >= 3.2.19-15 %if 0%{?suse_version} Requires: python-m2crypto >= 0.16-6 %else Requires: m2crypto >= 0.16-6 %endif %if 0%{?fedora} >= 28 || 0%{?rhel} >= 8 Requires: python2-iniparse %else Requires: python-iniparse %endif # Not really, but for upgrades we need these Requires: %{rhn_setup} >= 2.8.4 Obsoletes: up2date < 5.0.0 Provides: up2date = 5.0.0 %description This yum plugin provides support for yum to access a Spacewalk server for software updates. %prep %setup -q -n yum-rhn-plugin-git-0.e38ce1b %build make -f Makefile.yum-rhn-plugin %install make -f Makefile.yum-rhn-plugin install VERSION=%{version}-%{release} PREFIX=$RPM_BUILD_ROOT MANPATH=%{_mandir} PYTHONPATH=%{python_sitelib} # remove all unsupported translations cd $RPM_BUILD_ROOT for d in usr/share/locale/*; do if [ ! -d "/$d" ]; then rm -rfv "./$d" fi done cd - %find_lang %{name} %pre # 682820 - re-enable yum-rhn-plugin after package upgrade if the system is already registered export pluginconf='/etc/yum/pluginconf.d/rhnplugin.conf' if [ $1 -gt 1 ] && [ -f /etc/sysconfig/rhn/systemid ] && [ -f "$pluginconf" ]; then if grep -q '^[[:space:]]*enabled[[:space:]]*=[[:space:]]*1[[:space:]]*$' \ "$pluginconf"; then echo "1" > /etc/enable-yum-rhn-plugin fi fi %post # 682820 - re-enable yum-rhn-plugin after package upgrade if the system is already registered export pluginconf='/etc/yum/pluginconf.d/rhnplugin.conf' if [ $1 -gt 1 ] && [ -f "$pluginconf" ] && [ -f "/etc/enable-yum-rhn-plugin" ]; then sed -i '/\[main]/,/^$/{/enabled/s/0/1/}' "$pluginconf" rm -f /etc/enable-yum-rhn-plugin fi %files -f %{name}.lang %defattr(-,root,root,-) %config(noreplace) %{_sysconfdir}/yum/pluginconf.d/rhnplugin.conf %dir /var/lib/up2date %{_mandir}/man*/* %{_datadir}/yum-plugins/* %{python_sitelib}/rhn/actions/* %{!?_licensedir:%global license %doc} %license LICENSE %dir /etc/yum %dir /etc/yum/pluginconf.d %dir /usr/share/yum-plugins %dir %{python_sitelib}/rhn %dir %{python_sitelib}/rhn/actions %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