]> git.pld-linux.org Git - SPECS.git/blob - safecat.spec
SPECS updated Sun 1 Aug 20:13:02 CEST 2021
[SPECS.git] / safecat.spec
1 Summary:        safecat: Write Data Safely to a Directory
2 Summary(pl.UTF-8):      safecat - bezpieczny zapis danych do katalogu
3 Name:           safecat
4 Version:        1.13
5 Release:        1
6 License:        BSD
7 Group:          Applications/File
8 Source0:        http://jeenyus.net/~budney/linux/software/safecat/%{name}-%{version}.tar.gz
9 # Source0-md5:  41f76b6c8c47f467556651855ea027a7
10 Patch0:         %{name}.patch
11 URL:            http://jeenyus.net/~budney/linux/software/safecat.html
12 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14 %description
15 safecat implements Dan Bernstein's maildir algorithm, copying standard
16 input safely to a specified directory. With safecat, the user is
17 offered two assurances. First, if safecat returns successfully, then
18 all data is guaranteed to be saved in the destination directory.
19 Second, if a file exists in the destination directory, placed there by
20 safecat, then the file is guaranteed to be complete.
21
22 %description -l pl.UTF-8
23 safecat implementuje algorytm maildir Dana Bernsteina kopiując
24 bezpiecznie dane ze standardowego wejścia do podanego katalogu.
25 Używając safecata użytkownik może być pewien dwóch rzeczy. Po
26 pierwsze, jeśli safecat zakończy działanie z sukcesem, gwarantowane
27 jest, że wszystkie dane zostały zapisane w katalogu docelowym. Po
28 drugie, jeśli plik został umieszczony w katalogu docelowym przez
29 safecata, gwarantowane jest, że plik jest kompletny.
30
31 %prep
32 %setup -q
33 %patch0 -p1
34
35 %build
36 echo '%{__cc} %{rpmcflags} -D_LARGEFILE64_SOURCE' > conf-cc
37 echo '%{__cc}' > conf-ld
38 echo '%{_prefix}' > conf-root
39 %{__make} -j1
40
41 %install
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
44
45 %{__make} setup \
46         DESTDIR=$RPM_BUILD_ROOT
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 %files
52 %defattr(644,root,root,755)
53 %doc CHANGES README
54 %attr(755,root,root) %{_bindir}/maildir
55 %attr(755,root,root) %{_bindir}/safecat
56 %{_mandir}/man1/maildir.1*
57 %{_mandir}/man1/safecat.1*
This page took 0.114013 seconds and 3 git commands to generate.