2013-06-25 13:15:12 +02:00
|
|
|
#
|
|
|
|
# spec file for package bcache-tools
|
|
|
|
#
|
2019-08-22 22:02:19 +02:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-06-25 13:15:12 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-10-17 20:40:56 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-06-25 13:15:12 +02:00
|
|
|
#
|
|
|
|
|
2013-08-08 00:05:20 +02:00
|
|
|
|
2013-06-25 13:15:12 +02:00
|
|
|
Name: bcache-tools
|
|
|
|
Summary: Configuration utilities for bcache
|
2018-10-17 20:40:56 +02:00
|
|
|
License: GPL-2.0-only
|
2013-08-08 00:05:20 +02:00
|
|
|
Group: System/Base
|
2019-08-22 22:02:19 +02:00
|
|
|
Version: 1.0.8+suse5
|
2013-08-08 00:05:20 +02:00
|
|
|
Release: 0
|
2013-06-25 13:15:12 +02:00
|
|
|
Url: http://bcache.evilpiepirate.org/
|
|
|
|
|
|
|
|
#Git-Clone: http://evilpiepirate.org/git/bcache-tools.git
|
|
|
|
Source: %name-%version.tar.xz
|
2019-08-22 22:02:19 +02:00
|
|
|
Patch1: 1001-udev-do-not-rely-on-DRIVER-variable.patch
|
2014-04-04 10:13:50 +02:00
|
|
|
BuildRequires: libblkid-devel
|
2018-10-17 20:40:56 +02:00
|
|
|
BuildRequires: libsmartcols-devel
|
2013-08-08 00:05:20 +02:00
|
|
|
BuildRequires: libuuid-devel
|
2014-04-04 10:13:50 +02:00
|
|
|
BuildRequires: pkg-config
|
2013-08-08 00:05:20 +02:00
|
|
|
BuildRequires: xz
|
2013-06-25 13:15:12 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains utilities for configuring the bcache Module.
|
|
|
|
|
|
|
|
%prep
|
2019-08-22 22:02:19 +02:00
|
|
|
%autosetup -p1
|
2013-06-25 13:15:12 +02:00
|
|
|
|
|
|
|
%build
|
2014-04-04 10:13:50 +02:00
|
|
|
export SUSE_ASNEEDED=0
|
2018-10-17 20:40:56 +02:00
|
|
|
make all CFLAGS="%optflags $(pkg-config blkid uuid smartcols --cflags) -std=gnu99" \
|
|
|
|
LDFLAGS="$(pkg-config blkid uuid smartcols --libs)" %{?_smp_mflags}
|
2013-06-25 13:15:12 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
b="%buildroot"
|
2013-06-26 23:31:13 +02:00
|
|
|
# Without these existing, make install would fail
|
|
|
|
mkdir -p "$b"/{sbin,%_sbindir,%_mandir/man8,/lib/udev/rules.d}
|
|
|
|
mkdir -p "$b/%_sysconfdir/initramfs-tools/scripts/init-premount"
|
|
|
|
mkdir -p "$b/%_sysconfdir/initramfs-tools/hooks"
|
2015-03-27 22:32:25 +01:00
|
|
|
make install DESTDIR="$b" DRACUTLIBDIR="%_libexecdir/dracut"
|
|
|
|
# Not used in openSUSE
|
2015-03-28 23:29:51 +01:00
|
|
|
rm -Rf "$b/%_sysconfdir/initramfs-tools" "$b/%_prefix/lib/initcpio" \
|
2015-03-27 22:32:25 +01:00
|
|
|
"$b/%_datadir/initramfs-tools"
|
2013-08-08 00:11:42 +02:00
|
|
|
mkdir -p "$b/%_prefix/lib"
|
|
|
|
mv "$b/lib/udev" "$b/%_prefix/lib/"
|
2013-06-25 13:15:12 +02:00
|
|
|
|
|
|
|
%files
|
2013-08-08 00:11:42 +02:00
|
|
|
%_sbindir/bcache-super-show
|
2013-06-25 13:15:12 +02:00
|
|
|
%_sbindir/make-bcache
|
2018-10-17 20:40:56 +02:00
|
|
|
%_sbindir/bcache
|
2013-08-08 00:11:42 +02:00
|
|
|
%_prefix/lib/udev
|
2015-03-27 22:32:25 +01:00
|
|
|
%_libexecdir/dracut/
|
2013-06-25 13:15:12 +02:00
|
|
|
%_mandir/man8/*.8*
|
2019-08-22 22:02:19 +02:00
|
|
|
%license COPYING
|
2013-06-25 13:15:12 +02:00
|
|
|
|
|
|
|
%changelog
|