python-blivet/python-blivet.spec

179 lines
5.3 KiB
RPMSpec
Raw Normal View History

2020-03-14 15:46:11 +08:00
%bcond_with enable_python2
%bcond_without python3
2020-03-14 15:46:11 +08:00
2020-01-13 11:21:25 +08:00
Name: python-blivet
2021-02-03 16:30:56 +08:00
Version: 3.3.2
Release: 1
2019-12-30 14:56:27 +08:00
Epoch: 1
2020-01-13 11:21:25 +08:00
Summary: A python module for system storage configuration
License: LGPLv2+
URL: https://storageapis.wordpress.com/projects/blivet
2020-06-22 22:40:29 +08:00
Source0: http://github.com/storaged-project/blivet/releases/download/blivet-%{version}/blivet-%{version}.tar.gz
2019-12-30 14:56:27 +08:00
BuildArch: noarch
2020-01-13 11:21:25 +08:00
BuildRequires: systemd gettext python3-devel python3-setuptools
2019-12-30 14:56:27 +08:00
2020-03-14 15:46:11 +08:00
%if %{with enable_python2}
2019-12-30 14:56:27 +08:00
BuildRequires: python2-devel python2-setuptools
%endif
Patch0: 0001-force-lvm-plugin.patch
2021-02-03 16:30:56 +08:00
Patch1: fix-the-long-hostname.patch
2019-12-30 14:56:27 +08:00
2019-12-30 14:56:27 +08:00
%description
The python-blivet package is a python module for examining and modifying
storage configuration.
%package -n blivet-data
Summary: Data packages for python-blivet
Conflicts: python-blivet < 1:2.0.0 python3-blivet < 1:2.0.0
2020-03-21 23:47:46 +08:00
Obsoletes: python2-blivet
2019-12-30 14:56:27 +08:00
%description -n blivet-data
Data packages for python-blivet.
%package -n python3-blivet
Summary: python3 package for blivet
Requires: python3 python3-six python3-pyudev >= 0.18 python3-pyparted >= 3.10.4
Requires: libselinux-python3 python3-blockdev >= 2.19 parted >= 1.8.1
Requires: python3-bytesize >= 0.3 util-linux >= 2.15.1 lsof python3-gobject-base
Requires: systemd-udev blivet-data = %{epoch}:%{version}-%{release}
Recommends: libblockdev-btrfs >= 2.19 libblockdev-crypto >= 2.19 libblockdev-dm >= 2.19
Recommends: libblockdev-fs >= 2.19 libblockdev-kbd >= 2.19 libblockdev-loop >= 2.19
Recommends: libblockdev-lvm >= 2.19 libblockdev-mdraid >= 2.19 libblockdev-mpath >= 2.19
Recommends: libblockdev-nvdimm >= 2.19 libblockdev-part >= 2.19 libblockdev-swap >= 2.19
Recommends: libblockdev-s390 >= 2.19
%{?python_provide:%python_provide python3-blivet}
Obsoletes: blivet-data < 1:2.0.0
2020-03-14 15:46:11 +08:00
%if %{without enable_python2}
2019-12-30 14:56:27 +08:00
Obsoletes: python2-blivet < 1:2.0.2-2 python-blivet < 1:2.0.2-2
%else
Obsoletes: python-blivet < 1:2.0.0
%endif
%description -n python3-blivet
python3 package for blivet
2020-03-14 15:46:11 +08:00
%if %{with enable_python2}
2019-12-30 14:56:27 +08:00
%package -n python2-blivet
Summary: python2 package for blivet
Requires: python2 python2-six python2-pyudev >= 0.18 python2-pyparted >= 3.10.4
Requires: python2-libselinux python2-blockdev >= 2.19 parted >= 1.8.1
Requires: python2-bytesize >= 0.3 util-linux >= 2.15.1 lsof python2-gobject-base
Requires: systemd-udev blivet-data = %{epoch}:%{version}-%{release} python2-hawkey
Recommends: libblockdev-btrfs >= 2.19 libblockdev-crypto >= 2.19 libblockdev-dm >= 2.19
Recommends: libblockdev-fs >= 2.19 libblockdev-kbd >= 2.19 libblockdev-loop >= 2.19
Recommends: libblockdev-lvm >= 2.19 libblockdev-mdraid >= 2.19 libblockdev-mpath >= 2.19
Recommends: libblockdev-nvdimm >= 2.19 libblockdev-part >= 2.19 libblockdev-swap >= 2.19
Recommends: libblockdev-s390 >= 2.19
%{?python_provide:%python_provide python2-blivet}
Obsoletes: blivet-data < 1:2.0.0 python-blivet < 1:2.0.0
%description -n python2-blivet
python2 package for blivet
%endif
%package_help
%prep
2020-01-13 11:21:25 +08:00
%autosetup -n blivet-%{version} -p1
2019-12-30 14:56:27 +08:00
%build
2020-03-14 15:46:11 +08:00
%if %{with enable_python2}
make PYTHON=%{__python2}
%endif
2019-12-30 14:56:27 +08:00
%{?with_python3:make PYTHON=%{__python3}}
%install
2020-03-14 15:46:11 +08:00
%if %{with enable_python2}
make PYTHON=%{__python2} DESTDIR=%{buildroot} install
%endif
2019-12-30 14:56:27 +08:00
%{?with_python3:make PYTHON=%{__python3} DESTDIR=%{buildroot} install}
2020-01-13 11:21:25 +08:00
%find_lang blivet
%files -n blivet-data -f blivet.lang
2019-12-30 14:56:27 +08:00
%defattr(-,root,root)
%{_sysconfdir}/dbus-1/system.d/*
%{_libexecdir}/*
%{_unitdir}/*
%{_datadir}/dbus-1/system-services/*
%files -n python3-blivet
%defattr(-,root,root)
%license COPYING
%doc examples
%{python3_sitelib}/*
2020-03-14 15:46:11 +08:00
%if %{with enable_python2}
2019-12-30 14:56:27 +08:00
%files -n python2-blivet
%defattr(-,root,root)
%license COPYING
%doc examples
%{python2_sitelib}/*
%endif
%files help
%defattr(-,root,root)
2021-02-03 16:30:56 +08:00
%doc README.md
2019-12-30 14:56:27 +08:00
%changelog
2021-02-03 16:30:56 +08:00
* Wed Feb 03 2021 gaihuiying <gaihuiying1@huawei.com> - 3.3.2-1
- Type:requirement
- ID:NA
- SUG:NA
- DESC:update python-blivet to 3.3.2
* Wed Nov 18 2020 gaihuiying <gaihuiying1@huawei.com> - 3.2.2-4
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:add %bcond_without python3 for building in docker
* Thu Sep 15 2020 liuxin <liuxin264@huawei.com> - 3.2.2-3
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:bugfix raid1 dirvice cann't show when install
* Thu Jul 9 2020 zhangqiumiao <zhangqiumiao1@huawei.com> - 3.2.2-2
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:bugfix about changelog in python-blivet.spec
* Thu Jun 18 2020 zhangqiumiao <zhangqiumiao1@huawei.com> - 3.2.2-1
2020-06-22 22:40:29 +08:00
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:upgrate to version 3.2.2
2020-06-22 22:40:29 +08:00
2020-03-21 23:47:46 +08:00
* Sat Mar 21 2020 songnannan <songnannan@huawei.com> - 3.1.1-8
- bugfix about update
* Sat Mar 21 2020 hexiujun <hexiujun1@huawei.com> - 3.1.1-7
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:check if disklabel supports partition names
2020-03-14 15:46:11 +08:00
* Sat Mar 14 2020 hexiujun <hexiujun1@huawei.com> - 3.1.1-6
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:disable python2
2020-01-13 11:21:25 +08:00
* Mon Jan 13 2020 openEuler Buildteam <buildteam@openeuler.org> - 3.1.1-5
- update software package
2019-12-30 14:56:27 +08:00
* Sun Dec 29 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.1.1-4
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:optimization the spec
* Wed Oct 23 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.1.1-3
- Package init