summaryrefslogtreecommitdiff
path: root/packaging/fsync.spec
blob: ceb108a32d17b6f3a3b4665f4b7eb62aff36cb50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# RPM specfile for the fsync package
# Copyright 2009 Parliament Hill Computers Ltd, all rights reserved.
# Author: ADDW September 2009
# SCCS: @(#)fsync.spec	1.1 11/14/11 22:48:57
# Note that the version number (1.1 - SCCS %-I-% (sans -)) of this file defines the package version #. It is used in the Makefile.

Summary: synchronize file's in-core state with storage device
Name: fsync
Version: 1.1
Release: 1
Source: http://www.phcomp.co.uk/Downloads/fsync-%{version}.tar.gz
Source1001: %{name}.manifest
License: GPL
Group: Applications/System
BuildRequires: autoconf

%description
If system service is interrupted at the wrong moment (eg crash or power fail)
what is in the filesystem on reboot might inconsistent. This is especially
true with files in the process of being updated; eg where a modified copy of a
file is created that is then renamed over the original.
Flushing blocks to disk can help to avoid problems.
This is a command line interface to the fsync(2) and fdatasync(2) system calls.

%prep
%setup -q

%build
cp %{SOURCE1001} .
autoconf
%configure
make

%install
make DESTDIR=$RPM_BUILD_ROOT%{_prefix} VERSION=%{version} install

%remove_docs
%files
%manifest %{name}.manifest
%defattr(-,root,root)
%manifest %{name}.manifest
%{_bindir}/fsync
%doc License