diff --git a/bcrypt-1.1.tar.gz b/bcrypt-1.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..2944b2f976e20f11cc65537e3f31aa3fa30874d4 Binary files /dev/null and b/bcrypt-1.1.tar.gz differ diff --git a/bcrypt-change-man-install-path.patch b/bcrypt-change-man-install-path.patch new file mode 100644 index 0000000000000000000000000000000000000000..7971983949e843ed18214cc10d16fefddb0abe9c --- /dev/null +++ b/bcrypt-change-man-install-path.patch @@ -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 diff --git a/bcrypt.spec b/bcrypt.spec new file mode 100644 index 0000000000000000000000000000000000000000..ae496df5ad7c576e05070224b712fd0f7cdf3fe7 --- /dev/null +++ b/bcrypt.spec @@ -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 +- Package init +