]> git.proxmox.com Git - mirror_spl-debian.git/blobdiff - spl-modules.spec.in
Include distribution in release
[mirror_spl-debian.git] / spl-modules.spec.in
index ddeb2609d73e0c025c53f56d1f456f09fb587cea..9c632017157505cb40838b3f11e312e9d335a894 100644 (file)
@@ -178,9 +178,9 @@ Summary:         Solaris Porting Layer Modules
 Group:           Utilities/System
 Name:            %{name}
 Version:         %{version}
-Release:         %{release}
+Release:         %{release}%{?dist}
 License:         @LICENSE@
-URL:             git://eris.llnl.gov/spl.git
+URL:             git://github.com/zfsonlinux/spl.git
 BuildRoot:       %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id} -un)
 Source:          @PACKAGE@-%{version}.tar.gz
 %if %{defined krequires}
@@ -233,17 +233,6 @@ rm -rf $RPM_BUILD_ROOT
 %{_prefix}/src/*
 
 %post
-# The /sbin/genhostid utility writes a random value to the /etc/hostid
-# file, which means that using it here will break upgrades on systems
-# that already have spl installed.
-if [ ! -f /etc/hostid ]; then
-       HOSTID=$(hostid)
-       AA=$(echo $HOSTID | cut -b 1,2)
-       BB=$(echo $HOSTID | cut -b 3,4)
-       CC=$(echo $HOSTID | cut -b 5,6)
-       DD=$(echo $HOSTID | cut -b 7,8)
-       "$(which printf)" "\x$DD\x$CC\x$BB\x$AA" >"/etc/hostid"
-fi
 if [ -f /boot/System.map-%{kver} ]; then
        depmod -ae -F /boot/System.map-%{kver} %{kver} || exit 0
 else