Compare commits

...

No commits in common. 'i10cs' and 'c9' have entirely different histories.
i10cs ... c9

2
.gitignore vendored

@ -1 +1 @@
SOURCES/libpwquality-1.4.5.tar.bz2
SOURCES/libpwquality-1.4.4.tar.bz2

@ -1 +1 @@
bd39e45abe3cd7ec2f97fa4780feff9435ba8239 SOURCES/libpwquality-1.4.5.tar.bz2
94e3f2eb67ccff1823e727d6770c3f39acbd954d SOURCES/libpwquality-1.4.4.tar.bz2

@ -0,0 +1,583 @@
diff -up libpwquality-1.4.4/po/de.po.rhel9-i18n libpwquality-1.4.4/po/de.po
--- libpwquality-1.4.4/po/de.po.rhel9-i18n 2020-10-13 08:32:16.000000000 +0200
+++ libpwquality-1.4.4/po/de.po 2021-08-04 16:36:06.991294123 +0200
@@ -3,23 +3,25 @@
# This file is distributed under the same license as the PACKAGE package.
#
# Translators:
-# <hpeters@redhat.com>, 2012.
+# <hpeters@redhat.com>, 2012.
# Roman Spirgi <bigant@fedoraproject.org>, 2012.
# Tom谩拧 Mr谩z <tmraz@fedoraproject.org>, 2017. #zanata
+# Christian Horn <chorn@fluxcoil.net>, 2021.
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://fedorahosted.org/libpwquality\n"
"POT-Creation-Date: 2020-10-13 08:32+0200\n"
-"PO-Revision-Date: 2017-05-26 08:59+0000\n"
-"Last-Translator: Copied by Zanata <copied-by-zanata@zanata.org>\n"
-"Language-Team: LANGUAGE <LL@li.org>\n"
+"PO-Revision-Date: 2021-05-21 22:56+0000\n"
+"Last-Translator: Christian Horn <chorn@fluxcoil.net>\n"
+"Language-Team: German <https://translate.fedoraproject.org/projects/"
+"libpwquality/app/de/>\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n != 1)\n"
-"X-Generator: Zanata 4.6.2\n"
+"Plural-Forms: nplurals=2; plural=n != 1;\n"
+"X-Generator: Weblate 4.6.2\n"
#: src/pam_pwquality.c:236
#, c-format
@@ -211,7 +213,7 @@ msgstr ""
#: src/error.c:114 src/error.c:117
msgid "The password fails the dictionary check"
-msgstr "Passwort scheitert beim W枚rterbuchtest"
+msgstr "Passwort besteht den W枚rterbuchtest nicht."
#: src/error.c:120 src/error.c:124
msgid "Unknown setting"
diff -up libpwquality-1.4.4/po/fr.po.rhel9-i18n libpwquality-1.4.4/po/fr.po
--- libpwquality-1.4.4/po/fr.po.rhel9-i18n 2020-10-13 08:32:16.000000000 +0200
+++ libpwquality-1.4.4/po/fr.po 2021-08-04 16:36:06.992294131 +0200
@@ -16,16 +16,16 @@ msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://fedorahosted.org/libpwquality\n"
"POT-Creation-Date: 2020-10-13 08:32+0200\n"
-"PO-Revision-Date: 2020-02-08 07:16+0000\n"
+"PO-Revision-Date: 2020-10-17 07:15+0000\n"
"Last-Translator: Julien Humbert <julroy67@gmail.com>\n"
-"Language-Team: French <https://translate.stg.fedoraproject.org/projects/"
+"Language-Team: French <https://translate.fedoraproject.org/projects/"
"libpwquality/app/fr/>\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
-"X-Generator: Weblate 3.10.3\n"
+"X-Generator: Weblate 4.3\n"
#: src/pam_pwquality.c:236
#, c-format
@@ -73,6 +73,8 @@ msgstr "Usage聽: %s <entropy-bits>\n"
msgid ""
"Warning: Value %ld is outside of the allowed entropy range, adjusting it.\n"
msgstr ""
+"Avertissement聽: La valeur %ld est en dehors de la plage d鈥檈ntropie "
+"autoris茅e, il faut l鈥檃juster.\n"
#: src/error.c:31
msgid "Memory allocation error when setting"
diff -up libpwquality-1.4.4/po/ja.po.rhel9-i18n libpwquality-1.4.4/po/ja.po
--- libpwquality-1.4.4/po/ja.po.rhel9-i18n 2020-10-13 08:32:16.000000000 +0200
+++ libpwquality-1.4.4/po/ja.po 2021-08-04 16:36:06.992294131 +0200
@@ -9,13 +9,14 @@
# Tomoyuki KATO <tomo@dream.daynight.jp>, 2012.
# Tom谩拧 Mr谩z <tmraz@fedoraproject.org>, 2017. #zanata
# yoshifumi kinoshita <yoshifumi1975@gmail.com>, 2020.
+# Ludek Janda <ljanda@redhat.com>, 2021.
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://fedorahosted.org/libpwquality\n"
"POT-Creation-Date: 2020-10-13 08:32+0200\n"
-"PO-Revision-Date: 2020-07-05 10:53+0000\n"
-"Last-Translator: yoshifumi kinoshita <yoshifumi1975@gmail.com>\n"
+"PO-Revision-Date: 2021-05-26 14:02+0000\n"
+"Last-Translator: Ludek Janda <ljanda@redhat.com>\n"
"Language-Team: Japanese <https://translate.fedoraproject.org/projects/"
"libpwquality/app/ja/>\n"
"Language: ja\n"
@@ -23,23 +24,23 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
-"X-Generator: Weblate 4.1.1\n"
+"X-Generator: Weblate 4.6.2\n"
#: src/pam_pwquality.c:236
#, c-format
msgid "BAD PASSWORD: %s"
-msgstr "銈堛亸銇<E4BAB8>亜銉戙偣銉<E581A3>兗銉<E58597>: %s"
+msgstr "姝c仐銇忋仾銇勩儜銈广儻銉笺儔: %s"
#: src/pwscore.c:22
#, c-format
msgid "Usage: %s [user]\n"
-msgstr "浣裤亜鏂<E4BA9C>: %s [user]\n"
+msgstr "渚<>: %s [user]\n"
#: src/pwscore.c:23
#, c-format
msgid ""
" The command reads the password to be scored from the standard input.\n"
-msgstr " 銇撱伄銈炽優銉炽儔銇<E58494>帯鐐广仚銈嬨儜銈广儻銉笺儔銈掓<E98A88>婧栧叆鍔涖亱銈夎<E98A88>銇胯炯銇裤伨銇欍€俓n"
+msgstr " 銇撱伄銈炽優銉炽儔銇<E58494>€佽⿻渚°仚銈嬨儜銈广儻銉笺儔銈掓<E98A88>婧栧叆鍔涖亱銈夎<E98A88>銇胯炯銇裤伨銇欍€俓n"
#: src/pwscore.c:53 src/pwscore.c:61 src/pwscore.c:67
#, c-format
@@ -48,7 +49,7 @@ msgstr "銈ㄣ儵銉<E584B5>: %s\n"
#: src/pwscore.c:53
msgid "Could not obtain the password to be scored"
-msgstr "鎺偣銇欍倠銉戙偣銉<E581A3>兗銉夈倰鍙栧緱銇с亶銇俱仜銈撱仹銇椼仧銆<E4BBA7>"
+msgstr "瑭曚尽銇欍倠銉戙偣銉<E581A3>兗銉夈倰鍙栧緱銇с亶銇俱仜銈撱仹銇椼仧"
#: src/pwscore.c:75
#, c-format
@@ -56,23 +57,23 @@ msgid ""
"Password quality check failed:\n"
" %s\n"
msgstr ""
-"銉戙偣銉<E581A3>兗銉夈伄鍝佽唱銉併偋銉冦偗銇<E58197>け鏁椼仐銇俱仐銇熴€俓n"
+"銉戙偣銉<E581A3>兗銉夈伄瑭曚尽銉併偋銉冦偗銇<E58197>け鏁椼仐銇俱仐銇<E4BB90>:\n"
" %s\n"
#: src/pwmake.c:23
#, c-format
msgid "Usage: %s <entropy-bits>\n"
-msgstr "浣裤亜鏂<E4BA9C>: %s <銈ㄣ兂銉堛儹銉斻兗銇<E58597>儞銉冦儓鏁<E58493>>\n"
+msgstr "渚<>: %s <entropy-bits>\n"
#: src/pwmake.c:58
#, c-format
msgid ""
"Warning: Value %ld is outside of the allowed entropy range, adjusting it.\n"
-msgstr ""
+msgstr "璀﹀憡: 鍊<> %ld 銇<>ū鍙<C5AB>仌銈屻倠銈ㄣ兂銉堛儹銉斻兗绡勫洸銈掕秴銇堛仸銇勩伨銇ц<E98A87>鏁淬仐銇俱仚銆俓n"
#: src/error.c:31
msgid "Memory allocation error when setting"
-msgstr "瑷<>畾涓<E795BE>伀銉°儮銉<E584AE>兗鍓层倞褰撱仸銈ㄣ儵銉笺亴鐧虹敓銇椼伨銇椼仧銆<E4BBA7>"
+msgstr "瑷<>畾涓<E795BE>伀銉°儮銉<E584AE>兗鍓层倞褰撱仸銈ㄣ儵銉笺亴鐧虹敓銇椼伨銇椼仧"
#: src/error.c:35
msgid "Memory allocation error"
@@ -80,139 +81,135 @@ msgstr "銉°儮銉<E584AE>兗鍓层倞褰撱仸銈ㄣ儵銉
#: src/error.c:37
msgid "The password is the same as the old one"
-msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伅閬庡幓銇<E5B993>ō瀹氥仌銈屻仧銈傘伄銇ㄥ悓銇樸仹銇欍€<E6AC8D>"
+msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伅閬庡幓銇<E5B993>ō瀹氥仌銈屻仧銈傘伄銇ㄥ悓銇樸仹銇<E4BBB9>"
#: src/error.c:39
msgid "The password is a palindrome"
-msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伅鍥炴枃銇с仚銆<E4BB9A>"
+msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伅鍥炴枃銇с仚"
#: src/error.c:41
msgid "The password differs with case changes only"
-msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伅澶ф枃瀛椼仺灏忔枃瀛椼倰澶夋洿銇椼仧銇犮亼銇с仚銆<E4BB9A>"
+msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伅澶ф枃瀛椼仺灏忔枃瀛椼倰澶夋洿銇椼仧銇犮亼銇с仚"
#: src/error.c:43
msgid "The password is too similar to the old one"
-msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伅鍙ゃ亜銉戙偣銉<E581A3>兗銉夈仺浼笺仚銇庛仸銇勩伨銇欍€<E6AC8D>"
+msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伅鍙ゃ亜銉戙偣銉<E581A3>兗銉夈仺椤炰技銇椼仸銇勩伨銇<E4BCA8>"
#: src/error.c:45
msgid "The password contains the user name in some form"
-msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伀銇<E4BC80>竴閮ㄣ伀浣曘倝銇嬨伄褰€仹銉︺兗銈躲兗鍚嶃亴鍚<E4BAB4>伨銈屻仸銇勩伨銇欍€<E6AC8D>"
+msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伀銇<E4BC80>€佷竴閮ㄣ伀浣曘倝銇嬨伄褰€仹銉︺兗銈躲兗鍚嶃亴鍚<E4BAB4>伨銈屻仸銇勩伨銇<E4BCA8>"
#: src/error.c:47
msgid "The password contains words from the real name of the user in some form"
-msgstr ""
-"銇撱伄銉戙偣銉<E581A3>兗銉夈伀銇<E4BC80>綍銈夈亱銇<E4BAB1>舰銇с儲銉笺偠銉笺伄鏈<E4BC84>悕銇嬨倝鍩恒仴銇忓崢瑾炪亴鍚<E4BAB4>伨銈屻仸銇勩伨銇欍€<E6AC8D>"
+msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伀銇<E4BC80>€佷綍銈夈亱銇<E4BAB1>舰銇с儲銉笺偠銉笺伄鏈<E4BC84>悕銇<E68295>熀銇ャ亸鍗樿獮銇屽惈銇俱倢銇︺亜銇俱仚"
#: src/error.c:49
msgid "The password contains forbidden words in some form"
-msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伀銇<E4BC80>綍銈夈亱銇<E4BAB1>舰銇х<E98A87>姝€仌銈屻仧鍗樿獮銇屽惈銇俱倢銇︺亜銇俱仚銆<E4BB9A>"
+msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伀銇<E4BC80>€佷綍銈夈亱銇<E4BAB1>舰銇х<E98A87>姝€仌銈屻仸銇勩倠鍗樿獮銇屽惈銇俱倢銇︺亜銇俱仚"
#: src/error.c:52
#, c-format
msgid "The password contains less than %ld digits"
-msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伀銇<E4BC80> %ld 鍊嬫湭婧€銇<E282AC>暟瀛椼亴鍚<E4BAB4>伨銈屻仸銇勩伨銇欍€<E6AC8D>"
+msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伀銇<E4BC80> %ld 鍊嬫湭婧€銇<E282AC>暟瀛椼亴鍚<E4BAB4>伨銈屻仸銇勩伨銇<E4BCA8>"
#: src/error.c:55
msgid "The password contains too few digits"
-msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伅鏁板瓧銇<E793A7>€嬫暟銇岃冻銈娿伨銇涖倱銆<E580B1>"
+msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伀銇<E4BC80>€佹暟瀛椼伄鍊嬫暟銇岃冻銈娿伨銇涖倱"
#: src/error.c:58
#, c-format
msgid "The password contains less than %ld uppercase letters"
-msgstr ""
-"銇撱伄銉戙偣銉<E581A3>兗銉夈伀銇<E4BC80> %ld 鍊嬫湭婧€銇<E282AC>ぇ鏂囧瓧銇<E793A7>偄銉<E58184>儠銈°儥銉冦儓銇屽惈銇俱倢銇︺亜銇俱仚銆<E4BB9A>"
+msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伀銇<E4BC80> %ld 鍊嬫湭婧€銇<E282AC>ぇ鏂囧瓧銇<E793A7>偄銉<E58184>儠銈°儥銉冦儓銇屽惈銇俱倢銇︺亜銇俱仚"
#: src/error.c:61
msgid "The password contains too few uppercase letters"
-msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伅澶ф枃瀛椼伄銈€儷銉曘偂銉欍儍銉堛伄鍊嬫暟銇岃冻銈娿伨銇涖倱銆<E580B1>"
+msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伅銆佸ぇ鏂囧瓧銇<E793A7>偄銉<E58184>儠銈°儥銉冦儓銇<E58493>€嬫暟銇岃冻銈娿伨銇涖倱"
#: src/error.c:64
#, c-format
msgid "The password contains less than %ld lowercase letters"
-msgstr ""
-"銇撱伄銉戙偣銉<E581A3>兗銉夈伀銇<E4BC80> %ld 鍊嬫湭婧€銇<E282AC>皬鏂囧瓧銇<E793A7>偄銉<E58184>儠銈°儥銉冦儓銇屽惈銇俱倢銇︺亜銇俱仚銆<E4BB9A>"
+msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伀鍚<E4BC80>伨銈屻倠灏忔枃瀛椼伄銈€儷銉曘偂銉欍儍銉堛伅銆<E4BC85>%ld 鍊嬫湭婧€銇с仚"
#: src/error.c:67
msgid "The password contains too few lowercase letters"
-msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伅灏忔枃瀛椼伄銈€儷銉曘偂銉欍儍銉堛伄鍊嬫暟銇岃冻銈娿伨銇涖倱銆<E580B1>"
+msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伄灏忔枃瀛椼伄銈€儷銉曘偂銉欍儍銉堟暟銇岃冻銈娿伨銇涖倱"
#: src/error.c:70
#, c-format
msgid "The password contains less than %ld non-alphanumeric characters"
-msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伀銇<E4BC80> %ld 鍊嬫湭婧€銇<E282AC><E98A87>鍙枫亴鍚<E4BAB4>伨銈屻仸銇勩伨銇欍€<E6AC8D>"
+msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伄銇<E4BC84>惈銇俱倢銈嬨偄銉<E58184>儠銈°儥銉冦儓浠ュ<E6B5A0><EFBFBD>枃瀛楁暟銇<E69A9F> %ld 鍊嬫湭婧€銇с仚"
#: src/error.c:73
msgid "The password contains too few non-alphanumeric characters"
-msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伅瑷樺彿銇<E5BDBF>€嬫暟銇岃冻銈娿伨銇涖倱銆<E580B1>"
+msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伅銆併偄銉<E58184>儠銈°儥銉冦儓浠ュ<E6B5A0><EFBFBD>枃瀛楁暟銇岃冻銈娿伨銇涖倱"
#: src/error.c:76
#, c-format
msgid "The password is shorter than %ld characters"
-msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伅 %ld 鏂囧瓧鏈<E793A7>簚銇<E7B09A>枃瀛楀垪銇с仚銆<E4BB9A>"
+msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伅 %ld 鏂囧瓧鏈<E793A7>簚銇<E7B09A>枃瀛楀垪銇с仚"
#: src/error.c:79
msgid "The password is too short"
-msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伅鐭<E4BC85>亱銇欍亷銇俱仚銆<E4BB9A>"
+msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伅鐭<E4BC85>亱銇欍亷銇俱仚"
#: src/error.c:81
msgid "The password is just rotated old one"
-msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伅鍗樸伀鍙ゃ亜銈傘伄銈掑洖杌€仌銇涖仧銇犮亼銇с仚銆<E4BB9A>"
+msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伅銆佸崢銇<E5B4A2>彜銇勩倐銇<E58090>倰鍐嶅埄鐢ㄣ仐銇︺亜銇俱仚"
#: src/error.c:84
#, c-format
msgid "The password contains less than %ld character classes"
-msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伅 %ld 绋<><E7BB8B><EFBFBD>簚銇<E7B09A>枃瀛椼伄绋<E4BC84><E7BB8B>銇屽惈銇俱倢銇︺亜銇俱仚銆<E4BB9A>"
+msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伄鏂囧瓧銈<E793A7>儵銈广伅銆<E4BC85>%ld 绋<><E7BB8B><EFBFBD>簚銇с仚"
#: src/error.c:87
msgid "The password does not contain enough character classes"
-msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伀鍚<E4BC80>伨銈屻倠鏂囧瓧銇<E793A7>ó椤炴暟銇岃冻銈娿伨銇涖倱銆<E580B1>"
+msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伀鍚<E4BC80>伨銈屻倠鏂囧瓧銈<E793A7>儵銈规暟銇岃冻銈娿伨銇涖倱"
#: src/error.c:90
#, c-format
msgid "The password contains more than %ld same characters consecutively"
-msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伅 %ld 鍊嬨倰瓒娿亪銈嬮€稓銇欍倠鍚屻仒鏂囧瓧銇屽惈銇俱倢銇︺亜銇俱仚銆<E4BB9A>"
+msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伅銇<E4BC85>伅銆<E4BC85>%ld 鍊嬨倰瓒娿亪銈嬮€g稓銇欍倠鍚屻仒鏂囧瓧銇屽惈銇俱倢銇︺亜銇俱仚"
#: src/error.c:93
msgid "The password contains too many same characters consecutively"
-msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伀銇<E4BC80>稓銇椼仸鍚屻仒鏂囧瓧銇屽惈銇俱倢銇︺亜銇俱仚銆<E4BB9A>"
+msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伄閫稓銇椼仧鍚屻仒鏂囧瓧銇<E793A7>暟銇屽<E98A87>銇欍亷銇俱仚"
#: src/error.c:96
#, c-format
msgid ""
"The password contains more than %ld characters of the same class "
"consecutively"
-msgstr ""
-"銇撱伄銉戙偣銉<E581A3>兗銉夈伅 %ld 鍊嬨倰瓒娿亪銈嬮€稓銇欍倠鍚屻仒绋<E4BB92><E7BB8B><EFBFBD>枃瀛椼亴鍚<E4BAB4>伨銈屻仸銇勩伨銇欍€<E6AC8D>"
+msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伀銇<E4BC80> %ld 鍊嬨倰瓒娿亪銈嬮€稓銇欍倠鍚屻仒鏂囧瓧銈<E793A7>儵銈广伄鏂囧瓧銇屽惈銇俱倢銇︺亜銇俱仚"
#: src/error.c:99
msgid ""
"The password contains too many characters of the same class consecutively"
-msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伀銇<E4BC80>稓銇椼仸鍚屻仒绋<E4BB92><E7BB8B><EFBFBD>枃瀛椼亴鍚<E4BAB4>伨銈屻仸銇勩伨銇欍€<E6AC8D>"
+msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伅銆佸悓銇樻枃瀛椼偗銉┿偣鏂囧瓧銇<E793A7>稓銇屽<E98A87>銇欍亷銇俱仚"
#: src/error.c:102
#, c-format
msgid "The password contains monotonic sequence longer than %ld characters"
-msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伀銇<E4BC80> %ld 鏂囧瓧銈堛倞闀枫亜鍗樿<E98D97><EFBFBD>枃瀛楀垪銇屽惈銇俱倢銇︺亜銇俱仚銆<E4BB9A>"
+msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伀銇<E4BC80> %ld 鏂囧瓧銈堛倞闀枫亜鍗樿<E98D97><EFBFBD>枃瀛楀垪銇屽惈銇俱倢銇︺亜銇俱仚"
#: src/error.c:105
msgid "The password contains too long of a monotonic character sequence"
-msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伀銇<E4BC80>暦銇欍亷銈嬪崢瑾裤仾鏂囧瓧鍒椼亴鍚<E4BAB4>伨銈屻仸銇勩伨銇欍€<E6AC8D>"
+msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伀銇<E4BC80>€侀暦銇欍亷銈嬪崢瑾裤仾鏂囧瓧鍒椼亴鍚<E4BAB4>伨銈屻仸銇勩伨銇<E4BCA8>"
#: src/error.c:107
msgid "No password supplied"
-msgstr "銉戙偣銉<E581A3>兗銉夈亴涓庛亪銈夈倢銇︺亜銇俱仜銈撱€<E692B1>"
+msgstr "銉戙偣銉<E581A3>兗銉夈亴涓庛亪銈夈倢銇︺亜銇俱仜銈<E4BB9C>"
#: src/error.c:109
msgid "Cannot obtain random numbers from the RNG device"
-msgstr "RNG(涔辨暟鐧虹敓)銉囥儛銈ゃ偣銇嬨倝涔辨暟銈掑彇寰椼仚銈嬨亾銇ㄣ亴銇с亶銇俱仜銈撱€<E692B1>"
+msgstr "RNG (涔辨暟鐧虹敓) 銉囥儛銈ゃ偣銇嬨倝涔辨暟銈掑彇寰椼仚銈嬨亾銇ㄣ亴銇с亶銇俱仜銈<E4BB9C>"
#: src/error.c:111
msgid "Password generation failed - required entropy too low for settings"
-msgstr "銉戙偣銉<E581A3>兗銉夈伄鐢熸垚銇<E59E9A>け鏁<E38191> - 瑷<>畾銇<E795BE>繀瑕併仾銈ㄣ兂銉堛儹銉斻兗銇屽皬銇曘仚銇庛伨銇欍€<E6AC8D>"
+msgstr "銉戙偣銉<E581A3>兗銉夈伄鐢熸垚銇<E59E9A>け鏁<E38191>: 瑷<>畾銇<E795BE>繀瑕併仾銈ㄣ兂銉堛儹銉斻兗銇屽皬銇曘仚銇庛伨銇<E4BCA8>"
#: src/error.c:114 src/error.c:117
msgid "The password fails the dictionary check"
-msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伅杈炴浉銉併偋銉冦偗銇<E58197>け鏁椼仐銇俱仐銇熴€<E786B4>"
+msgstr "銇撱伄銉戙偣銉<E581A3>兗銉夈伅杈炴浉銉併偋銉冦偗銇<E58197>け鏁椼仐銇俱仐銇<E4BB90>"
#: src/error.c:120 src/error.c:124
msgid "Unknown setting"
@@ -220,41 +217,41 @@ msgstr "鏈<>煡銇<E785A1>ō瀹<C58D>"
#: src/error.c:127
msgid "Bad integer value of setting"
-msgstr "瑷<>畾銇<E795BE>壇銇忋仾銇勬暣鏁板瀷銇<E780B7>€ゃ仹銇欍€<E6AC8D>"
+msgstr "瑷<>畾銇<E795BE><E98A87>銇椼亸銇<E4BAB8>亜鏁存暟鍨嬨伄鍊ゃ仹銇<E4BBB9>"
#: src/error.c:131
msgid "Bad integer value"
-msgstr "鑹<>亸銇<E4BAB8>亜鏁存暟鍨嬨伄鍊ゃ仹銇欍€<E6AC8D>"
+msgstr "姝仐銇忋仾銇勬暣鏁板瀷銇<E780B7>€ゃ仹銇<E4BBB9>"
#: src/error.c:134
#, c-format
msgid "Setting %s is not of integer type"
-msgstr "瑷<>畾 %s 銇<>暣鏁板瀷銇с伅銇傘倞銇俱仜銈撱€<E692B1>"
+msgstr "瑷<>畾 %s 銇<>暣鏁板瀷銇с伅銇傘倞銇俱仜銈<E4BB9C>"
#: src/error.c:138
msgid "Setting is not of integer type"
-msgstr "瑷<>畾銇<E795BE>暣鏁板瀷銇с伅銇傘倞銇俱仜銈撱€<E692B1>"
+msgstr "瑷<>畾銇<E795BE>暣鏁板瀷銇с伅銇傘倞銇俱仜銈<E4BB9C>"
#: src/error.c:141
#, c-format
msgid "Setting %s is not of string type"
-msgstr "瑷<>畾 %s 銇<>枃瀛楀垪鍨嬨仹銇<E4BBB9>亗銈娿伨銇涖倱銆<E580B1>"
+msgstr "瑷<>畾 %s 銇<>枃瀛楀垪鍨嬨仹銇<E4BBB9>亗銈娿伨銇涖倱"
#: src/error.c:145
msgid "Setting is not of string type"
-msgstr "瑷<>畾銇<E795BE>枃瀛楀垪鍨嬨仹銇<E4BBB9>亗銈娿伨銇涖倱銆<E580B1>"
+msgstr "瑷<>畾銇<E795BE>枃瀛楀垪鍨嬨仹銇<E4BBB9>亗銈娿伨銇涖倱"
#: src/error.c:147
msgid "Opening the configuration file failed"
-msgstr "瑷<>畾銉曘偂銈ゃ儷銈掗枊銇戙伨銇涖倱銆<E580B1>"
+msgstr "瑷<>畾銉曘偂銈ゃ儷銈掗枊銇戙伨銇涖倱銇с仐銇<E4BB90>"
#: src/error.c:149
msgid "The configuration file is malformed"
-msgstr "瑷<>畾銉曘偂銈ゃ儷銇<E584B7>舰寮忋亴姝仐銇忋亗銈娿伨銇涖倱銆<E580B1>"
+msgstr "瑷<>畾銉曘偂銈ゃ儷銇<E584B7>舰寮忋亴姝仐銇忋亗銈娿伨銇涖倱"
#: src/error.c:151
msgid "Fatal failure"
-msgstr "鑷村懡鐨勩仾闅滃<E99785>銇岀櫤鐢熴仐銇俱仐銇熴€<E786B4>"
+msgstr "鑷村懡鐨勩仾闅滃<E99785>銇岀櫤鐢熴仐銇俱仐銇<E4BB90>"
#: src/error.c:153
msgid "Unknown error"
diff -up libpwquality-1.4.4/po/ko.po.rhel9-i18n libpwquality-1.4.4/po/ko.po
--- libpwquality-1.4.4/po/ko.po.rhel9-i18n 2020-10-13 08:32:16.000000000 +0200
+++ libpwquality-1.4.4/po/ko.po 2021-08-04 16:36:06.992294131 +0200
@@ -5,21 +5,23 @@
# Translators:
# eukim <eukim@redhat.com>, 2007,2009
# Tom谩拧 Mr谩z <tmraz@fedoraproject.org>, 2017. #zanata
+# simmon <simmon@nplob.com>, 2021.
+# Seong-ho Cho <darkcircle.0426@gmail.com>, 2021.
msgid ""
msgstr ""
"Project-Id-Version: PWQuality library\n"
"Report-Msgid-Bugs-To: http://fedorahosted.org/libpwquality\n"
"POT-Creation-Date: 2020-10-13 08:32+0200\n"
-"PO-Revision-Date: 2017-05-26 09:01+0000\n"
-"Last-Translator: Copied by Zanata <copied-by-zanata@zanata.org>\n"
-"Language-Team: Korean (http://www.transifex.com/projects/p/libpwquality/"
-"language/ko/)\n"
+"PO-Revision-Date: 2021-07-22 07:04+0000\n"
+"Last-Translator: Seong-ho Cho <darkcircle.0426@gmail.com>\n"
+"Language-Team: Korean <https://translate.fedoraproject.org/projects/"
+"libpwquality/app/ko/>\n"
"Language: ko\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
-"X-Generator: Zanata 4.6.2\n"
+"X-Generator: Weblate 4.7.2\n"
#: src/pam_pwquality.c:236
#, c-format
@@ -64,7 +66,7 @@ msgstr "靷<>毄氩<E6AF84>: %s <entropy-bits>\n"
#, c-format
msgid ""
"Warning: Value %ld is outside of the allowed entropy range, adjusting it.\n"
-msgstr ""
+msgstr "瓴疥碃: 臧<> %ld電<64> 鞐旐姼搿滍敿 項堨毄 氩旍渼毳<E6B8BC> 齑堦臣頃橃榾鞀惦媹雼<E5AAB9>, 雼れ嫓 臁办爼頃<E788BC> 欤检劯鞖<E58AAF>.\n"
#: src/error.c:31
msgid "Memory allocation error when setting"
@@ -92,7 +94,7 @@ msgstr "鞎旐樃臧€ 鞚挫爠 鞎旐樃鞕€ 雱堧<E99BB1>
#: src/error.c:45
msgid "The password contains the user name in some form"
-msgstr "鞎旐樃鞐<E6A883> 鞏措枻 順曥嫕鞙茧<E99E99><>毄鞛<E6AF84> 鞚措<E99E9A><EFBFBD><>暔霅橃柎 鞛堨姷雼堧嫟 "
+msgstr "鞎旐樃鞐<E6A883><>毄鞛<E6AF84> 鞚措<E99E9A><EFBFBD> 霌れ柎 鞛堨姷雼堧嫟"
#: src/error.c:47
msgid "The password contains words from the real name of the user in some form"
@@ -155,11 +157,11 @@ msgstr "鞎旐樃臧€ 鞚挫爠 鞎旐樃毳<E6A883> 須岇<E9A088>
#: src/error.c:84
#, c-format
msgid "The password contains less than %ld character classes"
-msgstr "鞎旐樃鞐愲姅 %ld 氙鸽<E6B099><EFBFBD> 氍胳瀽 韥措灅鞀り皜 韽<>暔霅橃柎 鞛堨姷雼堧嫟"
+msgstr "鞎旐樃鞐<E6A883> %ld 氙鸽<E6B099><EFBFBD> 氍胳瀽 瓿勳棿鞚<E6A3BF> 霌れ柎鞛堨姷雼堧嫟"
#: src/error.c:87
msgid "The password does not contain enough character classes"
-msgstr "鞎旐樃鞐愲姅 於╇秳頃<E7A7B3> 氍胳瀽 韥措灅鞀り皜 韽<>暔霅橃柎 鞛堨<E99E9B> 鞎婌姷雼堧嫟"
+msgstr "鞎旐樃鞐<E6A883> 雼れ枒頃<E69E92> 氍胳瀽 瓿勳棿鞚<E6A3BF> 氚橃榿頃橃<E9A083> 鞎婌晿鞀惦媹雼<E5AAB9>"
#: src/error.c:90
#, c-format
@@ -175,22 +177,21 @@ msgstr "鞎旐樃鞐愲姅 雱堧<E99BB1> 毵庫潃 霃欖<E99C83>
msgid ""
"The password contains more than %ld characters of the same class "
"consecutively"
-msgstr ""
-"鞎旐樃鞐愲姅 %ld臧<64> 鞚挫儊鞚<E5848A> 霃欖澕頃<E6BE95> 韥措灅鞀<E78185> 氍胳瀽臧€ 鞐办啀鞝侅溂搿<E6BA82><>暔霅橃柎 鞛堨姷雼堧嫟"
+msgstr "鞎旐樃鞐<E6A883> %ld臧<64> 鞚挫儊鞚<E5848A> 霃欖澕頃<E6BE95> 瓿勳棿 氍胳瀽臧€ 鞐办啀鞙茧<E99E99> 霌れ柎鞛堨姷雼堧嫟"
#: src/error.c:99
msgid ""
"The password contains too many characters of the same class consecutively"
-msgstr "鞎旐樃鞐愲姅 雱堧<E99BB1> 毵庫潃 霃欖澕頃<E6BE95> 韥措灅鞀<E78185> 氍胳瀽臧€ 鞐办啀鞝侅溂搿<E6BA82><>暔霅橃柎 鞛堨姷雼堧嫟"
+msgstr "鞎旐樃鞐<E6A883> 霃欖澕頃<E6BE95> 瓿勳棿 氍胳瀽臧€ 雱堧<E99BB1> 毵庫澊 鞛堨姷雼堧嫟"
#: src/error.c:102
#, c-format
msgid "The password contains monotonic sequence longer than %ld characters"
-msgstr "鞎旐樃鞐<E6A883> %ld鞛愲ゼ 齑堦臣頃橂姅 雼<>“搿滌毚 氍胳瀽鞐挫澊 韽<>暔霅橃柎 鞛堨姷雼堧嫟."
+msgstr "鞎旐樃鞐<E6A883> %ld鞛愲ゼ 齑堦臣頃橂姅 雼<>“搿滌毚 氍胳瀽鞐挫澊 韽<>暔霅橃柎 鞛堨姷雼堧嫟"
#: src/error.c:105
msgid "The password contains too long of a monotonic character sequence"
-msgstr "鞎旐樃鞐<E6A883> 雱堧<E99BB1><>“搿滌毚 氍胳瀽鞐挫澊 韽<>暔霅橃柎 鞛堨姷雼堧嫟."
+msgstr "鞎旐樃鞐<E6A883> 雱堧<E99BB1><>“搿滌毚 氍胳瀽鞐挫澊 鞛堨姷雼堧嫟"
#: src/error.c:107
msgid "No password supplied"
@@ -202,49 +203,49 @@ msgstr "RNG 鞛レ箻鞐愳劀 鞛勳潣鞚<E6BDA3><><E99DBE>
#: src/error.c:111
msgid "Password generation failed - required entropy too low for settings"
-msgstr "鞎旐樃 靸濎劚鞐<E58A9A> 鞁ろ尐頄堨姷雼堧嫟 - 靹れ爼鞐<E788BC> 頃勳殧頃<E6AEA7> 鞐旐姼搿滍敿臧€ 雱堧<E99BB1> 鞛戩姷雼堧嫟 "
+msgstr "鞎旐樃 靸濎劚 鞁ろ尐 - 頃勳殧頃<E6AEA7> 鞐旐姼搿滍敿 臧掛澊 雱堧<E99BB1> 鞛戩姷雼堧嫟"
#: src/error.c:114 src/error.c:117
msgid "The password fails the dictionary check"
-msgstr "鞎旐樃電<E6A883><>爠 瓴€靷<E282AC>棎 鞁ろ尐頄堨姷雼堧嫟 "
+msgstr "鞎旐樃 靷<>爠 瓴€靷<E282AC>棎 鞁ろ尐頄堨姷雼堧嫟"
#: src/error.c:120 src/error.c:124
msgid "Unknown setting"
-msgstr "鞎<><> 鞐嗠姅 靹れ爼 "
+msgstr "鞎<><> 鞐嗠姅 靹れ爼"
#: src/error.c:127
msgid "Bad integer value of setting"
-msgstr "靹れ爼鞐<E788BC> 雽€頃<E282AC> 鞛橂<E99E9B><EFBFBD> 鞝曥垬 臧<> "
+msgstr "靹れ爼鞐<E788BC> 雽€頃<E282AC> 鞛橂<E99E9B><EFBFBD> 鞝曥垬 臧<>"
#: src/error.c:131
msgid "Bad integer value"
-msgstr "鞛橂<E99E9B><EFBFBD> 鞝曥垬臧<E59EAC> "
+msgstr "鞛橂<E99E9B><EFBFBD> 鞝曥垬臧<E59EAC>"
#: src/error.c:134
#, c-format
msgid "Setting %s is not of integer type"
-msgstr "靹れ爼 %s鞚€ 鞝曥垬 鞙犿槙鞚<E6A799> 鞎勲嫏雼堧嫟 "
+msgstr "靹れ爼 %s鞚€ 鞝曥垬 鞙犿槙鞚<E6A799> 鞎勲嫏雼堧嫟"
#: src/error.c:138
msgid "Setting is not of integer type"
-msgstr "靹れ爼鞚<E788BC> 鞝曥垬 鞙犿槙鞚<E6A799> 鞎勲嫏雼堧嫟 "
+msgstr "靹れ爼鞚<E788BC> 鞝曥垬 鞙犿槙鞚<E6A799> 鞎勲嫏雼堧嫟"
#: src/error.c:141
#, c-format
msgid "Setting %s is not of string type"
-msgstr "靹れ爼 %s鞚€ 氍胳瀽鞐<E780BD> 鞙犿槙鞚<E6A799> 鞎勲嫏雼堧嫟 "
+msgstr "靹れ爼 %s鞚€ 氍胳瀽鞐<E780BD> 鞙犿槙鞚<E6A799> 鞎勲嫏雼堧嫟"
#: src/error.c:145
msgid "Setting is not of string type"
-msgstr "靹れ爼鞚€ 氍胳瀽鞐<E780BD> 鞙犿槙鞚<E6A799> 鞎勲嫏雼堧嫟 "
+msgstr "靹れ爼鞚€ 氍胳瀽鞐<E780BD> 鞙犿槙鞚<E6A799> 鞎勲嫏雼堧嫟"
#: src/error.c:147
msgid "Opening the configuration file failed"
-msgstr "靹れ爼 韺岇澕 鞐搓赴鞐<E8B5B4> 鞁ろ尐頄堨姷雼堧嫟 "
+msgstr "靹れ爼 韺岇澕 鞐搓赴鞐<E8B5B4> 鞁ろ尐頄堨姷雼堧嫟"
#: src/error.c:149
msgid "The configuration file is malformed"
-msgstr "靹れ爼 韺岇澕鞚<E6BE95> 鞛橂<E99E9B>霅橃棃鞀惦媹雼<E5AAB9> "
+msgstr "靹れ爼 韺岇澕鞚<E6BE95> 鞛橂<E99E9B>霅橃棃鞀惦媹雼<E5AAB9>"
#: src/error.c:151
msgid "Fatal failure"
diff -up libpwquality-1.4.4/po/Makefile.in.in.rhel9-i18n libpwquality-1.4.4/po/Makefile.in.in
--- libpwquality-1.4.4/po/Makefile.in.in.rhel9-i18n 2021-08-04 16:36:32.050503801 +0200
+++ libpwquality-1.4.4/po/Makefile.in.in 2021-08-04 16:37:17.722885954 +0200
@@ -97,6 +97,7 @@ CATALOGS = @CATALOGS@
all: all-@USE_NLS@
+ $(MAKE) *.gmo
all-yes: stamp-po
all-no:
diff -up libpwquality-1.4.4/po/zh_CN.po.rhel9-i18n libpwquality-1.4.4/po/zh_CN.po
--- libpwquality-1.4.4/po/zh_CN.po.rhel9-i18n 2020-10-13 08:32:16.000000000 +0200
+++ libpwquality-1.4.4/po/zh_CN.po 2021-08-04 16:36:06.992294131 +0200
@@ -11,13 +11,14 @@
# Xi HUANG <xhuang@redhat.com>, 2007.
# Tom谩拧 Mr谩z <tmraz@fedoraproject.org>, 2017. #zanata
# Charles Lee <lchopn@gmail.com>, 2020.
+# Ludek Janda <ljanda@redhat.com>, 2021.
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://fedorahosted.org/libpwquality\n"
"POT-Creation-Date: 2020-10-13 08:32+0200\n"
-"PO-Revision-Date: 2020-07-29 16:29+0000\n"
-"Last-Translator: Charles Lee <lchopn@gmail.com>\n"
+"PO-Revision-Date: 2021-05-26 14:02+0000\n"
+"Last-Translator: Ludek Janda <ljanda@redhat.com>\n"
"Language-Team: Chinese (Simplified) <https://translate.fedoraproject.org/"
"projects/libpwquality/app/zh_CN/>\n"
"Language: zh_CN\n"
@@ -25,7 +26,7 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
-"X-Generator: Weblate 4.1.1\n"
+"X-Generator: Weblate 4.6.2\n"
#: src/pam_pwquality.c:236
#, c-format
@@ -70,7 +71,7 @@ msgstr "鐢ㄦ硶: %s <entropy-bits>\n"
#, c-format
msgid ""
"Warning: Value %ld is outside of the allowed entropy range, adjusting it.\n"
-msgstr ""
+msgstr "璀﹀憡锛<E686A1> %ld 鐨勫€煎湪鍏佽<E98D8F>鐨勭喌鑼冨洿涔嬪<E6B694>锛岄渶瑕佽皟鏁村畠銆俓n"
#: src/error.c:31
msgid "Memory allocation error when setting"

