]> git.pld-linux.org Git - packages/duplicity.git/commitdiff
- fix/remove bogus locales, rel 2 master auto/th/duplicity-2.1.1-2
authorJan Rękorajski <baggins@pld-linux.org>
Thu, 21 Sep 2023 13:42:54 +0000 (15:42 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Thu, 21 Sep 2023 13:42:54 +0000 (15:42 +0200)
duplicity.spec
locale.patch [new file with mode: 0644]

index 44b9e44e87f311af874996efa26d198e256e04db..08db926bd141c9c21bf2616b06eae13007a99393 100644 (file)
@@ -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 (file)
index 0000000..c68f25c
--- /dev/null
@@ -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
This page took 0.151474 seconds and 4 git commands to generate.