Browse Source

initial package creation

Signed-off-by: Toshaan Bharvani <toshaan@powerel.org>
master
Toshaan Bharvani 3 years ago
commit
b2a9def00f
  1. 583
      SOURCES/libpwquality-1.4.4-rhel9-i18n.patch
  2. 311
      SPECS/libpwquality.spec

583
SOURCES/libpwquality-1.4.4-rhel9-i18n.patch

@ -0,0 +1,583 @@ @@ -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 "銈堛亸銇<EFBFBD>亜銉戙偣銉<EFBFBD>兗銉<EFBFBD>: %s"
+msgstr "姝c仐銇忋仾銇勩儜銈广儻銉笺儔: %s"
#: src/pwscore.c:22
#, c-format
msgid "Usage: %s [user]\n"
-msgstr "浣裤亜鏂<EFBFBD>: %s [user]\n"
+msgstr "渚<EFBFBD>: %s [user]\n"
#: src/pwscore.c:23
#, c-format
msgid ""
" The command reads the password to be scored from the standard input.\n"
-msgstr " 銇撱伄銈炽優銉炽儔銇<EFBFBD>帯鐐广仚銈嬨儜銈广儻銉笺儔銈掓<EFBFBD>婧栧叆鍔涖亱銈夎<EFBFBD>銇胯炯銇裤伨銇欍€俓n"
+msgstr " 銇撱伄銈炽優銉炽儔銇<EFBFBD>€佽⿻渚°仚銈嬨儜銈广儻銉笺儔銈掓<EFBFBD>婧栧叆鍔涖亱銈夎<EFBFBD>銇胯炯銇裤伨銇欍€俓n"
#: src/pwscore.c:53 src/pwscore.c:61 src/pwscore.c:67
#, c-format
@@ -48,7 +49,7 @@ msgstr "銈ㄣ儵銉<EFBFBD>: %s\n"
#: src/pwscore.c:53
msgid "Could not obtain the password to be scored"
-msgstr "鎺$偣銇欍倠銉戙偣銉<EFBFBD>兗銉夈倰鍙栧緱銇с亶銇俱仜銈撱仹銇椼仧銆<EFBFBD>"
+msgstr "瑭曚尽銇欍倠銉戙偣銉<EFBFBD>兗銉夈倰鍙栧緱銇с亶銇俱仜銈撱仹銇椼仧"
#: src/pwscore.c:75
#, c-format
@@ -56,23 +57,23 @@ msgid ""
"Password quality check failed:\n"
" %s\n"
msgstr ""
-"銉戙偣銉<EFBFBD>兗銉夈伄鍝佽唱銉併偋銉冦偗銇<EFBFBD>け鏁椼仐銇俱仐銇熴€俓n"
+"銉戙偣銉<EFBFBD>兗銉夈伄瑭曚尽銉併偋銉冦偗銇<EFBFBD>け鏁椼仐銇俱仐銇<EFBFBD>:\n"
" %s\n"
#: src/pwmake.c:23
#, c-format
msgid "Usage: %s <entropy-bits>\n"
-msgstr "浣裤亜鏂<EFBFBD>: %s <銈ㄣ兂銉堛儹銉斻兗銇<EFBFBD>儞銉冦儓鏁<EFBFBD>>\n"
+msgstr "渚<EFBFBD>: %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 "璀﹀憡: 鍊<EFBFBD> %ld 銇<EFBFBD>ū鍙<EFBFBD>仌銈屻倠銈ㄣ兂銉堛儹銉斻兗绡勫洸銈掕秴銇堛仸銇勩伨銇ц<EFBFBD>鏁淬仐銇俱仚銆俓n"
#: src/error.c:31
msgid "Memory allocation error when setting"
-msgstr "瑷<EFBFBD>畾涓<EFBFBD>伀銉°儮銉<EFBFBD>兗鍓层倞褰撱仸銈ㄣ儵銉笺亴鐧虹敓銇椼伨銇椼仧銆<EFBFBD>"
+msgstr "瑷<EFBFBD>畾涓<EFBFBD>伀銉°儮銉<EFBFBD>兗鍓层倞褰撱仸銈ㄣ儵銉笺亴鐧虹敓銇椼伨銇椼仧"
#: src/error.c:35
msgid "Memory allocation error"
@@ -80,139 +81,135 @@ msgstr "銉°儮銉<EFBFBD>兗鍓层倞褰撱仸銈ㄣ儵銉
#: src/error.c:37
msgid "The password is the same as the old one"
-msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伅閬庡幓銇<EFBFBD>ō瀹氥仌銈屻仧銈傘伄銇ㄥ悓銇樸仹銇欍€<EFBFBD>"
+msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伅閬庡幓銇<EFBFBD>ō瀹氥仌銈屻仧銈傘伄銇ㄥ悓銇樸仹銇<EFBFBD>"
#: src/error.c:39
msgid "The password is a palindrome"
-msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伅鍥炴枃銇с仚銆<EFBFBD>"
+msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伅鍥炴枃銇с仚"
#: src/error.c:41
msgid "The password differs with case changes only"
-msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伅澶ф枃瀛椼仺灏忔枃瀛椼倰澶夋洿銇椼仧銇犮亼銇с仚銆<EFBFBD>"
+msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伅澶ф枃瀛椼仺灏忔枃瀛椼倰澶夋洿銇椼仧銇犮亼銇с仚"
#: src/error.c:43
msgid "The password is too similar to the old one"
-msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伅鍙ゃ亜銉戙偣銉<EFBFBD>兗銉夈仺浼笺仚銇庛仸銇勩伨銇欍€<EFBFBD>"
+msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伅鍙ゃ亜銉戙偣銉<EFBFBD>兗銉夈仺椤炰技銇椼仸銇勩伨銇<EFBFBD>"
#: src/error.c:45
msgid "The password contains the user name in some form"
-msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伀銇<EFBFBD>竴閮ㄣ伀浣曘倝銇嬨伄褰€仹銉︺兗銈躲兗鍚嶃亴鍚<EFBFBD>伨銈屻仸銇勩伨銇欍€<EFBFBD>"
+msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伀銇<EFBFBD>€佷竴閮ㄣ伀浣曘倝銇嬨伄褰€仹銉︺兗銈躲兗鍚嶃亴鍚<EFBFBD>伨銈屻仸銇勩伨銇<EFBFBD>"
#: src/error.c:47
msgid "The password contains words from the real name of the user in some form"
-msgstr ""
-"銇撱伄銉戙偣銉<EFBFBD>兗銉夈伀銇<EFBFBD>綍銈夈亱銇<EFBFBD>舰銇с儲銉笺偠銉笺伄鏈<EFBFBD>悕銇嬨倝鍩恒仴銇忓崢瑾炪亴鍚<EFBFBD>伨銈屻仸銇勩伨銇欍€<EFBFBD>"
+msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伀銇<EFBFBD>€佷綍銈夈亱銇<EFBFBD>舰銇с儲銉笺偠銉笺伄鏈<EFBFBD>悕銇<EFBFBD>熀銇ャ亸鍗樿獮銇屽惈銇俱倢銇︺亜銇俱仚"
#: src/error.c:49
msgid "The password contains forbidden words in some form"
-msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伀銇<EFBFBD>綍銈夈亱銇<EFBFBD>舰銇х<EFBFBD>姝€仌銈屻仧鍗樿獮銇屽惈銇俱倢銇︺亜銇俱仚銆<EFBFBD>"
+msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伀銇<EFBFBD>€佷綍銈夈亱銇<EFBFBD>舰銇х<EFBFBD>姝€仌銈屻仸銇勩倠鍗樿獮銇屽惈銇俱倢銇︺亜銇俱仚"
#: src/error.c:52
#, c-format
msgid "The password contains less than %ld digits"
-msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伀銇<EFBFBD> %ld 鍊嬫湭婧€銇<EFBFBD>暟瀛椼亴鍚<EFBFBD>伨銈屻仸銇勩伨銇欍€<EFBFBD>"
+msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伀銇<EFBFBD> %ld 鍊嬫湭婧€銇<EFBFBD>暟瀛椼亴鍚<EFBFBD>伨銈屻仸銇勩伨銇<EFBFBD>"
#: src/error.c:55
msgid "The password contains too few digits"
-msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伅鏁板瓧銇<EFBFBD>€嬫暟銇岃冻銈娿伨銇涖倱銆<EFBFBD>"
+msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伀銇<EFBFBD>€佹暟瀛椼伄鍊嬫暟銇岃冻銈娿伨銇涖倱"
#: src/error.c:58
#, c-format
msgid "The password contains less than %ld uppercase letters"
-msgstr ""
-"銇撱伄銉戙偣銉<EFBFBD>兗銉夈伀銇<EFBFBD> %ld 鍊嬫湭婧€銇<EFBFBD>ぇ鏂囧瓧銇<EFBFBD>偄銉<EFBFBD>儠銈°儥銉冦儓銇屽惈銇俱倢銇︺亜銇俱仚銆<EFBFBD>"
+msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伀銇<EFBFBD> %ld 鍊嬫湭婧€銇<EFBFBD>ぇ鏂囧瓧銇<EFBFBD>偄銉<EFBFBD>儠銈°儥銉冦儓銇屽惈銇俱倢銇︺亜銇俱仚"
#: src/error.c:61
msgid "The password contains too few uppercase letters"
-msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伅澶ф枃瀛椼伄銈€儷銉曘偂銉欍儍銉堛伄鍊嬫暟銇岃冻銈娿伨銇涖倱銆<EFBFBD>"
+msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伅銆佸ぇ鏂囧瓧銇<EFBFBD>偄銉<EFBFBD>儠銈°儥銉冦儓銇<EFBFBD>€嬫暟銇岃冻銈娿伨銇涖倱"
#: src/error.c:64
#, c-format
msgid "The password contains less than %ld lowercase letters"
-msgstr ""
-"銇撱伄銉戙偣銉<EFBFBD>兗銉夈伀銇<EFBFBD> %ld 鍊嬫湭婧€銇<EFBFBD>皬鏂囧瓧銇<EFBFBD>偄銉<EFBFBD>儠銈°儥銉冦儓銇屽惈銇俱倢銇︺亜銇俱仚銆<EFBFBD>"
+msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伀鍚<EFBFBD>伨銈屻倠灏忔枃瀛椼伄銈€儷銉曘偂銉欍儍銉堛伅銆<EFBFBD>%ld 鍊嬫湭婧€銇с仚"
#: src/error.c:67
msgid "The password contains too few lowercase letters"
-msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伅灏忔枃瀛椼伄銈€儷銉曘偂銉欍儍銉堛伄鍊嬫暟銇岃冻銈娿伨銇涖倱銆<EFBFBD>"
+msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伄灏忔枃瀛椼伄銈€儷銉曘偂銉欍儍銉堟暟銇岃冻銈娿伨銇涖倱"
#: src/error.c:70
#, c-format
msgid "The password contains less than %ld non-alphanumeric characters"
-msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伀銇<EFBFBD> %ld 鍊嬫湭婧€銇<EFBFBD><EFBFBD>鍙枫亴鍚<EFBFBD>伨銈屻仸銇勩伨銇欍€<EFBFBD>"
+msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伄銇<EFBFBD>惈銇俱倢銈嬨偄銉<EFBFBD>儠銈°儥銉冦儓浠ュ<EFBFBD><EFBFBD>枃瀛楁暟銇<EFBFBD> %ld 鍊嬫湭婧€銇с仚"
#: src/error.c:73
msgid "The password contains too few non-alphanumeric characters"
-msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伅瑷樺彿銇<EFBFBD>€嬫暟銇岃冻銈娿伨銇涖倱銆<EFBFBD>"
+msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伅銆併偄銉<EFBFBD>儠銈°儥銉冦儓浠ュ<EFBFBD><EFBFBD>枃瀛楁暟銇岃冻銈娿伨銇涖倱"
#: src/error.c:76
#, c-format
msgid "The password is shorter than %ld characters"
-msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伅 %ld 鏂囧瓧鏈<EFBFBD>簚銇<EFBFBD>枃瀛楀垪銇с仚銆<EFBFBD>"
+msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伅 %ld 鏂囧瓧鏈<EFBFBD>簚銇<EFBFBD>枃瀛楀垪銇с仚"
#: src/error.c:79
msgid "The password is too short"
-msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伅鐭<EFBFBD>亱銇欍亷銇俱仚銆<EFBFBD>"
+msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伅鐭<EFBFBD>亱銇欍亷銇俱仚"
#: src/error.c:81
msgid "The password is just rotated old one"
-msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伅鍗樸伀鍙ゃ亜銈傘伄銈掑洖杌€仌銇涖仧銇犮亼銇с仚銆<EFBFBD>"
+msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伅銆佸崢銇<EFBFBD>彜銇勩倐銇<EFBFBD>倰鍐嶅埄鐢ㄣ仐銇︺亜銇俱仚"
#: src/error.c:84
#, c-format
msgid "The password contains less than %ld character classes"
-msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伅 %ld 绋<EFBFBD><EFBFBD><EFBFBD>簚銇<EFBFBD>枃瀛椼伄绋<EFBFBD><EFBFBD>銇屽惈銇俱倢銇︺亜銇俱仚銆<EFBFBD>"
+msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伄鏂囧瓧銈<EFBFBD>儵銈广伅銆<EFBFBD>%ld 绋<EFBFBD><EFBFBD><EFBFBD>簚銇с仚"
#: src/error.c:87
msgid "The password does not contain enough character classes"
-msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伀鍚<EFBFBD>伨銈屻倠鏂囧瓧銇<EFBFBD>ó椤炴暟銇岃冻銈娿伨銇涖倱銆<EFBFBD>"
+msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伀鍚<EFBFBD>伨銈屻倠鏂囧瓧銈<EFBFBD>儵銈规暟銇岃冻銈娿伨銇涖倱"
#: src/error.c:90
#, c-format
msgid "The password contains more than %ld same characters consecutively"
-msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伅 %ld 鍊嬨倰瓒娿亪銈嬮€g稓銇欍倠鍚屻仒鏂囧瓧銇屽惈銇俱倢銇︺亜銇俱仚銆<EFBFBD>"
+msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伅銇<EFBFBD>伅銆<EFBFBD>%ld 鍊嬨倰瓒娿亪銈嬮€g稓銇欍倠鍚屻仒鏂囧瓧銇屽惈銇俱倢銇︺亜銇俱仚"
#: src/error.c:93
msgid "The password contains too many same characters consecutively"
-msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伀銇<EFBFBD>€g稓銇椼仸鍚屻仒鏂囧瓧銇屽惈銇俱倢銇︺亜銇俱仚銆<EFBFBD>"
+msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伄閫g稓銇椼仧鍚屻仒鏂囧瓧銇<EFBFBD>暟銇屽<EFBFBD>銇欍亷銇俱仚"
#: src/error.c:96
#, c-format
msgid ""
"The password contains more than %ld characters of the same class "
"consecutively"
-msgstr ""
-"銇撱伄銉戙偣銉<EFBFBD>兗銉夈伅 %ld 鍊嬨倰瓒娿亪銈嬮€g稓銇欍倠鍚屻仒绋<EFBFBD><EFBFBD><EFBFBD>枃瀛椼亴鍚<EFBFBD>伨銈屻仸銇勩伨銇欍€<EFBFBD>"
+msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伀銇<EFBFBD> %ld 鍊嬨倰瓒娿亪銈嬮€g稓銇欍倠鍚屻仒鏂囧瓧銈<EFBFBD>儵銈广伄鏂囧瓧銇屽惈銇俱倢銇︺亜銇俱仚"
#: src/error.c:99
msgid ""
"The password contains too many characters of the same class consecutively"
-msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伀銇<EFBFBD>€g稓銇椼仸鍚屻仒绋<EFBFBD><EFBFBD><EFBFBD>枃瀛椼亴鍚<EFBFBD>伨銈屻仸銇勩伨銇欍€<EFBFBD>"
+msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伅銆佸悓銇樻枃瀛椼偗銉┿偣鏂囧瓧銇<EFBFBD>€g稓銇屽<EFBFBD>銇欍亷銇俱仚"
#: src/error.c:102
#, c-format
msgid "The password contains monotonic sequence longer than %ld characters"
-msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伀銇<EFBFBD> %ld 鏂囧瓧銈堛倞闀枫亜鍗樿<EFBFBD><EFBFBD>枃瀛楀垪銇屽惈銇俱倢銇︺亜銇俱仚銆<EFBFBD>"
+msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伀銇<EFBFBD> %ld 鏂囧瓧銈堛倞闀枫亜鍗樿<EFBFBD><EFBFBD>枃瀛楀垪銇屽惈銇俱倢銇︺亜銇俱仚"
#: src/error.c:105
msgid "The password contains too long of a monotonic character sequence"
-msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伀銇<EFBFBD>暦銇欍亷銈嬪崢瑾裤仾鏂囧瓧鍒椼亴鍚<EFBFBD>伨銈屻仸銇勩伨銇欍€<EFBFBD>"
+msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伀銇<EFBFBD>€侀暦銇欍亷銈嬪崢瑾裤仾鏂囧瓧鍒椼亴鍚<EFBFBD>伨銈屻仸銇勩伨銇<EFBFBD>"
#: src/error.c:107
msgid "No password supplied"
-msgstr "銉戙偣銉<EFBFBD>兗銉夈亴涓庛亪銈夈倢銇︺亜銇俱仜銈撱€<EFBFBD>"
+msgstr "銉戙偣銉<EFBFBD>兗銉夈亴涓庛亪銈夈倢銇︺亜銇俱仜銈<EFBFBD>"
#: src/error.c:109
msgid "Cannot obtain random numbers from the RNG device"
-msgstr "RNG(涔辨暟鐧虹敓)銉囥儛銈ゃ偣銇嬨倝涔辨暟銈掑彇寰椼仚銈嬨亾銇ㄣ亴銇с亶銇俱仜銈撱€<EFBFBD>"
+msgstr "RNG (涔辨暟鐧虹敓) 銉囥儛銈ゃ偣銇嬨倝涔辨暟銈掑彇寰椼仚銈嬨亾銇ㄣ亴銇с亶銇俱仜銈<EFBFBD>"
#: src/error.c:111
msgid "Password generation failed - required entropy too low for settings"
-msgstr "銉戙偣銉<EFBFBD>兗銉夈伄鐢熸垚銇<EFBFBD>け鏁<EFBFBD> - 瑷<EFBFBD>畾銇<EFBFBD>繀瑕併仾銈ㄣ兂銉堛儹銉斻兗銇屽皬銇曘仚銇庛伨銇欍€<EFBFBD>"
+msgstr "銉戙偣銉<EFBFBD>兗銉夈伄鐢熸垚銇<EFBFBD>け鏁<EFBFBD>: 瑷<EFBFBD>畾銇<EFBFBD>繀瑕併仾銈ㄣ兂銉堛儹銉斻兗銇屽皬銇曘仚銇庛伨銇<EFBFBD>"
#: src/error.c:114 src/error.c:117
msgid "The password fails the dictionary check"
-msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伅杈炴浉銉併偋銉冦偗銇<EFBFBD>け鏁椼仐銇俱仐銇熴€<EFBFBD>"
+msgstr "銇撱伄銉戙偣銉<EFBFBD>兗銉夈伅杈炴浉銉併偋銉冦偗銇<EFBFBD>け鏁椼仐銇俱仐銇<EFBFBD>"
#: src/error.c:120 src/error.c:124
msgid "Unknown setting"
@@ -220,41 +217,41 @@ msgstr "鏈<EFBFBD>煡銇<EFBFBD>ō瀹<EFBFBD>"
#: src/error.c:127
msgid "Bad integer value of setting"
-msgstr "瑷<EFBFBD>畾銇<EFBFBD>壇銇忋仾銇勬暣鏁板瀷銇<EFBFBD>€ゃ仹銇欍€<EFBFBD>"
+msgstr "瑷<EFBFBD>畾銇<EFBFBD><EFBFBD>銇椼亸銇<EFBFBD>亜鏁存暟鍨嬨伄鍊ゃ仹銇<EFBFBD>"
#: src/error.c:131
msgid "Bad integer value"
-msgstr "鑹<EFBFBD>亸銇<EFBFBD>亜鏁存暟鍨嬨伄鍊ゃ仹銇欍€<EFBFBD>"
+msgstr "姝c仐銇忋仾銇勬暣鏁板瀷銇<EFBFBD>€ゃ仹銇<EFBFBD>"
#: src/error.c:134
#, c-format
msgid "Setting %s is not of integer type"
-msgstr "瑷<EFBFBD>畾 %s 銇<EFBFBD>暣鏁板瀷銇с伅銇傘倞銇俱仜銈撱€<EFBFBD>"
+msgstr "瑷<EFBFBD>畾 %s 銇<EFBFBD>暣鏁板瀷銇с伅銇傘倞銇俱仜銈<EFBFBD>"
#: src/error.c:138
msgid "Setting is not of integer type"
-msgstr "瑷<EFBFBD>畾銇<EFBFBD>暣鏁板瀷銇с伅銇傘倞銇俱仜銈撱€<EFBFBD>"
+msgstr "瑷<EFBFBD>畾銇<EFBFBD>暣鏁板瀷銇с伅銇傘倞銇俱仜銈<EFBFBD>"
#: src/error.c:141
#, c-format
msgid "Setting %s is not of string type"
-msgstr "瑷<EFBFBD>畾 %s 銇<EFBFBD>枃瀛楀垪鍨嬨仹銇<EFBFBD>亗銈娿伨銇涖倱銆<EFBFBD>"
+msgstr "瑷<EFBFBD>畾 %s 銇<EFBFBD>枃瀛楀垪鍨嬨仹銇<EFBFBD>亗銈娿伨銇涖倱"
#: src/error.c:145
msgid "Setting is not of string type"
-msgstr "瑷<EFBFBD>畾銇<EFBFBD>枃瀛楀垪鍨嬨仹銇<EFBFBD>亗銈娿伨銇涖倱銆<EFBFBD>"
+msgstr "瑷<EFBFBD>畾銇<EFBFBD>枃瀛楀垪鍨嬨仹銇<EFBFBD>亗銈娿伨銇涖倱"
#: src/error.c:147
msgid "Opening the configuration file failed"
-msgstr "瑷<EFBFBD>畾銉曘偂銈ゃ儷銈掗枊銇戙伨銇涖倱銆<EFBFBD>"
+msgstr "瑷<EFBFBD>畾銉曘偂銈ゃ儷銈掗枊銇戙伨銇涖倱銇с仐銇<EFBFBD>"
#: src/error.c:149
msgid "The configuration file is malformed"
-msgstr "瑷<EFBFBD>畾銉曘偂銈ゃ儷銇<EFBFBD>舰寮忋亴姝c仐銇忋亗銈娿伨銇涖倱銆<EFBFBD>"
+msgstr "瑷<EFBFBD>畾銉曘偂銈ゃ儷銇<EFBFBD>舰寮忋亴姝c仐銇忋亗銈娿伨銇涖倱"
#: src/error.c:151
msgid "Fatal failure"
-msgstr "鑷村懡鐨勩仾闅滃<EFBFBD>銇岀櫤鐢熴仐銇俱仐銇熴€<EFBFBD>"
+msgstr "鑷村懡鐨勩仾闅滃<EFBFBD>銇岀櫤鐢熴仐銇俱仐銇<EFBFBD>"
#: 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 "靷<EFBFBD>毄氩<EFBFBD>: %s <entropy-bits>\n"
#, c-format
msgid ""
"Warning: Value %ld is outside of the allowed entropy range, adjusting it.\n"
-msgstr ""
+msgstr "瓴疥碃: 臧<EFBFBD> %ld電<EFBFBD> 鞐旐姼搿滍敿 項堨毄 氩旍渼毳<EFBFBD> 齑堦臣頃橃榾鞀惦媹雼<EFBFBD>, 雼れ嫓 臁办爼頃<EFBFBD> 欤检劯鞖<EFBFBD>.\n"
#: src/error.c:31
msgid "Memory allocation error when setting"
@@ -92,7 +94,7 @@ msgstr "鞎旐樃臧€ 鞚挫爠 鞎旐樃鞕€ 雱堧<EFBFBD>
#: src/error.c:45
msgid "The password contains the user name in some form"
-msgstr "鞎旐樃鞐<EFBFBD> 鞏措枻 順曥嫕鞙茧<EFBFBD><EFBFBD>毄鞛<EFBFBD> 鞚措<EFBFBD><EFBFBD><EFBFBD>暔霅橃柎 鞛堨姷雼堧嫟 "
+msgstr "鞎旐樃鞐<EFBFBD><EFBFBD>毄鞛<EFBFBD> 鞚措<EFBFBD><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 "鞎旐樃臧€ 鞚挫爠 鞎旐樃毳<EFBFBD> 須岇<EFBFBD>
#: src/error.c:84
#, c-format
msgid "The password contains less than %ld character classes"
-msgstr "鞎旐樃鞐愲姅 %ld 氙鸽<EFBFBD><EFBFBD> 氍胳瀽 韥措灅鞀り皜 韽<EFBFBD>暔霅橃柎 鞛堨姷雼堧嫟"
+msgstr "鞎旐樃鞐<EFBFBD> %ld 氙鸽<EFBFBD><EFBFBD> 氍胳瀽 瓿勳棿鞚<EFBFBD> 霌れ柎鞛堨姷雼堧嫟"
#: src/error.c:87
msgid "The password does not contain enough character classes"
-msgstr "鞎旐樃鞐愲姅 於╇秳頃<EFBFBD> 氍胳瀽 韥措灅鞀り皜 韽<EFBFBD>暔霅橃柎 鞛堨<EFBFBD> 鞎婌姷雼堧嫟"
+msgstr "鞎旐樃鞐<EFBFBD> 雼れ枒頃<EFBFBD> 氍胳瀽 瓿勳棿鞚<EFBFBD> 氚橃榿頃橃<EFBFBD> 鞎婌晿鞀惦媹雼<EFBFBD>"
#: src/error.c:90
#, c-format
@@ -175,22 +177,21 @@ msgstr "鞎旐樃鞐愲姅 雱堧<EFBFBD> 毵庫潃 霃欖<EFBFBD>
msgid ""
"The password contains more than %ld characters of the same class "
"consecutively"
-msgstr ""
-"鞎旐樃鞐愲姅 %ld臧<EFBFBD> 鞚挫儊鞚<EFBFBD> 霃欖澕頃<EFBFBD> 韥措灅鞀<EFBFBD> 氍胳瀽臧€ 鞐办啀鞝侅溂搿<EFBFBD><EFBFBD>暔霅橃柎 鞛堨姷雼堧嫟"
+msgstr "鞎旐樃鞐<EFBFBD> %ld臧<EFBFBD> 鞚挫儊鞚<EFBFBD> 霃欖澕頃<EFBFBD> 瓿勳棿 氍胳瀽臧€ 鞐办啀鞙茧<EFBFBD> 霌れ柎鞛堨姷雼堧嫟"
#: src/error.c:99
msgid ""
"The password contains too many characters of the same class consecutively"
-msgstr "鞎旐樃鞐愲姅 雱堧<EFBFBD> 毵庫潃 霃欖澕頃<EFBFBD> 韥措灅鞀<EFBFBD> 氍胳瀽臧€ 鞐办啀鞝侅溂搿<EFBFBD><EFBFBD>暔霅橃柎 鞛堨姷雼堧嫟"
+msgstr "鞎旐樃鞐<EFBFBD> 霃欖澕頃<EFBFBD> 瓿勳棿 氍胳瀽臧€ 雱堧<EFBFBD> 毵庫澊 鞛堨姷雼堧嫟"
#: src/error.c:102
#, c-format
msgid "The password contains monotonic sequence longer than %ld characters"
-msgstr "鞎旐樃鞐<EFBFBD> %ld鞛愲ゼ 齑堦臣頃橂姅 雼<EFBFBD>“搿滌毚 氍胳瀽鞐挫澊 韽<EFBFBD>暔霅橃柎 鞛堨姷雼堧嫟."
+msgstr "鞎旐樃鞐<EFBFBD> %ld鞛愲ゼ 齑堦臣頃橂姅 雼<EFBFBD>“搿滌毚 氍胳瀽鞐挫澊 韽<EFBFBD>暔霅橃柎 鞛堨姷雼堧嫟"
#: src/error.c:105
msgid "The password contains too long of a monotonic character sequence"
-msgstr "鞎旐樃鞐<EFBFBD> 雱堧<EFBFBD><EFBFBD>“搿滌毚 氍胳瀽鞐挫澊 韽<EFBFBD>暔霅橃柎 鞛堨姷雼堧嫟."
+msgstr "鞎旐樃鞐<EFBFBD> 雱堧<EFBFBD><EFBFBD>“搿滌毚 氍胳瀽鞐挫澊 鞛堨姷雼堧嫟"
#: src/error.c:107
msgid "No password supplied"
@@ -202,49 +203,49 @@ msgstr "RNG 鞛レ箻鞐愳劀 鞛勳潣鞚<EFBFBD><EFBFBD><EFBFBD>
#: src/error.c:111
msgid "Password generation failed - required entropy too low for settings"
-msgstr "鞎旐樃 靸濎劚鞐<EFBFBD> 鞁ろ尐頄堨姷雼堧嫟 - 靹れ爼鞐<EFBFBD> 頃勳殧頃<EFBFBD> 鞐旐姼搿滍敿臧€ 雱堧<EFBFBD> 鞛戩姷雼堧嫟 "
+msgstr "鞎旐樃 靸濎劚 鞁ろ尐 - 頃勳殧頃<EFBFBD> 鞐旐姼搿滍敿 臧掛澊 雱堧<EFBFBD> 鞛戩姷雼堧嫟"
#: src/error.c:114 src/error.c:117
msgid "The password fails the dictionary check"
-msgstr "鞎旐樃電<EFBFBD><EFBFBD>爠 瓴€靷<EFBFBD>棎 鞁ろ尐頄堨姷雼堧嫟 "
+msgstr "鞎旐樃 靷<EFBFBD>爠 瓴€靷<EFBFBD>棎 鞁ろ尐頄堨姷雼堧嫟"
#: src/error.c:120 src/error.c:124
msgid "Unknown setting"
-msgstr "鞎<EFBFBD><EFBFBD> 鞐嗠姅 靹れ爼 "
+msgstr "鞎<EFBFBD><EFBFBD> 鞐嗠姅 靹れ爼"
#: src/error.c:127
msgid "Bad integer value of setting"
-msgstr "靹れ爼鞐<EFBFBD> 雽€頃<EFBFBD> 鞛橂<EFBFBD><EFBFBD> 鞝曥垬 臧<EFBFBD> "
+msgstr "靹れ爼鞐<EFBFBD> 雽€頃<EFBFBD> 鞛橂<EFBFBD><EFBFBD> 鞝曥垬 臧<EFBFBD>"
#: src/error.c:131
msgid "Bad integer value"
-msgstr "鞛橂<EFBFBD><EFBFBD> 鞝曥垬臧<EFBFBD> "
+msgstr "鞛橂<EFBFBD><EFBFBD> 鞝曥垬臧<EFBFBD>"
#: src/error.c:134
#, c-format
msgid "Setting %s is not of integer type"
-msgstr "靹れ爼 %s鞚€ 鞝曥垬 鞙犿槙鞚<EFBFBD> 鞎勲嫏雼堧嫟 "
+msgstr "靹れ爼 %s鞚€ 鞝曥垬 鞙犿槙鞚<EFBFBD> 鞎勲嫏雼堧嫟"
#: src/error.c:138
msgid "Setting is not of integer type"
-msgstr "靹れ爼鞚<EFBFBD> 鞝曥垬 鞙犿槙鞚<EFBFBD> 鞎勲嫏雼堧嫟 "
+msgstr "靹れ爼鞚<EFBFBD> 鞝曥垬 鞙犿槙鞚<EFBFBD> 鞎勲嫏雼堧嫟"
#: src/error.c:141
#, c-format
msgid "Setting %s is not of string type"
-msgstr "靹れ爼 %s鞚€ 氍胳瀽鞐<EFBFBD> 鞙犿槙鞚<EFBFBD> 鞎勲嫏雼堧嫟 "
+msgstr "靹れ爼 %s鞚€ 氍胳瀽鞐<EFBFBD> 鞙犿槙鞚<EFBFBD> 鞎勲嫏雼堧嫟"
#: src/error.c:145
msgid "Setting is not of string type"
-msgstr "靹れ爼鞚€ 氍胳瀽鞐<EFBFBD> 鞙犿槙鞚<EFBFBD> 鞎勲嫏雼堧嫟 "
+msgstr "靹れ爼鞚€ 氍胳瀽鞐<EFBFBD> 鞙犿槙鞚<EFBFBD> 鞎勲嫏雼堧嫟"
#: src/error.c:147
msgid "Opening the configuration file failed"
-msgstr "靹れ爼 韺岇澕 鞐搓赴鞐<EFBFBD> 鞁ろ尐頄堨姷雼堧嫟 "
+msgstr "靹れ爼 韺岇澕 鞐搓赴鞐<EFBFBD> 鞁ろ尐頄堨姷雼堧嫟"
#: src/error.c:149
msgid "The configuration file is malformed"
-msgstr "靹れ爼 韺岇澕鞚<EFBFBD> 鞛橂<EFBFBD>霅橃棃鞀惦媹雼<EFBFBD> "
+msgstr "靹れ爼 韺岇澕鞚<EFBFBD> 鞛橂<EFBFBD>霅橃棃鞀惦媹雼<EFBFBD>"
#: 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 "璀﹀憡锛<EFBFBD> %ld 鐨勫€煎湪鍏佽<EFBFBD>鐨勭喌鑼冨洿涔嬪<EFBFBD>锛岄渶瑕佽皟鏁村畠銆俓n"
#: src/error.c:31
msgid "Memory allocation error when setting"

