File e4rat.spec of Package e4rat

#
# spec file for package inklingreader
#

Name:           e4rat
Version:        git
Release:        0
Summary:        Reduce disk access time on ext4 filesystems through relevant file defragmentation.
License:        GPL-3.0-only
#Group:          Productivity/Text/Utilities
#URL:            https://github.com/
Source0:        %name-git.tar.xz
BuildRequires:  cmake
BuildRequires:  make
BuildRequires:  gcc-c++
BuildRequires:  boost-devel
BuildRequires:  libboost_system-devel
BuildRequires:  libboost_filesystem-devel
BuildRequires:  libboost_regex-devel
BuildRequires:  libboost_thread-devel
BuildRequires:  libext2fs-devel
BuildRequires:  libblkid-devel
BuildRequires:  audit-devel

%description
Reduce disk access time on ext4 filesystems through relevant file defragmentation.

%prep
%autosetup

%build
cmake . -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_PREFIX=%{_prefix} -DBUILD_CORE_LIBRARY_STATIC=true
%make_build

%install
%make_install

%files
%config /etc/e4rat.conf
%{_sbindir}/e4rat-collect
%{_sbindir}/e4rat-preload
%{_sbindir}/e4rat-realloc
%dir /var/lib/e4rat
%{_mandir}/man8/e4rat-collect.8%{?ext_man}
%{_mandir}/man8/e4rat-preload.8%{?ext_man}
%{_mandir}/man8/e4rat-realloc.8%{?ext_man}
%{_mandir}/man5/e4rat.conf.5%{?ext_man}
%dir %{_sbindir}
%dir %{_prefix}/share
%dir %{_mandir}
%dir %{_mandir}/man5
%dir %{_mandir}/man8

%postun
ldconfig
%post
ldconfig

%changelog
openSUSE Build Service is sponsored by