LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File zvol-user-access.spec of Package zvol-udisk-ignore (Project home:Warhammer40k:zfs)

#
# spec file for custom package virtualbox-custom
#

%if %( echo `rpm -q --queryformat %%{version} udev` ) > 190
%define _udevrulesdir /usr/lib/udev/rules.d
%else
%define _udevrulesdir /lib/udev/rules.d
%endif

Name:           zvol-udisk-ignore
BuildRequires:  udev
Version:        1.0
Release:        0
Summary:        Hide zvol disks and partitions in desktop applications
License:        GPL-2.0+
Group:          System/Filesystems
Url:            http://example.org
Source0:        98-zvol-udisk-ignore.rules
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
This package include udev rules that tells udisk not to show zvol disks and partitions

%prep

%build

%install
%__install -D -m 644 %{S:0} %{buildroot}%{_udevrulesdir}/98-zvol-udisk-ignore.rules

%clean
[ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}"

%files
%defattr(-, root, root)
%{_udevrulesdir}/98-zvol-udisk-ignore.rules

%changelog
* Wed Jul 8 2015 fwdsbs.to.11df@xoxy.net
- package created