]> git.ipfire.org Git - ipfire-3.x.git/blobdiff - parted/parted.nm
binutils: Update to 2.32
[ipfire-3.x.git] / parted / parted.nm
index dda6e6104a7dd811d9a3e22a50eee2783006a8fd..a37b1f863efe9f340750399ba6165fc7d6bc7477 100644 (file)
@@ -4,8 +4,8 @@
 ###############################################################################
 
 name       = parted
-version    = 2.1
-release    = 2
+version    = 3.2
+release    = 1
 
 groups     = Applications/System
 url        = http://www.gnu.org/software/parted
@@ -19,35 +19,46 @@ description
        to new hard disks.
 end
 
-source_dl  =
+source_dl  = http://ftp.gnu.org/gnu/parted/
+sources    = %{thisapp}.tar.xz
 
 build
        requires
+               # Testsuite
+               /usr/sbin/mkswap
+               /usr/bin/udevadm
+
+               # Build dependencies
                libdevmapper-devel
-               libselinux-devel
-               libsepol-devel
                libuuid-devel
                ncurses-devel
                pkg-config
                readline-devel
        end
 
+       export LD_LIBRARY_PATH=%{DIR_APP}/libparted/.libs:%{DIR_APP}/libparted/fs/.libs
+
        configure_options += \
-               --libdir=/lib \
-               --enable-selinux
-
-       install_cmds
-               mkdir -pv %{BUILDROOT}/usr/lib
-               mv -v %{BUILDROOT}/lib/pkgconfig %{BUILDROOT}/usr/lib/
-               rm -rf %{BUILDROOT}/lib/libparted{,-2.1}.so
-               ln -svf ../../lib/libparted-%{version}.so.0 %{BUILDROOT}/usr/lib/libparted-%{version}.so
-               ln -svf libparted-%{version}.so %{BUILDROOT}/usr/lib/libparted.so
+               --disable-Werror
+
+       test
+               # Disable test because it needs a locale C.UTF-8.
+               sed -i '/t0251-gpt-unicode.sh/d' tests/Makefile
+
+               # Disable tests because they force to require loopback devices.
+               sed -i '/t6001-psep.sh/d' tests/Makefile
+               sed -i '/t6002-dm-busy.sh/d' tests/Makefile
+               sed -i '/t6003-dm-hide.sh/d' tests/Makefile
+               sed -i '/t6004-dm-many-partitions.sh/d' tests/Makefile
+               sed -i '/t6005-dm-uuid.sh/d' tests/Makefile
+
+               # Run testsuite.
+               make check
        end
 end
 
 packages
        package %{name}
-       end
 
        package %{name}-devel
                template DEVEL