@ -1,43 +0,0 @@
diff --git a/python/Makefile.am b/python/Makefile.am
index 1d00c0c..6e51744 100644
--- a/python/Makefile.am
+++ b/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)
diff --git a/python/Makefile.in b/python/Makefile.in
index f47ac5e..8e9c7f2 100644
--- a/python/Makefile.in
+++ b/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)
diff --git a/python/setup.py.in b/python/setup.py.in
index a741b91..f934c50 100755
--- a/python/setup.py.in
+++ b/python/setup.py.in
@@ -6,9 +6,9 @@
import os
-from distutils.core import setup, Extension
-from distutils.command.build_ext import build_ext as _build_ext
-from distutils.command.sdist import sdist as _sdist
+from setuptools import setup, Extension
+from setuptools.command.build_ext import build_ext as _build_ext
+from setuptools.command.sdist import sdist as _sdist
def genconstants(headerfile, outputfile):
hf = open(headerfile, 'r')

@ -1,31 +1,52 @@
%if 0%{?fedora} || 0%{?rhel} > 7
# Enable python3 build by default
%bcond_without python3
%else
%bcond_with python3
%endif
%if 0%{?rhel} > 7 || 0%{?fedora} > 30
# Disable python2 build by default
%bcond_with python2
%else
%bcond_without python2
%endif
Summary: A library for password generation and password quality checking
Name: libpwquality
Version: 1.4.5
Release: 12%{?dist}
URL: https://github.com/libpwquality/libpwquality/
Source0: https://github.com/libpwquality/libpwquality/releases/download/libpwquality-%{version}/libpwquality-%{version}.tar.bz2
# Use setuptools instead of distutils
# This fixes the build with Python 3.12+
# https://bugzilla.redhat.com/2165572
# Upstream PR: https://github.com/libpwquality/libpwquality/pull/74
Patch1: setuptools.patch
Version: 1.4.4
Release: 8%{?dist}
# The package is BSD licensed with option to relicense as GPLv2+
# - this option is redundant as the BSD license allows that anyway.
License: BSD-3-Clause OR GPL-2.0-or-later
License: BSD or GPLv2+
Source0: https://github.com/libpwquality/libpwquality/releases/download/libpwquality-%{version}/libpwquality-%{version}.tar.bz2
Patch100: libpwquality-1.4.4-rhel9-i18n.patch
%global _pwqlibdir %{_libdir}
%global _moduledir %{_libdir}/security
%global _secconfdir %{_sysconfdir}/security
Requires: cracklib-dicts >= 2.8
Requires: pam%{?_isa}
Requires: cracklib
BuildRequires: gcc make
BuildRequires: make
BuildRequires: gcc
BuildRequires: cracklib-devel
BuildRequires: gettext
BuildRequires: pam-devel
%if %{with python2}
BuildRequires: python2-devel
%endif
%if %{with python3}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%endif
URL: https://github.com/libpwquality/libpwquality/
# we don't want to provide private python extension libs
%define __provides_exclude_from ^(%{python_sitearch}|%{python3_sitearch})/.*\.so$.
%description
This is a library for password quality checks and generation
@ -43,6 +64,20 @@ Files needed for development of applications using the libpwquality
library.
See the pwquality.h header file for the API.
%if %{with python2}
%package -n python2-pwquality
%{?python_provide:%python_provide python2-pwquality}
Summary: Python bindings for the libpwquality library
Requires: libpwquality%{?_isa} = %{version}-%{release}
%description -n python2-pwquality
This is pwquality Python module that provides Python bindings
for the libpwquality library. These bindings can be used
for easy password quality checking and generation of random
pronounceable passwords from Python applications.
%endif
%if %{with python3}
%package -n python3-pwquality
Summary: Python bindings for the libpwquality library
Requires: libpwquality%{?_isa} = %{version}-%{release}
@ -52,11 +87,31 @@ This is pwquality Python module that provides Python bindings
for the libpwquality library. These bindings can be used
for easy password quality checking and generation of random
pronounceable passwords from Python applications.
%endif
%prep
%autosetup -p1
%setup -q
%if %{with python3} && %{with python2}
rm -rf %{py3dir}
cp -a . %{py3dir}
%endif
%patch100 -p1 -b .rhel9-i18n
%build
%if %{with python2}
%configure \
--with-securedir=%{_moduledir} \
--with-pythonsitedir=%{python2_sitearch} \
--with-python-binary=%{__python2} \
--disable-static
%make_build
%endif
%if %{with python3} && %{with python2}
pushd %{py3dir}
%endif
%if %{with python3}
%configure \
--with-securedir=%{_moduledir} \
--with-pythonsitedir=%{python3_sitearch} \
@ -64,13 +119,30 @@ pronounceable passwords from Python applications.
--disable-static
%make_build
%endif
%if %{with python3} && %{with python2}
popd
%endif
%install
%make_install
rm -f %{buildroot}%{_libdir}/*.la
rm -f %{buildroot}%{_moduledir}/*.la
mkdir %{buildroot}%{_secconfdir}/pwquality.conf.d
%if %{with python3} && %{with python2}
pushd %{py3dir}
%make_install -C python
popd
%endif
%if "%{_pwqlibdir}" != "%{_libdir}"
pushd $RPM_BUILD_ROOT%{_libdir}
mv libpwquality.so.* $RPM_BUILD_ROOT%{_pwqlibdir}
ln -sf %{_pwqlibdir}/libpwquality.so.*.* libpwquality.so
popd
%endif
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
rm -f $RPM_BUILD_ROOT%{_moduledir}/*.la
mkdir $RPM_BUILD_ROOT%{_secconfdir}/pwquality.conf.d
%find_lang libpwquality
@ -84,12 +156,10 @@ mkdir %{buildroot}%{_secconfdir}/pwquality.conf.d
%doc README NEWS AUTHORS
%{_bindir}/pwmake
%{_bindir}/pwscore
%dir %{_moduledir}
%{_moduledir}/pam_pwquality.so
%{_libdir}/libpwquality.so.*
%dir %{_secconfdir}
%{_pwqlibdir}/libpwquality.so.*
%config(noreplace) %{_secconfdir}/pwquality.conf
%dir %{_secconfdir}/pwquality.conf.d
%{_secconfdir}/pwquality.conf.d
%{_mandir}/man1/*
%{_mandir}/man5/*
%{_mandir}/man8/*
@ -100,80 +170,41 @@ mkdir %{buildroot}%{_secconfdir}/pwquality.conf.d
%{_libdir}/pkgconfig/*.pc
%{_mandir}/man3/*
%if %{with python2}
%files -n python2-pwquality
%{python2_sitearch}/pwquality.so
%{python2_sitearch}/*.egg-info
%endif
%if %{with python3}
%files -n python3-pwquality
%{python3_sitearch}/*.so
%{python3_sitearch}/*.egg-info
%endif
%changelog
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1.4.5-12
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
* Fri Oct 25 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 1.4.5-11
- Rebuilt for MSVSphere 10
* Tue Jul 30 2024 Veronika Hanulikova <vhanulik@redhat.com> - 1.4.5-11
- Add cracklib dependency (RHEL-39973)
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.4.5-10
- Bump release for June 2024 mass rebuild
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Aug 04 2023 Dmitry Belyavskiy <dbelyavs@redhat.com> - 1.4.5-7
- migrated to SPDX license
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 1.4.5-5
- Rebuilt for Python 3.12
* Fri Mar 31 2023 Miro Hrončok <mhroncok@redhat.com> - 1.4.5-4
- Use setuptools instead of distutils to build this package
- Resolves: rhbz#2165572
* Wed Feb 01 2023 Adam Williamson <awilliam@redhat.com> - 1.4.5-3
- Strengthen cracklib-dicts dependency to Recommends (#2158891)
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Thu Dec 22 2022 Paul Wouters <paul.wouters@aiven.io - 1.4.5-1
- Resolves: rhbz#2154991 libpwquality fails to build with Python 3.12: ModuleNotFoundError: No module named 'distutils'
- Resolves: rhbz#2006063 RFE: Support running without cracklib-dicts installed
- Cleanup and remove python2/3 conditional macros
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.4-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.4.4-10
- Rebuilt for Python 3.11
* Fri Mar 04 2022 Karolina Surma <ksurma@redhat.com> - 1.4.4-9
- Don't BR setuptools, use Python's bundled distutils
* Wed Feb 16 2022 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.4.4-8
- Co-own security directory instead of pulling in pam (#2018913)
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.4.4-8
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.4-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Wed Aug 04 2021 Dmitry Belyavskiy <dbelyavs@redhat.com> - 1.4.4-7
- Explicitly rebuild the localization
- Resolves: rhbz#1938621
* Wed Aug 11 2021 Paul Wouters <paul.wouters@aiven.io> - 1.4.4-6
- Resolves: rhbz#1992607 libpwquality: regression in minimal image size because of hard dependency on cracklib-dicts
* Mon Jul 26 2021 Dmitry Belyavskiy <dbelyavs@redhat.com> - 1.4.4-6
- rebuilt
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.4-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Mon Jul 26 2021 Dmitry Belyavskiy <dbelyavs@redhat.com> - 1.4.4-5
- added i18n updates for de, fr, ja, ko, zh_CN
- Resolves: rhbz#1963858
- Resolves: rhbz#1938621
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 1.4.4-4
- Rebuilt for Python 3.10
* Thu Apr 29 2021 Dmitry Belyavskiy <dbelyavs@redhat.com> - 1.4.4-4
- cracklib-dicts is a hard requirement, not a recomendation.
- Resolves rhbz#1947882
* Thu Mar 11 2021 Dmitry Belyavskiy <dbelyavs@redhat.com> - 1.4.4-3
- Resolves: rhbz#1919026 libpwquaily rpm requires cracklib to function but RPM missing requirement [updated]
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.4.4-3
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Tue Jan 26 10:55:14 EST 2021 Paul Wouters <pwouters@redhat.com> - 1.4.4-2
- Resolves rhbz#1919026 libpwquaily rpm requires cracklib-dict to function but RPM missing requirement

Loading…
Cancel
Save