]>
Commit | Line | Data |
---|---|---|
2f49b442 ER |
1 | Summary: File encryption utility |
2 | Name: bcrypt | |
3 | Version: 1.1 | |
4 | Release: 1 | |
5 | License: BSD | |
6 | Group: Applications/File | |
7 | URL: http://bcrypt.sourceforge.net/ | |
8 | Source0: http://downloads.sourceforge.net/bcrypt/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: 8ce2873836ccd433329c8df0e37e298c | |
10 | BuildRequires: sed >= 4.0 | |
11 | BuildRequires: zlib-devel | |
12 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
13 | ||
14 | %description | |
15 | Bcrypt is a cross platform file encryption utility. Encrypted files | |
16 | are portable across all supported operating systems and processors. | |
17 | Passphrases must be between 8 and 56 characters and are hashed | |
18 | internally to a 448 bit key. However, all characters supplied are | |
19 | significant. The stronger your passphrase, the more secure your data. | |
20 | ||
21 | In addition to encrypting your data, bcrypt will by default overwrite | |
22 | the original input file with random garbage three times before | |
23 | deleting it in order to thwart data recovery attempts by persons who | |
24 | may gain access to your computer. Bcrypt uses the blowfish encryption | |
25 | algorithm published by Bruce Schneier in 1993. | |
26 | ||
27 | %prep | |
28 | %setup -q | |
29 | ||
30 | %{__sed} -i -e 's|\${PREFIX}/man/man1|\${PREFIX}/share/man/man1|g' Makefile | |
31 | ||
32 | %build | |
33 | %{__make} \ | |
34 | CC="%{__cc}" \ | |
35 | CFLAGS="%{optflags}" | |
36 | ||
37 | %install | |
38 | rm -rf $RPM_BUILD_ROOT | |
39 | %{__make} install \ | |
40 | PREFIX=$RPM_BUILD_ROOT%{_prefix} | |
41 | ||
42 | %clean | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
45 | %files | |
46 | %defattr(644,root,root,755) | |
47 | %doc LICENSE README | |
48 | %attr(755,root,root) %{_bindir}/bcrypt | |
49 | %{_mandir}/man1/bcrypt.1* |