parted/parted.spec

282 lines
10 KiB
RPMSpec
Raw Normal View History

Summary: The GNU disk partition manipulation program
Name: parted
Version: 3.5.28
Release: 1%{?dist}
2023-01-30 23:09:42 +00:00
License: GPL-3.0-or-later
URL: http://www.gnu.org/software/parted
2006-06-15 20:16:26 +00:00
2022-04-18 20:29:03 +00:00
Source0: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz
Source1: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz.sig
Source2: pubkey.phillip.susi
Source3: pubkey.brian.lane
BuildRequires: gcc
BuildRequires: e2fsprogs-devel
BuildRequires: readline-devel
BuildRequires: ncurses-devel
BuildRequires: gettext-devel
BuildRequires: texinfo
BuildRequires: device-mapper-devel
2009-07-10 13:16:25 +00:00
BuildRequires: libuuid-devel
BuildRequires: libblkid-devel >= 2.17
2018-06-07 16:47:30 +00:00
BuildRequires: gnupg2
BuildRequires: git
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: e2fsprogs
BuildRequires: xfsprogs
BuildRequires: dosfstools
BuildRequires: perl-Digest-CRC
BuildRequires: bc
BuildRequires: python3
BuildRequires: gperf
BuildRequires: make
BuildRequires: check-devel
2006-03-14 21:12:47 +00:00
# bundled gnulib library exception, as per packaging guidelines
# https://fedoraproject.org/wiki/Packaging:No_Bundled_Libraries
Provides: bundled(gnulib)
%description
auto-import changelog data from parted-1.4.16-5.src.rpm Tue Aug 07 2001 Matt Wilson <msw@redhat.com> - made a new dist from CVS that includes binding for disk.get_partition_by_sector and accessing the name of a disk type Mon Aug 06 2001 Matt Wilson <msw@redhat.com> 1.4.16-4 - created a new dist from CVS that fixes ext3 detection when _probe_with_open is needed (#50292) Fri Jul 20 2001 Matt Wilson <msw@redhat.com> - rewrite scsi id code (#49533) Fri Jul 20 2001 Matt Wilson <msw@redhat.com> - added build requires (#49549) Tue Jul 17 2001 Matt Wilson <msw@redhat.com> - 1.4.16 - regenerated gpt patch against 1.4.16, incorporated parted-1.4.15-pre1-gpt-printf.patch into the same patch, removed Patch1 Tue Jul 10 2001 Matt Wilson <msw@redhat.com> - added a new dist tarball that contains python wrappers to get disk types Tue Jul 10 2001 Tim Powers <timp@redhat.com> - run ldconfig on un/install Tue Jul 10 2001 Matt Wilson <msw@redhat.com> - added a fix from clausen for border case when there is an extended on the last cyl Mon Jul 09 2001 Matt Wilson <msw@redhat.com> - 1.4.15 Thu Jul 05 2001 Matt Wilson <msw@redhat.com> - added patch from Arjan to enable ataraid support Wed Jul 04 2001 Matt Wilson <msw@redhat.com> - imported 1.4.15-pre2 into CVS and made a new dist tarball Tue Jun 26 2001 Matt Wilson <msw@redhat.com> - added a new dist tarball that contains a check in python code to make sure that a partition exists within a disk before trying to remove it from the disk - also changed _probe_with_open to make the first probed filesystem win Tue Jun 26 2001 Bill Nottingham <notting@redhat.com> - fix filesystem type reading on GPT disks Tue Jun 26 2001 Matt Wilson <msw@redhat.com> - added another fix for ext2/ext3 - added Patch4 to move the crc32 function into its own namespace so we don't colide with zlib when both are in the same executable space Mon Jun 25 2001 Matt Wilson <msw@redhat.com> - added a new dist tarball from CVS that includes ext3 probing Wed Jun 06 2001 Matt Wilson <msw@redhat.com> - updated dist with binding for partition.geom.disk Tue Jun 05 2001 Matt Wilson <msw@redhat.com> - make a new dist tarball that has new python binding changes
2004-09-09 09:52:03 +00:00
The GNU Parted program allows you to create, destroy, resize, move,
and copy hard disk partitions. Parted can be used for creating space
for new operating systems, reorganizing disk usage, and copying data
to new hard disks.
%package devel
Summary: Files for developing apps which will manipulate disk partitions
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig
%description devel
auto-import changelog data from parted-1.4.16-5.src.rpm Tue Aug 07 2001 Matt Wilson <msw@redhat.com> - made a new dist from CVS that includes binding for disk.get_partition_by_sector and accessing the name of a disk type Mon Aug 06 2001 Matt Wilson <msw@redhat.com> 1.4.16-4 - created a new dist from CVS that fixes ext3 detection when _probe_with_open is needed (#50292) Fri Jul 20 2001 Matt Wilson <msw@redhat.com> - rewrite scsi id code (#49533) Fri Jul 20 2001 Matt Wilson <msw@redhat.com> - added build requires (#49549) Tue Jul 17 2001 Matt Wilson <msw@redhat.com> - 1.4.16 - regenerated gpt patch against 1.4.16, incorporated parted-1.4.15-pre1-gpt-printf.patch into the same patch, removed Patch1 Tue Jul 10 2001 Matt Wilson <msw@redhat.com> - added a new dist tarball that contains python wrappers to get disk types Tue Jul 10 2001 Tim Powers <timp@redhat.com> - run ldconfig on un/install Tue Jul 10 2001 Matt Wilson <msw@redhat.com> - added a fix from clausen for border case when there is an extended on the last cyl Mon Jul 09 2001 Matt Wilson <msw@redhat.com> - 1.4.15 Thu Jul 05 2001 Matt Wilson <msw@redhat.com> - added patch from Arjan to enable ataraid support Wed Jul 04 2001 Matt Wilson <msw@redhat.com> - imported 1.4.15-pre2 into CVS and made a new dist tarball Tue Jun 26 2001 Matt Wilson <msw@redhat.com> - added a new dist tarball that contains a check in python code to make sure that a partition exists within a disk before trying to remove it from the disk - also changed _probe_with_open to make the first probed filesystem win Tue Jun 26 2001 Bill Nottingham <notting@redhat.com> - fix filesystem type reading on GPT disks Tue Jun 26 2001 Matt Wilson <msw@redhat.com> - added another fix for ext2/ext3 - added Patch4 to move the crc32 function into its own namespace so we don't colide with zlib when both are in the same executable space Mon Jun 25 2001 Matt Wilson <msw@redhat.com> - added a new dist tarball from CVS that includes ext3 probing Wed Jun 06 2001 Matt Wilson <msw@redhat.com> - updated dist with binding for partition.geom.disk Tue Jun 05 2001 Matt Wilson <msw@redhat.com> - make a new dist tarball that has new python binding changes
2004-09-09 09:52:03 +00:00
The GNU Parted library is a set of routines for hard disk partition
manipulation. If you want to develop programs that manipulate disk
partitions and filesystems using the routines provided by the GNU
Parted library, you need to install this package.
%prep
%{gpgverify} --keyring='%{SOURCE3}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
%autosetup -S git_am
iconv -f ISO-8859-1 -t UTF8 AUTHORS > tmp; touch -r AUTHORS tmp; mv tmp AUTHORS
2009-07-21 14:55:51 +00:00
%build
autoreconf -fiv
CFLAGS="$RPM_OPT_FLAGS -Wno-unused-but-set-variable"; export CFLAGS
2020-11-05 17:38:13 +00:00
%configure --disable-static --disable-gcc-warnings
# Don't use rpath!
%{__sed} -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
%{__sed} -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%make_build
%install
%{__rm} -rf %{buildroot}
%make_install
# Remove components we do not ship
%{__rm} -rf %{buildroot}%{_libdir}/*.la
%{__rm} -rf %{buildroot}%{_infodir}/dir
%{__rm} -rf %{buildroot}%{_bindir}/label
%{__rm} -rf %{buildroot}%{_bindir}/disk
2007-03-20 05:37:27 +00:00
%find_lang %{name}
%check
export LD_LIBRARY_PATH=$(pwd)/libparted/.libs:$(pwd)/libparted/fs/.libs
make check
2007-03-20 05:37:27 +00:00
%files -f %{name}.lang
2014-07-30 15:00:02 +00:00
%doc AUTHORS NEWS README THANKS
%{!?_licensedir:%global license %%doc}
%license COPYING
%{_sbindir}/parted
%{_sbindir}/partprobe
%{_mandir}/man8/parted.8*
%{_mandir}/man8/partprobe.8*
%{_libdir}/libparted.so.2
%{_libdir}/libparted.so.2.0.5
%{_libdir}/libparted-fs-resize.so.0
%{_libdir}/libparted-fs-resize.so.0.0.5
%{_infodir}/parted.info*
%files devel
%doc TODO doc/API doc/FAT
%{_includedir}/parted
%{_libdir}/libparted.so
%{_libdir}/libparted-fs-resize.so
%{_libdir}/pkgconfig/libparted.pc
%{_libdir}/pkgconfig/libparted-fs-resize.pc
%changelog
* Mon Mar 27 2023 Brian C. Lane <bcl@redhat.com> - 3.5.28-1
- Upstream 3.5.28 Alpha release
- Dropped all patches included in new upstream release
- Bumped minor version on libparted.so and libparted-fs-resize.so
* Fri Mar 17 2023 Brian C. Lane <bcl@redhat.com> - 3.5-11
- parted: Fix ending sector location when using kibi IEC suffix (bcl)
- tests: Fix formatting and snprintf warnings in tests. (bcl)
- ui: Add checks for prompt being NULL (bcl)
- strlist: Handle realloc error in wchar_to_str (bcl)
- libparted: Fix potential NULL dereference in ped_disk_next_partition (bcl)
- filesys: Check for null from close_fn (bcl)
* Tue Feb 07 2023 Brian C. Lane <bcl@redhat.com> - 3.5-10
- libparted: Fix problem with creating 1s partitions
- tests: Fixing libparted test framework usage
2023-01-30 23:09:42 +00:00
* Mon Jan 30 2023 Brian C. Lane <bcl@redhat.com> - 3.5-9
- SPDX migration
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.5-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Wed Dec 14 2022 Brian C. Lane <bcl@redhat.com> - 3.5-7
- libparted: Fix handling of msdos partition types
- tests: Add a libparted test for ped_partition_set_system on msdos
- parted: Add display of GPT UUIDs in JSON output
- Add no_automount flag support
- increase xfs size to 300M
* Mon Aug 08 2022 Brian C. Lane <bcl@redhat.com> - 3.5-6
- Fix ped_partition_set_system handling of existing flags
* Thu Aug 04 2022 Brian C. Lane <bcl@redhat.com> - 3.5-5
- Update enum patch description for upstream
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.5-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Mon Jun 20 2022 Adam Williamson <awilliam@redhat.com> - 3.5-3
- Set _FIRST_ and _LAST_ macro values directly
* Tue May 17 2022 Brian C. Lane <bcl@redhat.com> - 3.5-2
- tests: t3200-type-change now passes (bcl)
- parted: Reset the filesystem type when changing the id/uuid (bcl)
- libparted: add swap flag for DASD label (aschnell)
- parted: add type command (aschnell)
- maint: post-release administrivia (bcl)
2022-04-18 20:29:03 +00:00
* Mon Apr 18 2022 Brian C. Lane <bcl@redhat.com> - 3.5-1
- Upstream 3.5 stable release
* Wed Mar 30 2022 Brian C. Lane <bcl@redhat.com> - 3.4.64-1
- Upstream 3.4.64 Alpha release
- Dropped all patches included in new upstream release
- Bumped minor version on libparted.so and libparted-fs-resize.so
* Thu Feb 17 2022 Brian C. Lane <bcl@redhat.com> - 3.4-12
- gnulib: Use newer cdefs.h from gnulib (bcl)
- Update parted.spec to allow flatpak builds
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.4-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Wed Oct 06 2021 Brian C. Lane <bcl@redhat.com> - 3.4-11
- docs: Update documentation to be consistent
* Wed Oct 06 2021 Brian C. Lane <bcl@redhat.com> - 3.4-10
- gpt: Revert to filesystem GUID when setting flag to off (bcl)
- tests: Add a test to make sure GPT GUIDs default to filesystem (bcl)
- doc: Document gpt linux-home flag (bcl)
- gpt: Add linux-home flag (aschnell)
- gpt: Map PED_PARTITON_ flags to GUID values (aschnell)
2021-09-23 23:42:24 +00:00
* Thu Sep 23 2021 Brian C. Lane <bcl@redhat.com> - 3.4-9
- keep GUID specific attributes (aschnell)
- hurd: Implement partition table rereading (cjwatson)
- hurd: Support rumpdisk-based device names (samuel.thibault)
- hurd: Fix partition paths (cjwatson)
* Wed Aug 25 2021 Brian C. Lane <bcl@redhat.com> - 3.4-8
- parted: Add --json cmdline switch to output JSON (aschnell)
- parted: Allow empty string for partition name (aschnell)
- libparted: Check devpath before passing to strlen (bcl)
* Tue Aug 10 2021 Brian C. Lane <bcl@redhat.com> - 3.4-7
- libparted: Tell libdevmapper to retry remove when BUSY (bcl)
Resolves: rhbz#1980697
- parted: Escape colons and backslashes in machine output (bcl)
- tests: check for vfat kernel support and tools (ross.burton)
- tests: add a helper to check the kernel knows about a file system (ross.burton)
- tests: add aarch64 and mips64 as a valid 64-bit machines (ross.burton)
- libparted: Add swap flag to msdos disklabel (bcl)
- Move Exception Option values into enum (bcl)
* Tue Aug 03 2021 Brian C. Lane <bcl@redhat.com> - 3.4-6
- spec: Use the %%gpgverify macro for the signature check
- tests/t3000: Use mkfs.hfsplus and fsck.hfsplus for resize tests (bcl)
- tests/t3000: Check for hfs and vfat support separately (bcl)
- tests: Reduce memory usage for tests using scsi_debug module (bcl)
- spec: Install to /usr/sbin and /usr/lib64 (bcl)
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.4-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Mon Jun 14 2021 Brian C. Lane <bcl@redhat.com> - 3.4-4
- Fix issues that covscan classifies as important
Resolves: rhbz#1938836
- Update gpg key for bcl@redhat.com
- Work around a mkswap bug
* Wed Mar 10 2021 Brian C. Lane <bcl@redhat.com> - 3.4-3
- Use autoreconf -fiv for autoconf 2.71 support
Works with both 2.69 and 2.71
2021-02-03 17:43:00 +00:00
* Wed Feb 03 2021 Brian C. Lane <bcl@redhat.com> - 3.4-2
- Add --fix support from upstream
2021-01-28 00:33:04 +00:00
* Wed Jan 27 2021 Brian C. Lane <bcl@redhat.com> - 3.4-1
- New stable upstream release v3.4
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.52-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Mon Dec 14 2020 Brian C. Lane <bcl@redhat.com> - 3.3.52-1
- New upstream ALPHA release v3.3.52
- Includes all patches
* Mon Nov 30 2020 Brian C. Lane <bcl@redhat.com> - 3.3-8
- Add upstream commits to fix various gcc 10 warnings (bcl)
2020-11-05 17:38:13 +00:00
* Thu Nov 05 2020 Brian C. Lane <bcl@redhat.com> - 3.3-7
- Do not link to libselinux
* Fri Sep 25 2020 Brian C. Lane <bcl@redhat.com> - 3.3-6
- tests: Add a test for resizepart on a busy partition (bcl)
- parted: Preserve resizepart End when prompted for busy partition (bcl)
- tests: Add f2fs to the fs probe test (romain.perier)
- Add support for the F2FS filesystem (romain.perier)
- Removed reference to ped_file_system_create (max)
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue Jul 14 2020 Tom Stellard <tstellar@redhat.com> - 3.3-4
- Use make macros
https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
- Switch to using %%autosetup instead of %%setup and git (bcl)
- Update tests.yml to install git and simplify source usage (bgoncalv)
* Fri Mar 06 2020 Brian C. Lane <bcl@redhat.com> - 3.3-3
- Add chromeos_kernel partition flag for gpt disklabels
- Add bls_boot partition flag for msdos and gpt disklabels
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Mon Dec 16 2019 Brian C. Lane <bcl@redhat.com> - 3.3-2
- tests: Test incomplete resizepart command
- Fix end_input usage in do_resizepart
Resolves: rhbz#1701411
* Fri Oct 11 2019 Brian C. Lane <bcl@redhat.com> - 3.3-1
- New upstream release v3.3
Includes the DASD virtio-blk fix.
- Dropping pre-3.2 changelog entries