[packages/duplicity] - fix/remove bogus locales, rel 2
baggins
baggins at pld-linux.org
Thu Sep 21 16:23:08 CEST 2023
commit b748bcec467391f229a73fd2f0f1e2e5c27f1238
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Thu Sep 21 15:42:54 2023 +0200
- fix/remove bogus locales, rel 2
duplicity.spec | 18 +++++++++++---
locale.patch | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 91 insertions(+), 3 deletions(-)
---
diff --git a/duplicity.spec b/duplicity.spec
index 44b9e44..08db926 100644
--- a/duplicity.spec
+++ b/duplicity.spec
@@ -2,17 +2,17 @@ Summary: Untrusted/encrypted backup using rsync algorithm
Summary(pl.UTF-8): Wykonywanie szyfrowanych kopii zapasowych przy użyciu algorytmu rsync
Name: duplicity
Version: 2.1.1
-Release: 1
+Release: 2
License: GPL v2
Group: Applications/Archiving
Source0: https://gitlab.com/duplicity/duplicity/-/archive/rel.%{version}/%{name}-rel.%{version}.tar.bz2
# Source0-md5: 7064f8a6b176a8d095406509ddf5451a
URL: http://www.nongnu.org/duplicity/
-BuildRequires: rpmbuild(macros) >= 1.710
BuildRequires: librsync-devel >= 0.9.6
BuildRequires: python3-devel
BuildRequires: python3-modules
BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.710
Requires: gnupg
Requires: python3
Requires: python3-lockfile
@@ -51,6 +51,18 @@ nie twarde dowiązania.
%{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+python3(\s|$),#!%{__python3}\1,' \
bin/duplicity
+%{__rm} po/{en_PR,es_EM,es_US,nl_SR,ru_BY,ru_MD,ru_UA,zh_MO,zh_SG}.po
+
+cd po
+for f in *.po ; do
+ case $(basename $f .po) in
+ de_AT|en_AU|en_GB|es_MX|es_PR|nl_BE|pt_BR|zh_CN|zh_HK|zh_TW) continue
+ ;;
+ *) %{__mv} $f ${f%%_*}.po
+ ;;
+ esac
+done
+
%build
%py3_build
@@ -59,7 +71,7 @@ rm -rf $RPM_BUILD_ROOT
%py3_install
-%{__rm} -rf $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
%find_lang %{name}
diff --git a/locale.patch b/locale.patch
new file mode 100644
index 0000000..c68f25c
--- /dev/null
+++ b/locale.patch
@@ -0,0 +1,76 @@
+--- duplicity-rel.2.1.1/po/LINGUAS~ 2023-09-02 17:53:58.000000000 +0200
++++ duplicity-rel.2.1.1/po/LINGUAS 2023-09-21 15:32:48.304720718 +0200
+@@ -1,46 +1,38 @@
+-af_ZA
+-ar_SA
+-ca_ES
+-cs_CZ
+-da_DK
++af
++ar
++ca
++cs
++da
+ de_AT
+-de_DE
+-el_GR
++de
++el
+ en_AU
+ en_GB
+-en_PR
+-en_US
++en
+ es_EM
+-es_ES
++es
+ es_MX
+ es_PR
+-es_US
+-fi_FI
+-fr_FR
+-he_IL
+-hu_HU
+-it_IT
+-ja_JP
+-ko_KR
++fi
++fr
++he
++hu
++it
++ja
++ko
+ nl_BE
+-nl_NL
+-nl_SR
+-no_NO
+-pl_PL
++nl
++nb
++pl
+ pt_BR
+-pt_PT
+-ro_RO
+-ru_BY
+-ru_MD
+-ru_RU
+-ru_UA
+-sr_SP
+-sv_SE
+-tr_TR
+-uk_UA
+-vi_VN
++pt
++ro
++ru
++sr
++sv
++tr
++uk
++vi
+ zh_CN
+ zh_HK
+-zh_MO
+-zh_SG
+ zh_TW
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/duplicity.git/commitdiff/b748bcec467391f229a73fd2f0f1e2e5c27f1238
More information about the pld-cvs-commit
mailing list