bcache-tools/bcache-tools.spec

59 lines
1.7 KiB
RPMSpec

#
# spec file for package bcache-tools
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: bcache-tools
Summary: Configuration utilities for bcache
Version: 0.1.g45
#Snapshot: 42c182c6ab1530b5e3b18893f284da3eaec46e74
Release: 0
Group: System/Base
License: GPL-2.0
Url: http://bcache.evilpiepirate.org/
#Git-Clone: http://evilpiepirate.org/git/bcache-tools.git
Source: %name-%version.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: openssl-devel libuuid-devel xz
%description
This package contains utilities for configuring the bcache Module.
%prep
%setup -qn %name
%build
make all CFLAGS="%optflags" %{?_smp_mflags}
%install
b="%buildroot"
mkdir -p "$b"/{sbin,usr/sbin,usr/share/man/man8,lib/udev/rules.d}
mkdir -p "$b/etc/initramfs-tools/scripts/init-premount"
mkdir -p "$b/etc/initramfs-tools/hooks"
make install DESTDIR="$b"
rm -Rf "$b/etc/initramfs-tools"
%files
%defattr(-,root,root)
%_sbindir/make-bcache
/sbin/probe-bcache
%dir /lib/udev
%dir /lib/udev/rules.d
/lib/udev/rules.d/61-bcache.rules
%_mandir/man8/*.8*
%changelog