-###############################################################################
-# IPFire.org - An Open Source Firewall Solution #
-# Copyright (C) - IPFire Development Team <info@ipfire.org> #
-###############################################################################
-
-name = dmraid
-version = 1.0.0.rc16
-release = 1
-
-groups = System/Filesystems
-url = http://people.redhat.com/heinzm/sw/dmraid
-license = GPLv2+
-summary = Device-mapper RAID tool and library.
-
-description
- DMRAID supports RAID device discovery, RAID set activation, creation,
- removal, rebuild and display of properties for ATARAID/DDF1 metadata on
- Linux >= 2.4 using device-mapper.
-end
-
-source_dl = http://people.redhat.com/heinzm/sw/dmraid/src/old/
-sources = %{thisapp}.tar.bz2
-
-build
- requires
- libdevmapper-devel >= 2.02.166
- end
-
- DIR_APP = %{DIR_SRC}/%{name}/%{version}
- PARALLELISMFLAGS = # Disabled
-
- make_install_targets += sbindir=%{BUILDROOT}%{sbindir}
-
- configure_options += \
- --disable-static \
- --disable-static_link
-
- # Dmraid doesn't automatically build and install a versioned library
- # so we do it on or own.
- build_cmds
- make -C lib libdmraid.so
- end
-
- test
- # Package does not offer any kind of testsuite.
- end
-
- install_cmds
- # Install development headers.
- mkdir -pv %{BUILDROOT}%{includedir}/dmraid
- install -m 644 include/dmraid/*.h %{BUILDROOT}%{includedir}/dmraid/
-
- # Manually install versioned library and create symlinks.
- mkdir -pv %{BUILDROOT}%{libdir}
- install -m 755 lib/libdmraid.so %{BUILDROOT}%{libdir}/libdmraid.so.%{version}
- ln -sv libdmraid.so.%{version} %{BUILDROOT}%{libdir}/libdmraid.so.1
- ln -sv libdmraid.so.%{version} %{BUILDROOT}%{libdir}/libdmraid.so
- end
-end
-
-packages
- package %{name}
-
- package %{name}-devel
- template DEVEL
- end
-
- package %{name}-debuginfo
- template DEBUGINFO
- end
-end