###############################################################################
name = parted
-version = 2.1
-release = 2
+version = 3.2
+release = 1
groups = Applications/System
url = http://www.gnu.org/software/parted
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