diff --git a/4.3.0.tar.gz b/4.3.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..8a8f3e6a10ad80630bb592439465f4d615e32343 Binary files /dev/null and b/4.3.0.tar.gz differ diff --git a/bcrypt-1.1.tar.gz b/bcrypt-1.1.tar.gz deleted file mode 100644 index 2944b2f976e20f11cc65537e3f31aa3fa30874d4..0000000000000000000000000000000000000000 Binary files a/bcrypt-1.1.tar.gz and /dev/null differ diff --git a/bcrypt-change-man-install-path.patch b/bcrypt-change-man-install-path.patch deleted file mode 100644 index 7971983949e843ed18214cc10d16fefddb0abe9c..0000000000000000000000000000000000000000 --- a/bcrypt-change-man-install-path.patch +++ /dev/null @@ -1,18 +0,0 @@ -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 index 8c045e3539f56e5a293c3b3175ca98084a3dc5f2..3c0242ac822d84c857ddb0ea33c88bbdb6b4af44 100644 --- a/bcrypt.spec +++ b/bcrypt.spec @@ -1,29 +1,31 @@ Name: bcrypt -Version: 1.1 -Release: 2 +Version: 4.3.0 +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 +Source0: https://github.com/pyca/bcrypt/archive/refs/tags/v%{version}.tar.gz BuildRequires: zlib-devel gcc +BuildRequires: python3-devel %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 +%setup -q -n bcrypt-%{version} %build -sed -i 's/CFLAGS = -O2 -Wall/& -g/' Makefile -%make_build +# sed -i 's/CFLAGS = -O2 -Wall/& -g/' Makefile +# Assuming the source does not contain a Makefile, we need to use the correct build command. +# For bcrypt, it seems to be a Python package, so we need to use Python's setup.py +python3 setup.py build %install -%{__make} install PREFIX="%{buildroot}%{_prefix}" +# %{__make} install PREFIX="%{buildroot}%{_prefix}" +# For Python packages, we use the following command +python3 setup.py install --prefix=%{buildroot}%{_prefix} --root=%{buildroot} %pre %preun @@ -38,9 +40,11 @@ sed -i 's/CFLAGS = -O2 -Wall/& -g/' Makefile %{_mandir}/* %changelog +* Thu Jun 19 2025 openeuler_bot - 4.3.0-1 +- update bcrypt to 4.3.0 + * Wed Sep 8 2021 caoodngxia - 1.1-2 - Add debug package to add strip * Sun Mar 29 2020 Wei Xiong -- Package init - +- Package init \ No newline at end of file