diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c547143 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/compsize-1.1.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 4674aa2..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# compsize - -The compsize package \ No newline at end of file diff --git a/compsize.spec b/compsize.spec new file mode 100644 index 0000000..621b7f7 --- /dev/null +++ b/compsize.spec @@ -0,0 +1,37 @@ +Name: compsize +Version: 1.1 +Release: 1%{?dist} +Summary: Utility for measuring compression ratio of files on btrfs +License: GPLv2+ +URL: https://github.com/kilobyte/compsize +Source: https://github.com/kilobyte/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz +BuildRequires: gcc +BuildRequires: btrfs-progs-devel + +%description +compsize takes a list of files (given as arguments) on a btrfs filesystem and +measures used compression types and effective compression ratio, producing +a report. + +%prep +%autosetup + +%build +export CFLAGS="%{optflags}" +export CXXFLAGS="%{optflags}" +export LDFLAGS="%{__global_ldflags}" +%make_build + +%install +install -D -m 0755 %{name} %{buildroot}%{_bindir}/%{name} +install -D -m 0644 %{name}.8 %{buildroot}%{_mandir}/man8/%{name}.8 + +%files +%doc README.md +%license LICENSE +%{_bindir}/%{name} +%{_mandir}/man8/%{name}.8* + +%changelog +* Fri Mar 23 2018 Juan Orti Alcaine - 1.1-1 +- Initial release diff --git a/sources b/sources new file mode 100644 index 0000000..e900c39 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (compsize-1.1.tar.gz) = 1c7de5156b695ffa4be9b634fd6224214d3de1653eb23e5d85b250e27146fe655883bed17ed458bae1b448ed9ae8a254d2a673fdb3860e69c99f8676daea0d8b