Mageia Bugzilla – Attachment 7245 Details for
Bug 17245
OpenZFS - the native Linux kernel port of the ZFS filesystem
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
spl-dkms
spl-dkms.spec (text/x-rpm-spec), 2.11 KB, created by
Domini Montessori
on 2015-11-28 12:26:43 CET
(
hide
)
Description:
spl-dkms
Filename:
MIME Type:
Creator:
Domini Montessori
Created:
2015-11-28 12:26:43 CET
Size:
2.11 KB
patch
obsolete
>%{?!packager: %define packager Brian Behlendorf <behlendorf1@llnl.gov>} > >%define module spl >%define mkconf scripts/dkms.mkconf > >Name: %{module}-dkms > >Version: 0.6.5 >Release: 11_ge7b75d9%{?dist} >Summary: Kernel module(s) (dkms) > >Group: System Environment/Kernel >License: GPLv2+ >URL: http://zfsonlinux.org/ >Source0: %{module}-%{version}.tar.gz >BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) >BuildArch: noarch > >Requires: dkms >= 2.2.0.2 >Requires: gcc, make, perl >Requires: kernel-devel >Provides: %{module}-kmod = %{version} > >%description >This package contains the dkms kernel modules required to emulate >several interfaces provided by the Solaris kernel. > >%prep >%setup -q -n %{module}-%{version} > >%build >%{mkconf} -n %{module} -v %{version} -f dkms.conf > >%install >if [ "$RPM_BUILD_ROOT" != "/" ]; then > rm -rf $RPM_BUILD_ROOT >fi >mkdir -p $RPM_BUILD_ROOT/usr/src/ >cp -rf ${RPM_BUILD_DIR}/%{module}-%{version} $RPM_BUILD_ROOT/usr/src/ > >%clean >if [ "$RPM_BUILD_ROOT" != "/" ]; then > rm -rf $RPM_BUILD_ROOT >fi > >%files >%defattr(-,root,root) >/usr/src/%{module}-%{version} > >%post >for POSTINST in /usr/lib/dkms/common.postinst; do > if [ -f $POSTINST ]; then > $POSTINST %{module} %{version} > exit $? > fi > echo "WARNING: $POSTINST does not exist." >done >echo -e "ERROR: DKMS version is too old and %{module} was not" >echo -e "built with legacy DKMS support." >echo -e "You must either rebuild %{module} with legacy postinst" >echo -e "support or upgrade DKMS to a more current version." >exit 1 > >%preun >CONFIG_H="/var/lib/dkms/%{module}/%{version}/*/*/%{module}_config.h" >SPEC_META_ALIAS="spl-0.6.5-11_ge7b75d9" >DKMS_META_ALIAS=`cat $CONFIG_H 2>/dev/null | > awk -F'"' '/META_ALIAS/ { print $2; exit 0 }'` >if [ "$SPEC_META_ALIAS" = "$DKMS_META_ALIAS" ]; then > echo -e > echo -e "Uninstall of %{module} module ($SPEC_META_ALIAS) beginning:" > dkms remove -m %{module} -v %{version} --all --rpm_safe_upgrade >fi >exit 0 > >%changelog >* %(date "+%a %b %d %Y") %packager %{version}-%{release} >- Automatic build by DKMS
%{?!packager: %define packager Brian Behlendorf <behlendorf1@llnl.gov>} %define module spl %define mkconf scripts/dkms.mkconf Name: %{module}-dkms Version: 0.6.5 Release: 11_ge7b75d9%{?dist} Summary: Kernel module(s) (dkms) Group: System Environment/Kernel License: GPLv2+ URL: http://zfsonlinux.org/ Source0: %{module}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Requires: dkms >= 2.2.0.2 Requires: gcc, make, perl Requires: kernel-devel Provides: %{module}-kmod = %{version} %description This package contains the dkms kernel modules required to emulate several interfaces provided by the Solaris kernel. %prep %setup -q -n %{module}-%{version} %build %{mkconf} -n %{module} -v %{version} -f dkms.conf %install if [ "$RPM_BUILD_ROOT" != "/" ]; then rm -rf $RPM_BUILD_ROOT fi mkdir -p $RPM_BUILD_ROOT/usr/src/ cp -rf ${RPM_BUILD_DIR}/%{module}-%{version} $RPM_BUILD_ROOT/usr/src/ %clean if [ "$RPM_BUILD_ROOT" != "/" ]; then rm -rf $RPM_BUILD_ROOT fi %files %defattr(-,root,root) /usr/src/%{module}-%{version} %post for POSTINST in /usr/lib/dkms/common.postinst; do if [ -f $POSTINST ]; then $POSTINST %{module} %{version} exit $? fi echo "WARNING: $POSTINST does not exist." done echo -e "ERROR: DKMS version is too old and %{module} was not" echo -e "built with legacy DKMS support." echo -e "You must either rebuild %{module} with legacy postinst" echo -e "support or upgrade DKMS to a more current version." exit 1 %preun CONFIG_H="/var/lib/dkms/%{module}/%{version}/*/*/%{module}_config.h" SPEC_META_ALIAS="spl-0.6.5-11_ge7b75d9" DKMS_META_ALIAS=`cat $CONFIG_H 2>/dev/null | awk -F'"' '/META_ALIAS/ { print $2; exit 0 }'` if [ "$SPEC_META_ALIAS" = "$DKMS_META_ALIAS" ]; then echo -e echo -e "Uninstall of %{module} module ($SPEC_META_ALIAS) beginning:" dkms remove -m %{module} -v %{version} --all --rpm_safe_upgrade fi exit 0 %changelog * %(date "+%a %b %d %Y") %packager %{version}-%{release} - Automatic build by DKMS
View Attachment As Raw
Actions:
View
Attachments on
bug 17245
:
7244
| 7245 |
7246
|
7247
|
7248
|
7249