311
SPECS/libpwquality.spec

@ -0,0 +1,311 @@ @@ -0,0 +1,311 @@
%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.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 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: 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
of random passwords that pass the checks.
This library uses the cracklib and cracklib dictionaries
to perform some of the checks.

%package devel
Summary: Support for development of applications using the libpwquality library
Requires: libpwquality%{?_isa} = %{version}-%{release}
Requires: pkgconfig

%description devel
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}

%description -n python3-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

%prep
%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} \
--with-python-binary=%{__python3} \
--disable-static

%make_build
%endif
%if %{with python3} && %{with python2}
popd
%endif

%install
%make_install

%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

%check
# Nothing yet

%ldconfig_scriptlets

%files -f libpwquality.lang
%license COPYING
%doc README NEWS AUTHORS
%{_bindir}/pwmake
%{_bindir}/pwscore
%{_moduledir}/pam_pwquality.so
%{_pwqlibdir}/libpwquality.so.*
%config(noreplace) %{_secconfdir}/pwquality.conf
%{_secconfdir}/pwquality.conf.d
%{_mandir}/man1/*
%{_mandir}/man5/*
%{_mandir}/man8/*

%files devel
%{_includedir}/pwquality.h
%{_libdir}/libpwquality.so
%{_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
* 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

* Wed Aug 04 2021 Dmitry Belyavskiy <dbelyavs@redhat.com> - 1.4.4-7
- Explicitly rebuild the localization
- Resolves: rhbz#1938621

* Mon Jul 26 2021 Dmitry Belyavskiy <dbelyavs@redhat.com> - 1.4.4-6
- rebuilt

* 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 Apr 29 2021 Dmitry Belyavskiy <dbelyavs@redhat.com> - 1.4.4-4
- cracklib-dicts is a hard requirement, not a recomendation.
- Resolves rhbz#1947882

* 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

* Tue Oct 13 2020 Tomáš Mráz <tmraz@redhat.com> 1.4.4-1
- Translation updates
- Fix regression with enabling the cracklib check during build

* Mon Oct 12 2020 Tomáš Mráz <tmraz@redhat.com> 1.4.3-1
- Multiple translation updates
- Add usersubstr check for substrings of N characters from the username
patch by Danny Sauer

* Mon Jul 13 2020 Tom Stellard <tstellar@redhat.com> - 1.4.2-4
- Use make macros
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro

* Thu Oct 31 2019 Tomáš Mráz <tmraz@redhat.com> 1.4.2-1
- Fix previous release regression in handling retry, enforce_for_root,
and local_users_only options

* Tue Sep 17 2019 Tomáš Mráz <tmraz@redhat.com> 1.4.1-1
- Disable python2 bindings in Fedora 31 and above
- Add conditionals for Python2 and Python3
- pam_pwquality: Abort the retry loop if user requests it
- Allow setting retry, enforce_for_root, and local_users_only options
in the pwquality.conf config file

* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.4.0-5
- Switch to %%ldconfig_scriptlets

* Sun Dec 17 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.4.0-4
- Python 2 binary package renamed to python2-pwquality
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3

* Fri May 26 2017 Tomáš Mráz <tmraz@redhat.com> 1.4.0-1
- Do not try to check presence of too short username in password
- Make the user name check optional (via usercheck option)
- Add an 'enforcing' option to make the checks to be warning-only
in PAM
- The difok = 0 setting will disable all old password similarity
checks except new and old passwords being identical
- Updated translations from Zanata

* Mon Aug 24 2015 Tomáš Mráz <tmraz@redhat.com> 1.3.0-2
- Fix possible stack overflow in the generate function (#1255935)

* Thu Jul 23 2015 Tomáš Mráz <tmraz@redhat.com> 1.3.0-1
- Change the defaults for credits, difok, and minlen
- Make the cracklib check optional but on by default
- Add implicit support for parsing <cfgfile>.d/*.conf files
- Add libpwquality API manual page

* Wed Aug 6 2014 Tomáš Mráz <tmraz@redhat.com> 1.2.4-1
- fix license handling (by Tom Callaway)
- add Python3 module subpackage

* Thu Sep 12 2013 Tomáš Mráz <tmraz@redhat.com> 1.2.3-1
- fix problem with parsing the pam_pwquality options
patch by Vladimir Sorokin.
- updated translations from Transifex
- treat empty user or password as NULL
- move the library to /usr

* Wed Jun 19 2013 Tomas Mraz <tmraz@redhat.com> 1.2.2-1
- manual page fixes
- make it possible to set the maxsequence configuration value
- updated translations from Transifex

* Thu Dec 20 2012 Tomas Mraz <tmraz@redhat.com> 1.2.1-1
- properly free pwquality settings
- add extern "C" to public header
- updated translations from Transifex

* Thu Aug 16 2012 Tomas Mraz <tmraz@redhat.com> 1.2.0-1
- add maxsequence check for too long monotonic character sequence.
- clarified alternative licensing to GPLv2+.
- add local_users_only option to skip the pwquality checks for
non-locals. (thanks to Stef Walter)

* Wed Jun 13 2012 Tomas Mraz <tmraz@redhat.com> 1.1.1-1
- use rpm built-in filtering of provides (rhbz#830153)
- remove strain debug fprintf() (rhbz#831567)

* Thu May 24 2012 Tomas Mraz <tmraz@redhat.com> 1.1.0-1
- fix leak when throwing PWQError exception
- added pkgconfig file
- call the simplicity checks before the cracklib check
- add enforce_for_root option to the PAM module
- updated translations from Transifex

* Thu Dec 8 2011 Tomas Mraz <tmraz@redhat.com> 1.0.0-1
- added a few additional password quality checks
- bugfix in configuration file parsing

* Fri Nov 11 2011 Tomas Mraz <tmraz@redhat.com> 0.9.9-1
- added python bindings and documentation

* Mon Oct 10 2011 Tomas Mraz <tmraz@redhat.com> 0.9-2
- fixes for problems found in review (missing BR on pam-devel,
License field, Source URL, Require pam, other cleanups)

* Mon Oct 3 2011 Tomas Mraz <tmraz@redhat.com> 0.9-1
- first spec file for libpwquality
Loading…
Cancel
Save