Группа :: Работа с файлами
Пакет: eatmydata
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define oname libeatmydata
%set_automake_version 1.11
Name: eatmydata
Version: 131
Release: alt1
Summary: A small wrapper to disable fsync and related functions
Group: File tools
License: GPLv3
Url: https://github.com/stewartsmith/libeatmydata
# Source-url: https://github.com/stewartsmith/libeatmydata/archive/refs/tags/v%version.tar.gz
Source: %name-%version.tar
Source3: eatmydata.1
Patch0: libeatmydata-82-alt-fix-packaging.patch
# Automatically added by buildreq on Fri May 25 2012
# optimized out: python-base python-modules
BuildRequires: python-modules-compiler python-modules-email
# buildreq works only on %%build stage
BuildRequires: strace
Provides: %oname = %version-%release
Obsoletes: %oname < %version-%release
%description
EatMyData is LD_PRELOAD library that disables all forms of writing data
safely to disk. fsync() becomes a NO-OP, O_SYNC is removed etc. The idea
is to use in testing to get faster test runs where real durability is
not required.
%prep
%setup
%patch0 -p2
%build
%autoreconf
%configure --disable-static
%make
%install
make install DESTDIR=%buildroot
mkdir -p %buildroot%_man1dir
cp %SOURCE3 %buildroot%_man1dir/
%__subst "s|.*dpkg-architecture.*||" %buildroot%_bindir/%name
%__subst "s|^shlib=.*|shlib=%_datadir/%oname/eatmydata.sh|" %buildroot%_bindir/%name
%check
make check
%files
%doc AUTHORS README.md COPYING
%_bindir/eatmydata
%dir %_datadir/%oname
%_datadir/%oname/eatmydata.sh
%_man1dir/eatmydata.1*
%_libdir/*.so*
%changelog
…
Полный changelog можно просмотреть здесь
%set_automake_version 1.11
Name: eatmydata
Version: 131
Release: alt1
Summary: A small wrapper to disable fsync and related functions
Group: File tools
License: GPLv3
Url: https://github.com/stewartsmith/libeatmydata
# Source-url: https://github.com/stewartsmith/libeatmydata/archive/refs/tags/v%version.tar.gz
Source: %name-%version.tar
Source3: eatmydata.1
Patch0: libeatmydata-82-alt-fix-packaging.patch
# Automatically added by buildreq on Fri May 25 2012
# optimized out: python-base python-modules
BuildRequires: python-modules-compiler python-modules-email
# buildreq works only on %%build stage
BuildRequires: strace
Provides: %oname = %version-%release
Obsoletes: %oname < %version-%release
%description
EatMyData is LD_PRELOAD library that disables all forms of writing data
safely to disk. fsync() becomes a NO-OP, O_SYNC is removed etc. The idea
is to use in testing to get faster test runs where real durability is
not required.
%prep
%setup
%patch0 -p2
%build
%autoreconf
%configure --disable-static
%make
%install
make install DESTDIR=%buildroot
mkdir -p %buildroot%_man1dir
cp %SOURCE3 %buildroot%_man1dir/
%__subst "s|.*dpkg-architecture.*||" %buildroot%_bindir/%name
%__subst "s|^shlib=.*|shlib=%_datadir/%oname/eatmydata.sh|" %buildroot%_bindir/%name
%check
make check
%files
%doc AUTHORS README.md COPYING
%_bindir/eatmydata
%dir %_datadir/%oname
%_datadir/%oname/eatmydata.sh
%_man1dir/eatmydata.1*
%_libdir/*.so*
%changelog
…
Полный changelog можно просмотреть здесь