~ubuntu-branches/ubuntu/wily/spl-linux/wily-proposed

« back to all changes in this revision

Viewing changes to rpm/generic/spl-dkms.spec.in

  • Committer: Package Import Robot
  • Author(s): Liang Guo
  • Date: 2014-07-31 15:16:53 UTC
  • Revision ID: package-import@ubuntu.com-20140731151653-tgao12alohj26jcs
Tags: upstream-0.6.3+git20140731
ImportĀ upstreamĀ versionĀ 0.6.3+git20140731

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
%{?!packager: %define packager Brian Behlendorf <behlendorf1@llnl.gov>}
 
2
 
1
3
%define module  @PACKAGE@
2
4
%define mkconf  scripts/dkms.mkconf
3
5
 
60
62
exit 1
61
63
 
62
64
%preun
63
 
dkms remove -m %{module} -v %{version} --all --rpm_safe_upgrade
 
65
# Only remove the modules if they are for this %{version}-%{release}.  A
 
66
# package upgrade can replace them if only the %{release} is changed.
 
67
RELEASE="/var/lib/dkms/%{module}/%{version}/build/%{module}.release"
 
68
if [ -f $RELEASE ] && [ `cat $RELEASE`%{?dist} = "%{version}-%{release}" ]; then
 
69
    echo -e
 
70
    echo -e "Uninstall of %{module} module (version %{version}) beginning:"
 
71
    dkms remove -m %{module} -v %{version} --all --rpm_safe_upgrade
 
72
fi
64
73
exit 0
65
74
 
66
75
%changelog
67
 
* Wed Aug 21 2013 Brian Behlendorf <behlendorf1@llnl.gov> - 0.6.2-1
68
 
- Released 0.6.2-1
69
 
* Fri Mar 22 2013 Brian Behlendorf <behlendorf1@llnl.gov> - 0.6.1-1
70
 
- First official stable release.
 
76
* %(date "+%a %b %d %Y") %packager %{version}-%{release}
 
77
- Automatic build by DKMS