init package
This commit is contained in:
parent
3b2a438908
commit
6ff543fefb
BIN
bcrypt-1.1.tar.gz
Normal file
BIN
bcrypt-1.1.tar.gz
Normal file
Binary file not shown.
18
bcrypt-change-man-install-path.patch
Normal file
18
bcrypt-change-man-install-path.patch
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
diff -urN bcrypt-1.1-bak/Makefile bcrypt-1.1/Makefile
|
||||||
|
--- bcrypt-1.1-bak/Makefile 2020-05-02 00:14:58.032884533 +0800
|
||||||
|
+++ bcrypt-1.1/Makefile 2020-05-02 00:15:24.750378113 +0800
|
||||||
|
@@ -11,11 +11,11 @@
|
||||||
|
|
||||||
|
install: bcrypt Makefile
|
||||||
|
mkdir -p ${PREFIX}/bin;\
|
||||||
|
- mkdir -p ${PREFIX}/man/man1;\
|
||||||
|
+ mkdir -p ${PREFIX}/share/man/man1;\
|
||||||
|
cp bcrypt ${PREFIX}/bin;\
|
||||||
|
- cp bcrypt.1 ${PREFIX}/man/man1;\
|
||||||
|
+ cp bcrypt.1 ${PREFIX}/share/man/man1;\
|
||||||
|
chmod 755 ${PREFIX}/bin/bcrypt;\
|
||||||
|
- chmod 644 ${PREFIX}/man/man1/bcrypt.1
|
||||||
|
+ chmod 644 ${PREFIX}/share/man/man1/bcrypt.1
|
||||||
|
|
||||||
|
main.o: main.c ${DEFAULTS}
|
||||||
|
${COMPILE} -c main.c
|
||||||
44
bcrypt.spec
Normal file
44
bcrypt.spec
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
%global debug_package %{nil}
|
||||||
|
|
||||||
|
Name: bcrypt
|
||||||
|
Version: 1.1
|
||||||
|
Release: 1
|
||||||
|
Summary: Bcrypt is a cross platform file encryption utility
|
||||||
|
License: BSD
|
||||||
|
URL: http://bcrypt.sourceforge.net/
|
||||||
|
Source0: http://bcrypt.sourceforge.net/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
|
Patch0 : bcrypt-change-man-install-path.patch
|
||||||
|
|
||||||
|
BuildRequires: zlib-devel gcc
|
||||||
|
|
||||||
|
%description
|
||||||
|
Bcrypt is a cross platform file encryption utility. Encrypted files are portable across all supported operating systems and processors. Passphrases must be between 8 and 56 characters and are hashed internally to a 448 bit key. However, all characters supplied are significant. The stronger your passphrase, the more secure your data.
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{name}-%{version}/
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
%make_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%{__make} install PREFIX="%{buildroot}%{_prefix}"
|
||||||
|
|
||||||
|
%pre
|
||||||
|
%preun
|
||||||
|
%post
|
||||||
|
%postun
|
||||||
|
|
||||||
|
%check
|
||||||
|
|
||||||
|
%files
|
||||||
|
%license LICENSE
|
||||||
|
%{_bindir}/*
|
||||||
|
%{_mandir}/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Sun Mar 29 2020 Wei Xiong <myeuler@163.com>
|
||||||
|
- Package init
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user