|
 |
5efcb5c |
# Use development version which includes the license
|
|
 |
5efcb5c |
%global commit0 8c9b1112859c3a472055ed1123346b2cf9a512ff
|
|
 |
5efcb5c |
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
|
|
 |
5efcb5c |
%global date 20170222
|
|
 |
5efcb5c |
|
|
 |
5efcb5c |
Name: btrfs-heatmap
|
|
 |
5efcb5c |
Version: 5
|
|
 |
5efcb5c |
Release: 2.%{date}git%{shortcommit0}%{?dist}
|
|
 |
5efcb5c |
Summary: Visualize the layout of data on your btrfs filesystem over time
|
|
 |
5efcb5c |
|
|
 |
5efcb5c |
License: GPLv2
|
|
 |
5efcb5c |
URL: https://github.com/knorrie/btrfs-heatmap
|
|
 |
5efcb5c |
Source0: https://github.com/knorrie/%{name}/archive/%{commit0}.tar.gz#/%{name}-%{shortcommit0}.tar.gz
|
|
 |
5efcb5c |
|
|
 |
5efcb5c |
BuildArch: noarch
|
|
 |
5efcb5c |
Requires: python3-btrfs
|
|
 |
5efcb5c |
Suggests: %{name}-doc = %{version}-%{release}
|
|
 |
5efcb5c |
|
|
 |
5efcb5c |
%description
|
|
 |
5efcb5c |
The btrfs heatmap script creates a visualization of how a btrfs filesystem is
|
|
 |
5efcb5c |
utilizing the underlying disk space of the block devices that are added to it.
|
|
 |
5efcb5c |
|
|
 |
5efcb5c |
%package doc
|
|
 |
5efcb5c |
Summary: Documentation for %{name}
|
|
 |
5efcb5c |
|
|
 |
5efcb5c |
%description doc
|
|
 |
5efcb5c |
The btrfs heatmap script creates a visualization of how a btrfs filesystem is
|
|
 |
5efcb5c |
utilizing the underlying disk space of the block devices that are added to it.
|
|
 |
5efcb5c |
|
|
 |
5efcb5c |
This package contains the documentation.
|
|
 |
5efcb5c |
|
|
 |
5efcb5c |
%prep
|
|
 |
5efcb5c |
%autosetup -n %{name}-%{commit0}
|
|
 |
5efcb5c |
# Remove execution bit from doc
|
|
 |
5efcb5c |
find doc -type f -print0 | xargs -0 chmod 0644
|
|
 |
5efcb5c |
|
|
 |
5efcb5c |
%build
|
|
 |
5efcb5c |
|
|
 |
5efcb5c |
%install
|
|
 |
5efcb5c |
install -D -p -m 0755 heatmap.py %{buildroot}%{_bindir}/btrfs-heatmap
|
|
 |
5efcb5c |
|
|
 |
5efcb5c |
%files
|
|
 |
5efcb5c |
%license COPYING
|
|
 |
5efcb5c |
%{_bindir}/btrfs-heatmap
|
|
 |
5efcb5c |
|
|
 |
5efcb5c |
%files doc
|
|
 |
5efcb5c |
%doc README.md doc
|
|
 |
5efcb5c |
%license COPYING
|
|
 |
5efcb5c |
|
|
 |
5efcb5c |
%changelog
|
|
 |
5efcb5c |
* Mon Feb 20 2017 Juan Orti Alcaine <jorti@fedoraproject.org> - 5-2.20170222git8c9b111
|
|
 |
5efcb5c |
- Split doc in its own subpackage
|
|
 |
5efcb5c |
- Preserve timestamp when installing
|
|
 |
5efcb5c |
|
|
 |
5efcb5c |
* Mon Feb 20 2017 Juan Orti Alcaine <jorti@fedoraproject.org> - 5-1.20170222git8c9b111
|
|
 |
5efcb5c |
- Initial package
|