]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blobdiff - dmraid/dmraid.nm
dmraid: Increase release number.
[people/amarx/ipfire-3.x.git] / dmraid / dmraid.nm
index 5b7e58b942e583fd3f0a40c2feaad79898085ddb..f3d6c31c125b9515a35b6c74733bdb7a8d2e8b76 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = dmraid
 version    = 1.0.0.rc15
-release    = 2
+release    = 5
 
 groups     = System/Filesystems
 url        = http://people.redhat.com/heinzm/sw/dmraid
@@ -30,35 +30,40 @@ build
        DIR_APP = %{DIR_SRC}/%{name}/%{version}
        PARALLELISMFLAGS = # Disabled
 
-       make_install_targets += sbindir=%{BUILDROOT}/sbin
+       make_install_targets += sbindir=%{BUILDROOT}%{sbindir}
 
        configure_options += \
-               --sbindir=/sbin \
-               --libdir=/lib \
                --disable-static \
                --disable-static_link \
                --enable-libselinux
 
+       # 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
 
        install_cmds
-               mkdir -pv %{BUILDROOT}/{,usr}/lib
-               install -v -m 755 lib/libdmraid.so \
-                       %{BUILDROOT}/lib/libdmraid.so.%{version}
-               ln -svf ../../lib/libdmraid.so.%{version} %{BUILDROOT}/usr/lib/libdmraid.so
-
                # Install development headers.
-               install -m 644 include/dmraid/*.h %{BUILDROOT}/usr/include/dmraid/
+               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}
-       end
-       
+
        package %{name}-devel
                template DEVEL
        end
+
+       package %{name}-debuginfo
+               template DEBUGINFO
+       end
 end