|
@@ -3,17 +3,20 @@
|
|
Summary: The GNU disk partition manipulation program.
|
|
Summary: The GNU disk partition manipulation program.
|
|
Summary(ja): ディスクパーティション操作ツール
|
|
Summary(ja): ディスクパーティション操作ツール
|
|
Name: parted
|
|
Name: parted
|
|
-Version: 3.2
|
|
+Version: 3.2.153
|
|
-Release: 2%{?_dist_release}
|
|
+Release: 1%{?_dist_release}
|
|
License: GPLv3
|
|
License: GPLv3
|
|
Group: Applications/Administration
|
|
Group: Applications/Administration
|
|
URL: http://www.gnu.org/software/parted/
|
|
URL: http://www.gnu.org/software/parted/
|
|
|
|
|
|
-Source0: ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz
|
|
+Source0: https://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz
|
|
|
|
+
|
|
|
|
+# Upstream still uses python2 for these scripts
|
|
|
|
+Patch0000: 0092-Switch-gpt-header-move-and-msdos-overlap-to-python3.patch
|
|
|
|
|
|
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
|
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRequires: e2fsprogs-devel, ncurses-devel, readline-devel
|
|
BuildRequires: e2fsprogs-devel, ncurses-devel, readline-devel
|
|
-BuildRequires: python-devel, ncurses-devel
|
|
+BuildRequires: python3-devel, ncurses-devel
|
|
BuildRequires: device-mapper-devel
|
|
BuildRequires: device-mapper-devel
|
|
BuildRequires: libtool, automake, autoconf
|
|
BuildRequires: libtool, automake, autoconf
|
|
BuildRequires: gettext-devel >= 0.18
|
|
BuildRequires: gettext-devel >= 0.18
|
|
@@ -60,12 +63,23 @@ GNU Parted ライブラリにはハードディスクのパーティションを
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%setup -q
|
|
%setup -q
|
|
|
|
+%patch0 -p1 -b .python3
|
|
|
|
+
|
|
iconv -f ISO-8859-1 -t UTF8 AUTHORS > tmp; touch -r AUTHORS tmp; mv tmp AUTHORS
|
|
iconv -f ISO-8859-1 -t UTF8 AUTHORS > tmp; touch -r AUTHORS tmp; mv tmp AUTHORS
|
|
|
|
|
|
%build
|
|
%build
|
|
|
|
+autoreconf
|
|
|
|
+autoconf
|
|
|
|
+
|
|
|
|
+CFLAGS="$RPM_OPT_FLAGS -Wno-unused-but-set-variable"; export CFLAGS
|
|
%configure \
|
|
%configure \
|
|
--enable-device-mapper \
|
|
--enable-device-mapper \
|
|
--enable-shared
|
|
--enable-shared
|
|
|
|
+
|
|
|
|
+# 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 %{?_smp_mflags}
|
|
%__make %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
%install
|
|
@@ -96,7 +110,8 @@ fi
|
|
|
|
|
|
%files -f %{name}.lang
|
|
%files -f %{name}.lang
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
-%doc AUTHORS BUGS COPYING ChangeLog NEWS README THANKS TODO
|
|
+%license COPYING
|
|
|
|
+%doc AUTHORS BUGS ChangeLog NEWS README THANKS TODO
|
|
%doc doc/FAT doc/USER.jp
|
|
%doc doc/FAT doc/USER.jp
|
|
%{_sbindir}/*
|
|
%{_sbindir}/*
|
|
%{_mandir}/man8/*
|
|
%{_mandir}/man8/*
|
|
@@ -109,9 +124,13 @@ fi
|
|
%{_includedir}/*
|
|
%{_includedir}/*
|
|
%{_libdir}/lib*.so
|
|
%{_libdir}/lib*.so
|
|
%{_libdir}/*.a
|
|
%{_libdir}/*.a
|
|
-%{_libdir}/pkgconfig/libparted.pc
|
|
+%{_libdir}/pkgconfig/libparted*.pc
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Mon Sep 02 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.2.153-1
|
|
|
|
+- new upstream release.
|
|
|
|
+- built with readline-8.0.
|
|
|
|
+
|
|
* Thu Apr 2 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 3.2-2
|
|
* Thu Apr 2 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 3.2-2
|
|
- rebuilt with readline 6.3
|
|
- rebuilt with readline 6.3
|
|
|
|
|