Browse Source

parted-3.2.153-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@12169 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 4 years ago
parent
commit
46259e28f1
1 changed files with 25 additions and 6 deletions
  1. 25 6
      p/parted/parted-vl.spec

+ 25 - 6
p/parted/parted-vl.spec

@@ -3,17 +3,20 @@
 Summary: The GNU disk partition manipulation program.
 Summary(ja): ディスクパーティション操作ツール
 Name: parted
-Version: 3.2
-Release: 2%{?_dist_release}
+Version: 3.2.153
+Release: 1%{?_dist_release}
 License: GPLv3
 Group: Applications/Administration
 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
 BuildRequires: e2fsprogs-devel, ncurses-devel, readline-devel
-BuildRequires: python-devel, ncurses-devel
+BuildRequires: python3-devel, ncurses-devel
 BuildRequires: device-mapper-devel
 BuildRequires: libtool, automake, autoconf
 BuildRequires: gettext-devel >= 0.18
@@ -60,12 +63,23 @@ GNU Parted ライブラリにはハードディスクのパーティションを
 
 %prep
 %setup -q
+%patch0 -p1 -b .python3
+
 iconv -f ISO-8859-1 -t UTF8 AUTHORS > tmp; touch -r AUTHORS tmp; mv tmp AUTHORS
 
 %build
+autoreconf
+autoconf
+
+CFLAGS="$RPM_OPT_FLAGS -Wno-unused-but-set-variable"; export CFLAGS
 %configure \
     --enable-device-mapper \
     --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}
 
 %install
@@ -96,7 +110,8 @@ fi
 
 %files -f %{name}.lang
 %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
 %{_sbindir}/*
 %{_mandir}/man8/*
@@ -109,9 +124,13 @@ fi
 %{_includedir}/*
 %{_libdir}/lib*.so
 %{_libdir}/*.a
-%{_libdir}/pkgconfig/libparted.pc
+%{_libdir}/pkgconfig/libparted*.pc
 
 %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
 - rebuilt with readline 6.3