|
Rolf Fokkens |
64697ee |
%global gitdate 20131018
|
|
Rolf Fokkens |
a22525a |
|
|
Rolf Fokkens |
a22525a |
Summary: Tools for Linux kernel block layer cache
|
|
Rolf Fokkens |
a22525a |
Name: bcache-tools
|
|
Rolf Fokkens |
a22525a |
Version: 0
|
|
Rolf Fokkens |
af494d6 |
Release: 0.16.%{gitdate}git%{?dist}
|
|
Rolf Fokkens |
a22525a |
License: GPLv2
|
|
Rolf Fokkens |
a22525a |
Group: System Environment/Base
|
|
Rolf Fokkens |
a22525a |
URL: http://bcache.evilpiepirate.org/
|
|
Rolf Fokkens |
a22525a |
VCS: http://evilpiepirate.org/git/bcache-tools.git
|
|
Rolf Fokkens |
a22525a |
# For now I am using a prerelease version obtained by:
|
|
Rolf Fokkens |
a22525a |
# git clone http://evilpiepirate.org/git/bcache-tools.git
|
|
Rolf Fokkens |
a22525a |
# cd bcache-tools/
|
|
Rolf Fokkens |
64697ee |
# git archive --format=tar --prefix=bcache-tools-20131018/ 89f11b135d1d57a5dbdc3548bfb9bfa0113075c4 | gzip > ../bcache-tools-20131018.tar.gz
|
|
Rolf Fokkens |
6379c9c |
Source0: %{name}-%{gitdate}.tar.gz
|
|
Rolf Fokkens |
a22525a |
# This part is also a prerelease version obtained by https://gist.github.com/djwong/6343451:
|
|
Rolf Fokkens |
a22525a |
# git clone https://gist.github.com/6343451.git
|
|
Rolf Fokkens |
a22525a |
# cd 6343451/
|
|
Rolf Fokkens |
af494d6 |
# git archive --format=tar --prefix=bcache-status-20140220/ 6d278f9886ab5f64bd896080b1b543ba7ef6c7a6 | gzip > ../bcache-status-20140220.tar.gz
|
|
Rolf Fokkens |
a22525a |
# see also http://article.gmane.org/gmane.linux.kernel.bcache.devel/1951
|
|
Rolf Fokkens |
af494d6 |
Source1: bcache-status-20140220.tar.gz
|
|
Rolf Fokkens |
6379c9c |
# The dracut module originally resided in dracut, but it's now part of
|
|
Rolf Fokkens |
6379c9c |
# bcache-tools
|
|
Rolf Fokkens |
6379c9c |
Source2: bcache-tools-dracut-module.tgz
|
|
Rolf Fokkens |
64697ee |
# bcache status not provided as a true package, so this is a self maintained
|
|
Rolf Fokkens |
64697ee |
# man page for it
|
|
Rolf Fokkens |
a22525a |
# http://article.gmane.org/gmane.linux.kernel.bcache.devel/1946
|
|
Rolf Fokkens |
a22525a |
Patch0: %{name}-status-20130826-man.patch
|
|
Rolf Fokkens |
64697ee |
# Skip DM devices marked private - will be in git repo later
|
|
Rolf Fokkens |
64697ee |
# https://github.com/g2p/bcache-tools/commit/15f17ed3e9a8dbe44a0e60cd981f70b7a61d6f7a
|
|
Rolf Fokkens |
64697ee |
Patch1: %{name}-20131018-udev-dmfix.patch
|
|
Rolf Fokkens |
64697ee |
# configure is not "Fedora compliant", do a small step in the
|
|
Rolf Fokkens |
a22525a |
# right direction
|
|
Rolf Fokkens |
64697ee |
Patch2: %{name}-20131018-fedconf.patch
|
|
Rolf Fokkens |
64697ee |
# util-linux takes care of bcache superblock identification so we remove
|
|
Rolf Fokkens |
64697ee |
# the probe-cache call (which is Fedora specific):
|
|
Rolf Fokkens |
64697ee |
Patch3: %{name}-20131018-noprobe.patch
|
|
Rolf Fokkens |
a22525a |
|
|
Rolf Fokkens |
a22525a |
Requires: python
|
|
Rolf Fokkens |
967538d |
# This is a kind of soft dependency: because we don't include probe-bcache
|
|
Rolf Fokkens |
967538d |
# we have to make sure that libblkid is able to identify bcache. So this
|
|
Rolf Fokkens |
967538d |
# is why it requires recent libblkid.
|
|
Rolf Fokkens |
967538d |
Requires: libblkid >= 2.24
|
|
Rolf Fokkens |
6379c9c |
Conflicts: dracut < 034
|
|
Rolf Fokkens |
cbdf1ac |
BuildRequires: libuuid-devel libblkid-devel systemd
|
|
Rolf Fokkens |
a22525a |
|
|
Rolf Fokkens |
a22525a |
%description
|
|
Rolf Fokkens |
a22525a |
Bcache is a Linux kernel block layer cache. It allows one or more fast disk
|
|
Rolf Fokkens |
a22525a |
drives such as flash-based solid state drives (SSDs) to act as a cache for
|
|
Rolf Fokkens |
a22525a |
one or more slower hard disk drives.
|
|
Rolf Fokkens |
a22525a |
This package contains the utilities for manipulating bcache.
|
|
Rolf Fokkens |
a22525a |
|
|
Rolf Fokkens |
a22525a |
%global _udevlibdir %{_prefix}/lib/udev
|
|
Rolf Fokkens |
6379c9c |
%global dracutlibdir %{_prefix}/lib/dracut
|
|
Rolf Fokkens |
a22525a |
|
|
Rolf Fokkens |
a22525a |
%prep
|
|
Rolf Fokkens |
a22525a |
%setup -q -n bcache-tools-%{gitdate}
|
|
Rolf Fokkens |
a22525a |
tar xzf %{SOURCE1} --strip-components=1
|
|
Rolf Fokkens |
6379c9c |
tar xzf %{SOURCE2}
|
|
Rolf Fokkens |
a22525a |
%patch0 -p1 -b .man
|
|
Rolf Fokkens |
64697ee |
%patch1 -p1 -b .dmfix
|
|
Rolf Fokkens |
967538d |
%patch2 -p1 -b .fedconfmake
|
|
Rolf Fokkens |
a22525a |
chmod +x configure
|
|
Rolf Fokkens |
64697ee |
%patch3 -p1 -b .noprobe
|
|
Rolf Fokkens |
a22525a |
|
|
Rolf Fokkens |
a22525a |
%build
|
|
Rolf Fokkens |
a22525a |
%configure
|
|
Rolf Fokkens |
a22525a |
make %{?_smp_mflags}
|
|
Rolf Fokkens |
a22525a |
|
|
Rolf Fokkens |
a22525a |
%install
|
|
Rolf Fokkens |
a22525a |
mkdir -p \
|
|
Rolf Fokkens |
a22525a |
%{buildroot}%{_sbindir} \
|
|
Rolf Fokkens |
a22525a |
%{buildroot}%{_mandir}/man8 \
|
|
Rolf Fokkens |
a22525a |
%{buildroot}%{_udevlibdir} \
|
|
Rolf Fokkens |
6379c9c |
%{buildroot}%{_udevrulesdir} \
|
|
Rolf Fokkens |
6379c9c |
%{buildroot}%{dracutlibdir}/modules.d
|
|
Rolf Fokkens |
a22525a |
|
|
Rolf Fokkens |
a22525a |
%make_install \
|
|
Rolf Fokkens |
64697ee |
INSTALL="install -p" \
|
|
Rolf Fokkens |
a22525a |
UDEVLIBDIR=%{_udevlibdir} \
|
|
Rolf Fokkens |
6379c9c |
DRACUTLIBDIR=%{dracutlibdir} \
|
|
Rolf Fokkens |
a22525a |
MANDIR=%{_mandir}
|
|
Rolf Fokkens |
a22525a |
|
|
Rolf Fokkens |
967538d |
# prevent complaints when checking for unpackaged files
|
|
Rolf Fokkens |
64697ee |
rm %{buildroot}%{_udevlibdir}/probe-bcache
|
|
Rolf Fokkens |
967538d |
rm %{buildroot}%{_mandir}/man8/probe-bcache.8
|
|
Rolf Fokkens |
6379c9c |
|
|
Rolf Fokkens |
a22525a |
install -p -m 755 bcache-status %{buildroot}%{_sbindir}/bcache-status
|
|
Rolf Fokkens |
a22525a |
|
|
Rolf Fokkens |
a22525a |
%files
|
|
Rolf Fokkens |
a22525a |
%doc README COPYING
|
|
Rolf Fokkens |
a22525a |
%{_udevrulesdir}/*
|
|
Rolf Fokkens |
a22525a |
%{_mandir}/man8/*
|
|
Rolf Fokkens |
a22525a |
%{_udevlibdir}/bcache-register
|
|
Rolf Fokkens |
a22525a |
%{_sbindir}/bcache-super-show
|
|
Rolf Fokkens |
a22525a |
%{_sbindir}/bcache-status
|
|
Rolf Fokkens |
a22525a |
%{_sbindir}/make-bcache
|
|
Rolf Fokkens |
6379c9c |
%{dracutlibdir}/modules.d/90bcache
|
|
Rolf Fokkens |
a22525a |
|
|
Rolf Fokkens |
a22525a |
%changelog
|
|
Rolf Fokkens |
af494d6 |
* Thu Feb 20 2014 Rolf Fokkens <rolf@rolffokkens.nl> - 0-0.16.20131018git
|
|
Rolf Fokkens |
af494d6 |
- (#1066555) updated bcache-status to latest upstream gist
|
|
Rolf Fokkens |
af494d6 |
|
|
Rolf Fokkens |
64697ee |
* Fri Oct 18 2013 Rolf Fokkens <rolf@rolffokkens.nl> - 0-0.15.20131018git
|
|
Rolf Fokkens |
64697ee |
- updated bcache-tools to latest upstream git
|
|
Rolf Fokkens |
64697ee |
- dracut module is now included upstream
|
|
Rolf Fokkens |
64697ee |
- bcache-register no longer needs patching
|
|
Rolf Fokkens |
64697ee |
- Makefile no longer needs patching
|
|
Rolf Fokkens |
64697ee |
|
|
Rolf Fokkens |
64697ee |
* Wed Oct 02 2013 Rolf Fokkens <rolf@rolffokkens.nl> - 0-0.14.20130909git
|
|
Rolf Fokkens |
6379c9c |
- dropped pre F20 support; no use since deps on util-linux and dracut
|
|
Rolf Fokkens |
6379c9c |
- (#1004693) removed execute blkid in 61-bcache.rules
|
|
Rolf Fokkens |
6379c9c |
- (#1004693) moved 61-bcache.rules to 69-bcache.rules
|
|
Rolf Fokkens |
6379c9c |
- (#1004693) now inluding /usr/lib/dracut/modules.d/90bcache/...
|
|
Rolf Fokkens |
6379c9c |
|
|
Rolf Fokkens |
e70d674 |
* Mon Sep 30 2013 Rolf Fokkens <rolf@rolffokkens.nl> - 0-0.13.20130909git
|
|
Rolf Fokkens |
e70d674 |
- (#1004693) add execute blkid in 61-bcache.rules
|
|
Rolf Fokkens |
e70d674 |
|
|
Rolf Fokkens |
967538d |
* Fri Sep 27 2013 Rolf Fokkens <rolf@rolffokkens.nl> - 0-0.12.20130909git
|
|
Rolf Fokkens |
e70d674 |
- remove obsoleted probe-bcache in F20 using use_blkid macro
|
|
Rolf Fokkens |
967538d |
|
|
Rolf Fokkens |
cbdf1ac |
* Mon Sep 09 2013 Rolf Fokkens <rolf@rolffokkens.nl> - 0-0.11.20130909git
|
|
Rolf Fokkens |
cbdf1ac |
- updated to new bcache-status
|
|
Rolf Fokkens |
cbdf1ac |
- updated to new bcache-tools
|
|
Rolf Fokkens |
cbdf1ac |
- added libblkid-devel to BuildRequires
|
|
Rolf Fokkens |
cbdf1ac |
|
|
Rolf Fokkens |
ebd08ae |
* Fri Sep 06 2013 Rolf Fokkens <rolf@rolffokkens.nl> - 0-0.10.20130827git
|
|
Rolf Fokkens |
ebd08ae |
- fixed some udev related issues (#1004693)
|
|
Rolf Fokkens |
ebd08ae |
|
|
Rolf Fokkens |
a22525a |
* Mon Sep 02 2013 Rolf Fokkens <rolf@rolffokkens.nl> - 0-0.9.20130827git
|
|
Rolf Fokkens |
a22525a |
- fedconfmake.spec file renamed to fedconfmake.patch
|
|
Rolf Fokkens |
a22525a |
- removed libuuid as dependency
|
|
Rolf Fokkens |
a22525a |
- removed trailing white-spaces in patch lines
|
|
Rolf Fokkens |
a22525a |
- removed CFLAGS= from configure section
|
|
Rolf Fokkens |
a22525a |
- removed (empty) check section
|
|
Rolf Fokkens |
a22525a |
- replaced "make install" with make_install macro
|
|
Rolf Fokkens |
a22525a |
- updated summary
|
|
Rolf Fokkens |
a22525a |
|
|
Rolf Fokkens |
a22525a |
* Sat Aug 31 2013 Rolf Fokkens <rolf@rolffokkens.nl> - 0-0.8.20130827git
|
|
Rolf Fokkens |
a22525a |
- updated bcache-tools to commit 8327108eeaf3e0491b17d803da164c0827aae622
|
|
Rolf Fokkens |
a22525a |
- corrected URL/VCS tag
|
|
Rolf Fokkens |
a22525a |
- moved towards more RPM compliancy by using configure macro
|
|
Rolf Fokkens |
a22525a |
- used "make install" to do most of the work
|
|
Rolf Fokkens |
a22525a |
- added (empty) check section
|
|
Rolf Fokkens |
a22525a |
|
|
Rolf Fokkens |
a22525a |
* Mon Aug 26 2013 Rolf Fokkens <rolf@rolffokkens.nl> - 0-0.7.20130820git
|
|
Rolf Fokkens |
a22525a |
- updated bcache-status to latest upstream gist
|
|
Rolf Fokkens |
a22525a |
- removed the -rules patch
|
|
Rolf Fokkens |
a22525a |
|
|
Rolf Fokkens |
a22525a |
* Mon Aug 26 2013 Rolf Fokkens <rolf@rolffokkens.nl> - 0-0.6.20130820git
|
|
Rolf Fokkens |
a22525a |
- removed tar and gcc from BuildRequires
|
|
Rolf Fokkens |
a22525a |
- removed defattr from files section
|
|
Rolf Fokkens |
a22525a |
- added upstream references to patches in comments
|
|
Rolf Fokkens |
a22525a |
|
|
Rolf Fokkens |
a22525a |
* Sun Aug 25 2013 Rolf Fokkens <rolf@rolffokkens.nl> - 0-0.5.20130820git
|
|
Rolf Fokkens |
a22525a |
- moved bcache-register to /usr/lib/udev
|
|
Rolf Fokkens |
a22525a |
- suppress bcache-register error output (caused by registering device twice)
|
|
Rolf Fokkens |
a22525a |
- removed man page for bcache-register
|
|
Rolf Fokkens |
a22525a |
- added bcache-status
|
|
Rolf Fokkens |
a22525a |
- added tar and gcc to BuildRequires
|
|
Rolf Fokkens |
a22525a |
- added python to Requires
|
|
Rolf Fokkens |
a22525a |
|
|
Rolf Fokkens |
a22525a |
* Sat Aug 24 2013 Rolf Fokkens <rolf@rolffokkens.nl> - 0-0.4.20130820git
|
|
Rolf Fokkens |
a22525a |
- Fixed the udev rules for Fedora
|
|
Rolf Fokkens |
a22525a |
|
|
Rolf Fokkens |
a22525a |
* Thu Aug 22 2013 Rolf Fokkens <rolf@rolffokkens.nl> - 0-0.3.20130820git
|
|
Rolf Fokkens |
a22525a |
- Added systemd to BuildRequires
|
|
Rolf Fokkens |
a22525a |
|
|
Rolf Fokkens |
a22525a |
* Thu Aug 22 2013 Rolf Fokkens <rolf@rolffokkens.nl> - 0-0.2.20130820git
|
|
Rolf Fokkens |
a22525a |
- Fixed initial review feedback
|
|
Rolf Fokkens |
a22525a |
|
|
Rolf Fokkens |
a22525a |
* Tue Aug 20 2013 Rolf Fokkens <rolf@rolffokkens.nl> - 0-0.1.20130820git
|
|
Rolf Fokkens |
a22525a |
- Initial build
|