|
1 | 1 | Vendor: Microsoft Corporation |
2 | 2 | Distribution: Azure Linux |
3 | | - |
4 | | -%bcond_without python3 |
5 | | - |
6 | | -%bcond_with python2 |
7 | | - |
8 | | -Summary: Python module for GNU parted |
9 | | -Name: pyparted |
10 | | -Version: 3.11.4 |
11 | | -Release: 4%{?dist} |
12 | | -License: GPLv2+ |
13 | | -URL: https://github.com/dcantrell/pyparted |
14 | | - |
15 | | -Source0: https://github.com/dcantrell/pyparted/releases/download/v%{version}/%{name}-%{version}.tar.gz |
16 | | -Source1: https://github.com/dcantrell/pyparted/releases/download/v%{version}/%{name}-%{version}.tar.gz.asc |
17 | | -Source2: keyring.gpg |
18 | | -Source3: trustdb.gpg |
19 | | - |
| 3 | +Summary: Python module for GNU parted |
| 4 | +Name: pyparted |
| 5 | +Version: 3.13.0 |
| 6 | +Release: 8%{?dist} |
| 7 | +License: GPL-2.0-or-later |
| 8 | +URL: https://github.com/dcantrell/pyparted |
| 9 | + |
| 10 | +Source0: https://github.com/dcantrell/pyparted/releases/download/v%{version}/%{name}-%{version}.tar.gz |
| 11 | +Source1: https://github.com/dcantrell/pyparted/releases/download/v%{version}/%{name}-%{version}.tar.gz.asc |
| 12 | +Source2: keyring.gpg |
| 13 | +Source3: trustdb.gpg |
| 14 | + |
| 15 | +BuildRequires: make |
20 | 16 | BuildRequires: gcc |
21 | | -BuildRequires: parted-devel >= 3.2-18 |
| 17 | +BuildRequires: parted-devel >= 3.4 |
22 | 18 | BuildRequires: pkgconfig |
23 | 19 | BuildRequires: e2fsprogs |
24 | 20 | BuildRequires: gnupg2 |
25 | | - |
26 | | -%if %{with python3} |
27 | 21 | BuildRequires: python3-devel |
28 | 22 | BuildRequires: python3-six |
29 | | -%endif |
30 | | - |
31 | | -%if %{with python2} |
32 | | -BuildRequires: python2-devel |
33 | | -BuildRequires: python2-six |
34 | | -%endif |
| 23 | +BuildRequires: python3-setuptools |
35 | 24 |
|
36 | | -%global _description\ |
37 | | -Python module for the parted library. It is used for manipulating\ |
| 25 | +%description |
| 26 | +Python module for the parted library. It is used for manipulating |
38 | 27 | partition tables. |
39 | 28 |
|
40 | | -%description %_description |
41 | | - |
42 | | -%if %{with python2} |
43 | | -%package -n python2-pyparted |
44 | | -Summary: %summary |
45 | | -%{?python_provide:%python_provide python2-pyparted} |
46 | | -# Remove before F30 |
47 | | -Provides: pyparted = %{version}-%{release} |
48 | | -Provides: pyparted%{?_isa} = %{version}-%{release} |
49 | | -Obsoletes: pyparted < %{version}-%{release} |
50 | | - |
51 | | -%description -n python2-pyparted %_description |
52 | | -%endif |
53 | | - |
54 | | -%if %{with python3} |
55 | 29 | %package -n python3-pyparted |
56 | 30 | Summary: Python 3 module for GNU parted |
57 | 31 |
|
58 | 32 | %description -n python3-pyparted |
59 | 33 | Python module for the parted library. It is used for manipulating |
60 | 34 | partition tables. This package provides Python 3 bindings for parted. |
61 | | -%endif |
62 | 35 |
|
63 | 36 | %prep |
64 | 37 | # Verify source archive signature |
65 | | -# Remove "use-keyboxd" from gnupg configuration; if present, since it will wait forever if the service is not running |
66 | | -sed -i '/use-keyboxd/d' ~/.gnupg/common.conf |
67 | 38 | gpg --no-default-keyring --keyring %{SOURCE2} --trustdb-name %{SOURCE3} --verify %{SOURCE1} %{SOURCE0} || exit 1 |
68 | 39 |
|
69 | | -%setup -q |
70 | | - |
71 | | -%if %{with python3} |
72 | | -everything=$(ls) |
73 | | -mkdir -p py3dir |
74 | | -cp -a $everything py3dir |
75 | | -%endif |
| 40 | +%autosetup |
76 | 41 |
|
77 | 42 | %build |
78 | | -%if %{with python2} |
79 | | -PYTHON=python2 make %{?_smp_mflags} CFLAGS="%{optflags} -fcommon" |
80 | | -%endif |
81 | | - |
82 | | -%if %{with python3} |
83 | | -pushd py3dir |
84 | | -PYTHON=python3 make %{?_smp_mflags} CFLAGS="%{optflags} -fcommon" |
85 | | -popd |
86 | | -%endif |
| 43 | +%make_build CFLAGS="%{optflags} -fcommon" |
87 | 44 |
|
88 | 45 | %check |
89 | | -%if %{with python2} |
90 | | -PYTHON=python2 make test |
91 | | -%endif |
92 | | - |
93 | | -%if %{with python3} |
94 | | -pushd py3dir |
95 | | -PYTHON=python3 make test |
96 | | -popd |
97 | | -%endif |
| 46 | +make test |
98 | 47 |
|
99 | 48 | %install |
100 | | -%if %{with python2} |
101 | | -PYTHON=python2 make install DESTDIR=%{buildroot} |
102 | | -%endif |
103 | | - |
104 | | -%if %{with python3} |
105 | | -pushd py3dir |
106 | | -PYTHON=python3 make install DESTDIR=%{buildroot} |
107 | | -popd |
108 | | -%endif |
109 | | - |
110 | | -%if %{with python2} |
111 | | -%files -n python2-pyparted |
112 | | -%doc AUTHORS COPYING NEWS README TODO |
113 | | -%{python2_sitearch}/_ped.so |
114 | | -%{python2_sitearch}/parted |
115 | | -%{python2_sitearch}/%{name}-%{version}-*.egg-info |
116 | | -%endif |
117 | | - |
118 | | -%if %{with python3} |
| 49 | +%make_install |
| 50 | + |
119 | 51 | %files -n python3-pyparted |
120 | | -%doc AUTHORS COPYING NEWS README TODO |
| 52 | +%doc AUTHORS HACKING NEWS README.md RELEASE TODO |
| 53 | +%license LICENSE |
121 | 54 | %{python3_sitearch}/_ped.*.so |
122 | 55 | %{python3_sitearch}/parted |
123 | 56 | %{python3_sitearch}/%{name}-%{version}-*.egg-info |
124 | | -%endif |
125 | 57 |
|
126 | 58 | %changelog |
127 | | -* Mon Dec 04 2023 Andrew Phelps <anphel@microsoft.com> - 3.11.4-4 |
128 | | -- Fix build issue with gpg keyboxd |
| 59 | +* Wed Dec 18 2024 Sumit Jena <v-sumitjena@microsoft.com> - 3.13.0-8 |
| 60 | +- Initial Azure Linux import from Fedora 41 (license: MIT). |
129 | 61 | - License verified. |
130 | 62 |
|
131 | | -* Mon Nov 01 2021 Muhammad Falak <mwani@microsoft.com> - 3.11.4-3 |
132 | | -- Remove epoch |
| 63 | +* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.13.0-7 |
| 64 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild |
| 65 | + |
| 66 | +* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 1:3.13.0-6 |
| 67 | +- Rebuilt for Python 3.13 |
| 68 | + |
| 69 | +* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.13.0-5 |
| 70 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild |
| 71 | + |
| 72 | +* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.13.0-4 |
| 73 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild |
| 74 | + |
| 75 | +* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.13.0-3 |
| 76 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild |
| 77 | + |
| 78 | +* Thu Jun 22 2023 Python Maint <python-maint@redhat.com> - 1:3.13.0-2 |
| 79 | +- Rebuilt for Python 3.12 |
| 80 | + |
| 81 | +* Wed Jun 21 2023 David Cantrell <dcantrell@redhat.com> - 1:3.13.0-1 |
| 82 | +- Upgrade to pyparted-3.13.0 |
| 83 | + |
| 84 | +* Thu Jun 15 2023 Python Maint <python-maint@redhat.com> - 1:3.12.0-11 |
| 85 | +- Rebuilt for Python 3.12 |
| 86 | + |
| 87 | +* Wed Jun 14 2023 David Cantrell <dcantrell@redhat.com> - 1:3.12.0-10 |
| 88 | +- Use non-deprecated syntax for the %%patch macros |
| 89 | + |
| 90 | +* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 1:3.12.0-9 |
| 91 | +- Rebuilt for Python 3.12 |
| 92 | + |
| 93 | +* Thu Mar 02 2023 David Cantrell <dcantrell@redhat.com> - 1:3.12.0-8 |
| 94 | +- Fix FTBFS with _ped.disktype test case for gpt (#2171656) |
| 95 | +- Update License tag to SPDX expression |
| 96 | + |
| 97 | +* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.12.0-7 |
| 98 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild |
| 99 | + |
| 100 | +* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.12.0-6 |
| 101 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild |
| 102 | + |
| 103 | +* Tue Jun 21 2022 David Cantrell <dcantrell@redhat.com> - 1:3.12.0-5 |
| 104 | +- Patch pyparted to handle PED_DISK_TYPE_PARTITION_TYPE_ID for the |
| 105 | + msdos disk type and PED_DISK_TYPE_PARTITION_TYPE_UUID for the gpt |
| 106 | + label (#2098792) |
| 107 | + |
| 108 | +* Mon Jun 20 2022 Adam Williamson <awilliam@redhat.com> - 1:3.12.0-4 |
| 109 | +- Backport PR #92 to fix tests with parted 3.5 (#2098792) |
| 110 | + |
| 111 | +* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1:3.12.0-3 |
| 112 | +- Rebuilt for Python 3.11 |
| 113 | + |
| 114 | +* Mon Mar 07 2022 David Cantrell <dcantrell@redhat.com> - 3.12.0-2 |
| 115 | +- BR python3-setuptools |
| 116 | + |
| 117 | +* Mon Mar 07 2022 David Cantrell <dcantrell@redhat.com> - 3.12.0-1 |
| 118 | +- Upgrade to pyparted-3.12.0 |
| 119 | + |
| 120 | +* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.11.7-5 |
| 121 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild |
| 122 | + |
| 123 | +* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.11.7-4 |
| 124 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild |
| 125 | + |
| 126 | +* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 1:3.11.7-3 |
| 127 | +- Rebuilt for Python 3.10 |
| 128 | + |
| 129 | +* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:3.11.7-2 |
| 130 | +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild |
| 131 | + |
| 132 | +* Fri Oct 23 2020 David Cantrell <dcantrell@redhat.com> - 1:3.11.7-1 |
| 133 | +- Upgrade to pyparted-3.11.7 (BZ#1890443) |
| 134 | +- Set PY_SSIZE_T_CLEAN for the build (bcl) |
| 135 | +- add nvme support |
| 136 | +- Update RELEASE file to make last step be "make pypi" (dcantrell) |
| 137 | + |
| 138 | +* Tue Jul 14 2020 Tom Stellard <tstellar@redhat.com> - 1:3.11.5-3 |
| 139 | +- Use make macros |
| 140 | +- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro |
| 141 | + |
| 142 | +* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 1:3.11.5-2 |
| 143 | +- Rebuilt for Python 3.9 |
133 | 144 |
|
134 | | -* Mon Mar 01 2021 Henry Li <lihl@microsoft.com> - 1:3.11.4-2 |
135 | | -- Initial CBL-Mariner import from Fedora 32 (license: MIT). |
136 | | -- Disable python2 build and enable python3 build only |
| 145 | +* Mon Mar 09 2020 David Cantrell <dcantrell@redhat.com> - 1:3.11.5-1 |
| 146 | +- Require at least libparted 3.3 and python 3.7 (dcantrell) |
| 147 | +- pedmodule.c: Fix partition enum flag handling (bcl) |
| 148 | +- Add support for chromeos_kernel and bls_boot partition flags (bcl) |
| 149 | +- Move exception declarations to _pedmodule.c (dcantrell) |
137 | 150 |
|
138 | 151 | * Tue Feb 11 2020 David Cantrell <dcantrell@redhat.com> - 1:3.11.4-1 |
139 | 152 | - Use Decimal for Device.getSize() operations, return a |
|
0 commit comments