otopi/otopi.spec

124 lines
3.0 KiB
RPMSpec
Raw Permalink Normal View History

2021-07-05 19:25:14 +08:00
#
# otopi -- plugable installer
#
2022-04-24 10:04:53 +08:00
%global package_version 1.10.0
2021-07-05 19:25:14 +08:00
Summary: oVirt Task Oriented Pluggable Installer/Implementation (%{name})
Name: otopi
2022-04-24 10:04:53 +08:00
Version: 1.10.0
Release: 1
2021-07-05 19:25:14 +08:00
License: LGPLv2+
URL: http://www.ovirt.org
Source0: http://resources.ovirt.org/pub/src/%{name}/%{name}-%{package_version}.tar.gz
Group: Development/Libraries
BuildArch: noarch
BuildRequires: gettext >= 0.18.2
BuildRequires: python%{python3_pkgversion}-devel
2022-04-24 10:04:53 +08:00
BuildRequires: gcc
2021-07-05 19:25:14 +08:00
%description
Standalone plugin based installation framework to be used to setup
system components. The plugin nature provides simplicity to
add new installation functionality without the complexity of the state
and transaction management.
%package -n python%{python3_pkgversion}-%{name}
Summary: %{summary}
%{?python_provide:%python_provide python%{python3_pkgversion}-%{name}}
Requires: python%{python3_pkgversion} >= 3.6.0
Requires: python%{python3_pkgversion}-dateutil
2022-04-24 10:04:53 +08:00
Requires: python%{python3_pkgversion}-distro
2021-07-05 19:25:14 +08:00
Requires: %{name}-common = %{version}-%{release}
2022-04-24 10:04:53 +08:00
Provides: %{name} = %{version}-%{release}
Obsoletes: python%{python3_pkgversion}-%{name}-devtools
2021-07-05 19:25:14 +08:00
%description -n python%{python3_pkgversion}-%{name}
%{summary}.
Python %{python3_pkgversion} version.
%package common
2022-04-24 10:04:53 +08:00
Summary: Common files for %{name}
Obsoletes: %{name}-java
2021-07-05 19:25:14 +08:00
%description common
%{summary}
%package debug-plugins
Summary: %{name} debug plugins
Requires: %{name} = %{version}-%{release}
%description debug-plugins
Debug plugins for %{name}.
%prep
%setup -q -n %{name}-%{package_version}
%build
%configure PYTHON="%{__python3}" \
--docdir="%{_docdir}/%{name}-%{version}" \
--disable-python-syntax-check \
--with-local-version="%{name}-%{version}-%{release}" \
%{?conf}
make %{?_smp_mflags}
%install
2022-04-24 10:04:53 +08:00
make %{?_smp_mflags} install DESTDIR="%{buildroot}"
2021-07-05 19:25:14 +08:00
install -d -m 755 "%{buildroot}%{_sysconfdir}/%{name}.conf.d"
%find_lang %{name}
%files -n python%{python3_pkgversion}-%{name}
%doc AUTHORS
%license COPYING
%license LICENSE
2022-04-24 10:04:53 +08:00
%doc README.md
2021-07-05 19:25:14 +08:00
%doc README.API
%doc README.config-query
%doc README.debug-plugins
%doc README.dialog
%doc README.environment
%{python3_sitelib}/%{name}/
%files common -f %{name}.lang
2022-04-24 10:04:53 +08:00
%doc AUTHORS
%license COPYING
%license LICENSE
2021-07-05 19:25:14 +08:00
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/plugins
%dir %{_sysconfdir}/%{name}.conf.d
%{_sbindir}/%{name}
%{_bindir}/%{name}-config-query
%{_datadir}/%{name}/scripts/
%{_datadir}/%{name}/plugins/%{name}/
%{_datadir}/%{name}/%{name}-bundle
%{_datadir}/%{name}/%{name}-functions
%exclude %{_datadir}/%{name}/plugins/%{name}/debug/
%files debug-plugins
%{_datadir}/%{name}/plugins/%{name}/debug/
2022-04-24 10:04:53 +08:00
%license COPYING
%license LICENSE
%doc AUTHORS
%doc README.debug-plugins
2021-07-05 19:25:14 +08:00
%changelog
2022-04-24 10:04:53 +08:00
* Sun Apr 24 2022 wangdi <wangdi@kylinos.cn> - 1.10.0-1
- Bump package version to 1.10.0, to support python version 3.8 or higher
2021-09-04 17:06:53 +08:00
* Sat Sep 04 2021 huanghaitao <huanghaitao8@huawei.com> - 1.9.4-2
- Fix otopi package missing error,provides by python3-otopi
2021-07-05 19:25:14 +08:00
* Mon Jul 05 2021 lijunwei <lijunwei@kylinos.cn> - 1.9.4-1
- Init package
2022-04-24 10:04:53 +08:00