Accepting request 1236840 from GNOME:Factory
OBS-URL: https://build.opensuse.org/request/show/1236840 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpwquality?expand=0&rev=26
This commit is contained in:
commit
e337e71254
26
libpwquality-fix-python-install.patch
Normal file
26
libpwquality-fix-python-install.patch
Normal file
@ -0,0 +1,26 @@
|
||||
Index: libpwquality-1.4.5/python/Makefile.am
|
||||
===================================================================
|
||||
--- libpwquality-1.4.5.orig/python/Makefile.am
|
||||
+++ libpwquality-1.4.5/python/Makefile.am
|
||||
@@ -14,7 +14,7 @@ all-local:
|
||||
CFLAGS="${CFLAGS} -fno-strict-aliasing" @PYTHONBINARY@ setup.py build --build-base py$(PYTHONREV)
|
||||
|
||||
install-exec-local:
|
||||
- CFLAGS="${CFLAGS} -fno-strict-aliasing" @PYTHONBINARY@ setup.py build --build-base py$(PYTHONREV) install --prefix=${DESTDIR}${prefix}
|
||||
+ CFLAGS="${CFLAGS} -fno-strict-aliasing" @PYTHONBINARY@ setup.py build --build-base py$(PYTHONREV) install --root ${DESTDIR} --prefix=${prefix}
|
||||
|
||||
clean-local:
|
||||
rm -rf py$(PYTHONREV)
|
||||
Index: libpwquality-1.4.5/python/Makefile.in
|
||||
===================================================================
|
||||
--- libpwquality-1.4.5.orig/python/Makefile.in
|
||||
+++ libpwquality-1.4.5/python/Makefile.in
|
||||
@@ -483,7 +483,7 @@ all-local:
|
||||
CFLAGS="${CFLAGS} -fno-strict-aliasing" @PYTHONBINARY@ setup.py build --build-base py$(PYTHONREV)
|
||||
|
||||
install-exec-local:
|
||||
- CFLAGS="${CFLAGS} -fno-strict-aliasing" @PYTHONBINARY@ setup.py build --build-base py$(PYTHONREV) install --prefix=${DESTDIR}${prefix}
|
||||
+ CFLAGS="${CFLAGS} -fno-strict-aliasing" @PYTHONBINARY@ setup.py build --build-base py$(PYTHONREV) install --root ${DESTDIR} --prefix=${prefix}
|
||||
|
||||
clean-local:
|
||||
rm -rf py$(PYTHONREV)
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 10 10:52:20 UTC 2025 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||
|
||||
- Add libpwquality-fix-python-install.patch: Fix installation of
|
||||
python bindings after moving to setuptools.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 22 08:58:19 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package libpwquality
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -28,6 +28,8 @@ Group: Development/Libraries/C and C++
|
||||
URL: https://github.com/libpwquality/libpwquality
|
||||
Source: %{url}/releases/download/%{name}-%{version}/%{name}-%{version}.tar.bz2
|
||||
Source1: baselibs.conf
|
||||
# PATCH-FIX-UPSTREAM - Fix installation of python bindings using setuptools. loosely based on commit 7b5e0f00
|
||||
Patch0: libpwquality-fix-python-install.patch
|
||||
|
||||
BuildRequires: cracklib-devel
|
||||
BuildRequires: gettext-devel
|
||||
@ -159,7 +161,7 @@ fi
|
||||
%{_mandir}/man8/pam_pwquality.8%{?ext_man}
|
||||
|
||||
%files -n python3-pwquality
|
||||
%{python3_sitearch}/pwquality-%{version}-py3*-linux-*.egg
|
||||
%{python3_sitearch}/pwquality*
|
||||
|
||||
%files lang -f libpwquality.lang
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user