183 lines
5.9 KiB
RPMSpec
183 lines
5.9 KiB
RPMSpec
Summary: The GNU disk partition manipulation program
|
|
Name: parted
|
|
Version: 3.6
|
|
Release: 5%{?dist}
|
|
License: GPL-3.0-or-later
|
|
URL: http://www.gnu.org/software/parted
|
|
|
|
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
|
|
BuildRequires: libuuid-devel
|
|
BuildRequires: libblkid-devel >= 2.17
|
|
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
|
|
|
|
# bundled gnulib library exception, as per packaging guidelines
|
|
# https://fedoraproject.org/wiki/Packaging:No_Bundled_Libraries
|
|
Provides: bundled(gnulib)
|
|
|
|
%description
|
|
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
|
|
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
|
|
|
|
%build
|
|
autoreconf -fiv
|
|
CFLAGS="$RPM_OPT_FLAGS -Wno-unused-but-set-variable"; export CFLAGS
|
|
%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
|
|
|
|
%find_lang %{name}
|
|
|
|
|
|
%check
|
|
export LD_LIBRARY_PATH=$(pwd)/libparted/.libs:$(pwd)/libparted/fs/.libs
|
|
make check
|
|
|
|
%files -f %{name}.lang
|
|
%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 Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 3.6-5
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.6-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.6-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.6-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
* Mon Apr 10 2023 Brian C. Lane <bcl@redhat.com> - 3.6-1
|
|
- Upstream 3.6 stable release
|
|
- Dropping pre-3.5 changelog entries
|
|
|
|
* 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
|
|
|
|
* 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)
|
|
|
|
* Mon Apr 18 2022 Brian C. Lane <bcl@redhat.com> - 3.5-1
|
|
- Upstream 3.5 stable release
|