]> git.ipfire.org Git - ipfire-3.x.git/blobdiff - parted/parted.nm
setup: Drop /etc/environment
[ipfire-3.x.git] / parted / parted.nm
index bfe7cdd8a4c528570da5c094343662d1b98833bb..a37b1f863efe9f340750399ba6165fc7d6bc7477 100644 (file)
@@ -4,8 +4,8 @@
 ###############################################################################
 
 name       = parted
-version    = 2.1
-release    = 3
+version    = 3.2
+release    = 1
 
 groups     = Applications/System
 url        = http://www.gnu.org/software/parted
@@ -19,30 +19,41 @@ 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 \
                --disable-Werror
 
-       install_cmds
-               mkdir -pv %{BUILDROOT}%{libdir}
-               mv -v %{BUILDROOT}/%{lib}/pkgconfig %{BUILDROOT}%{libdir}
-               rm -rf %{BUILDROOT}/%{lib}/libparted{,-2.1}.so
-               ln -svf ../../%{lib}/libparted-%{version}.so.0 %{BUILDROOT}%{libdir}/libparted-%{version}.so
-               ln -svf libparted-%{version}.so %{BUILDROOT}%{libdir}/libparted.so
+       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