From e6a44fcd23fbac27ba5f1fb35c403dce97370b2d Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 17 Feb 2025 08:36:42 +0000 Subject: automatic import of nosync --- nosync.spec | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 nosync.spec (limited to 'nosync.spec') diff --git a/nosync.spec b/nosync.spec new file mode 100644 index 0000000..36299bf --- /dev/null +++ b/nosync.spec @@ -0,0 +1,43 @@ +Name: nosync +Version: 1.1 +Release: 1 +Summary: Preload library for disabling file's content synchronization +License: ASL 2.0 +URL: http://github.com/kjn/%{name} +Source0: http://github.com/kjn/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz + +# Eliminate dependency on ELF constructor ordering +# Solves segfaults during buildroot population in mock with nosync +# enabled for builds with openssl +# "FIPS module installed state definition is modified" changes +# https://bugzilla.redhat.com/show_bug.cgi?id=1837809 +# https://github.com/kjn/nosync/pull/4 +Patch0: 4.patch + +BuildRequires: make +BuildRequires: gcc + +%description +nosync is a small preload library that can be used to disable +synchronization of file's content with storage devices on GNU/Linux. +It works by overriding implementations of certain standard functions +like fsync or open. + +%prep +%autosetup -p1 + +%build +make CFLAGS="%{optflags}" %{?_smp_mflags} + +%install +%makeinstall + +%files +%doc AUTHORS README.md +%{!?_licensedir:%global license %%doc} +%license LICENSE NOTICE +%{_libdir}/%{name} + +%changelog +* Fri Mar 24 2023 lichaoran - 1.1-1 +- Initial packaging -- cgit v1.2.3