Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
isv:SUSEInfra:Tools
python-virtualbmc
python-virtualbmc.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-virtualbmc.spec of Package python-virtualbmc
# # spec file for package python-virtualbmc # # Copyright (c) 2023 SUSE LLC # # 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 appname virtualbmc %if 0%{?suse_version} > 1500 %define pythons python310 python311 %endif Name: python-%{appname} Version: 3.0.1 Release: 0 Summary: Virtual BMC server for controlling VMs via IPMI License: Apache-2.0 Group: Development/Languages/Python URL: https://docs.openstack.org/virtualbmc Source0: %{appname}-%{version}.tar.gz Source1: virtualbmc.service BuildRequires: %{python_module pbr} BuildRequires: %{pythons} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: systemd-rpm-macros Requires: python3-cliff Requires: python3-libvirt-python Requires: python3-pbr Requires: python3-pyghmi Requires: python3-pyzmq Requires(post): update-alternatives Requires(postun): update-alternatives Recommends: %{appname}-systemd BuildArch: noarch %python_subpackages %description A virtual BMC for controlling virtual machines using IPMI commands. %package -n %{appname}-systemd Summary: Systemd service for VirtualBMC Requires: %{name} %description -n %{appname}-systemd Systemd unit for running VirtualBMC as a service. %prep %autosetup -p1 -n %{appname}-%{version} %build export PBR_VERSION=%{version} %python_build %install export PBR_VERSION=%{version} %python_install %python_clone -a %{buildroot}%{_bindir}/vbmc %python_clone -a %{buildroot}%{_bindir}/vbmcd %python_expand %fdupes %{buildroot}%{$python_sitelib} # directories install -d -m 755 %{buildroot}%{_datadir}/%{appname} %{buildroot}%{_sharedstatedir}/%{appname} %{buildroot}%{_sbindir} install -d -m 750 %{buildroot}%{_localstatedir}/lib/%{appname} # systemd install -p -D -m 444 %{SOURCE1} %{buildroot}%{_unitdir}/%{appname}.service ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{appname} %pre -n %{appname}-systemd %service_add_pre virtualbmc.service %post %python_install_alternative vbmc %python_install_alternative vbmcd %post -n %{appname}-systemd %service_add_post virtualbmc.service %preun -n %{appname}-systemd %service_del_preun virtualbmc.service %postun %python_uninstall_alternative vbmc %python_uninstall_alternative vbmcd %postun -n %{appname}-systemd %service_del_postun virtualbmc.service %files %{python_files} %license LICENSE %python_alternative %{_bindir}/vbmc %python_alternative %{_bindir}/vbmcd %dir %{python_sitelib}/%{appname}{,/cmd,/tests{,/unit/{,cmd/}}} %{python_sitelib}/%{appname}/{,cmd/,tests/{,unit/{,cmd/}}}*.py %pycache_only %{python_sitelib}/%{appname}/{,cmd/,tests/{,unit/{,cmd/}}}__pycache__ %{python_sitelib}/%{appname}-%{version}-py%{python_version}.egg-info %files -n %{appname}-systemd %{_unitdir}/%{appname}.service %{_sbindir}/rc%{appname} %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