[packages/dnf5] - add PLD repo configs

baggins baggins at pld-linux.org
Sun Feb 16 15:37:46 CET 2025


commit 34dfe43a5cf029bd190a85ddffaa3b7b9be5c9f0
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Feb 16 15:57:19 2025 +0100

    - add PLD repo configs

 dnf5.spec          | 20 +++++++++++++++++
 pld-archive.repo   | 31 +++++++++++++++++++++++++++
 pld-debuginfo.repo | 32 +++++++++++++++++++++++++++
 pld-multilib.repo  | 33 ++++++++++++++++++++++++++++
 pld-source.repo    | 32 +++++++++++++++++++++++++++
 pld.repo           | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 6 files changed, 211 insertions(+)
---
diff --git a/dnf5.spec b/dnf5.spec
index 879e989..b4a66e4 100644
--- a/dnf5.spec
+++ b/dnf5.spec
@@ -37,6 +37,11 @@ Release:	1
 License:	GPL v2+
 Source0:	https://github.com/rpm-software-management/dnf5/archive/%{version}/%{name}-%{version}.tar.gz
 # Source0-md5:	118b176708e1c463ce56f371725c8905
+Source10:	pld.repo
+Source11:	pld-source.repo
+Source12:	pld-debuginfo.repo
+Source13:	pld-archive.repo
+Source14:	pld-multilib.repo
 Patch0:		repos.d.patch
 Patch1:		uname-cpuinfo-deps.patch
 Patch2:		systemdunitdir.patch
@@ -413,6 +418,21 @@ install -d $RPM_BUILD_ROOT%{systemdunitdir}/system-update.target.wants
 ln -sr $RPM_BUILD_ROOT%{systemdunitdir}{,/system-update.target.wants}/dnf5-offline-transaction.service
 %endif
 
+cp -p %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} $RPM_BUILD_ROOT%{_sysconfdir}/dnf/repos.d/
+
+%ifarch %{x8664} x32
+%ifarch %{x8664}
+	%define		ftp_alt_arch	i686
+	%define		ftp_alt2_arch	x32
+%endif
+%ifarch x32
+	%define		ftp_alt_arch	x86_64
+	%define		ftp_alt2_arch	i686
+%endif
+	%{__sed} 's|@ARCH@|%{ftp_alt_arch}|g' < %{SOURCE14} > $RPM_BUILD_ROOT%{_sysconfdir}/dnf/repos.d/pld-%{ftp_alt_arch}.repo
+	%{__sed} 's|@ARCH@|%{ftp_alt2_arch}|g' < %{SOURCE14} > $RPM_BUILD_ROOT%{_sysconfdir}/dnf/repos.d/pld-%{ftp_alt2_arch}.repo
+%endif
+
 %find_lang dnf5
 %find_lang dnf5-plugin-builddep
 %find_lang dnf5-plugin-changelog
diff --git a/pld-archive.repo b/pld-archive.repo
new file mode 100644
index 0000000..69b44d0
--- /dev/null
+++ b/pld-archive.repo
@@ -0,0 +1,31 @@
+# PLD Linux <https://www.pld-linux.org/>
+
+[th-archive-arch]
+name=PLD Linux (Th) Archive - Architecture specific
+baseurl=https://ftp.th.pld-linux.org/dists/th/PLD/$arch/RPMS/
+enabled=0
+repo_gpgcheck=0
+type=rpm
+gpgcheck=1
+gpgkey=https://ftp.th.pld-linux.org/dists/th/PLD-3.0-Th-GPG-key.asc
+skip_if_unavailable=False
+
+[th-archive-noarch]
+name=PLD Linux (Th) Archive - Architecture independent
+baseurl=https://ftp.th.pld-linux.org/dists/th/PLD/noarch/RPMS/
+enabled=0
+repo_gpgcheck=0
+type=rpm
+gpgcheck=1
+gpgkey=https://ftp.th.pld-linux.org/dists/th/PLD-3.0-Th-GPG-key.asc
+skip_if_unavailable=False
+
+[th-archive-source]
+name=PLD Linux (Th) Archive - Source
+baseurl=https://ftp.th.pld-linux.org/dists/th/PLD/SRPMS/RPMS/
+enabled=0
+repo_gpgcheck=0
+type=rpm
+gpgcheck=1
+gpgkey=https://ftp.th.pld-linux.org/dists/th/PLD-3.0-Th-GPG-key.asc
+skip_if_unavailable=False
diff --git a/pld-debuginfo.repo b/pld-debuginfo.repo
new file mode 100644
index 0000000..0f1978f
--- /dev/null
+++ b/pld-debuginfo.repo
@@ -0,0 +1,32 @@
+# PLD Linux <https://www.pld-linux.org/>
+
+[th-debuginfo]
+name=PLD Linux (Th) Debuginfo
+baseurl=https://ftp.th.pld-linux.org/dists/th/PLD/$arch/debuginfo/
+enabled=0
+repo_gpgcheck=0
+type=rpm
+gpgcheck=1
+gpgkey=https://ftp.th.pld-linux.org/dists/th/PLD-3.0-Th-GPG-key.asc
+skip_if_unavailable=False
+
+[th-ready-debuginfo]
+name=PLD Linux (Th) Debuginfo (ready)
+baseurl=https://ftp.th.pld-linux.org/dists/th/ready/$arch/debuginfo/
+enabled=0
+metadata_expire=1d
+repo_gpgcheck=0
+type=rpm
+gpgcheck=1
+gpgkey=https://ftp.th.pld-linux.org/dists/th/PLD-3.0-Th-GPG-key.asc
+skip_if_unavailable=False
+
+[th-test-debuginfo]
+name=PLD Linux (Th) Debuginfo (test)
+baseurl=https://ftp.th.pld-linux.org/dists/th/test/$arch/debuginfo/
+enabled=0
+metadata_expire=0
+repo_gpgcheck=0
+type=rpm
+gpgcheck=0
+skip_if_unavailable=False
diff --git a/pld-multilib.repo b/pld-multilib.repo
new file mode 100644
index 0000000..3924b32
--- /dev/null
+++ b/pld-multilib.repo
@@ -0,0 +1,33 @@
+# PLD Linux <https://www.pld-linux.org/>
+
+[th- at ARCH@]
+name=PLD Linux (Th) @ARCH@
+baseurl=https://ftp.th.pld-linux.org/dists/th/PLD/@ARCH@/RPMS/
+enabled=0
+repo_gpgcheck=0
+type=rpm
+gpgcheck=1
+gpgkey=https://ftp.th.pld-linux.org/dists/th/PLD-3.0-Th-GPG-key.asc
+skip_if_unavailable=False
+
+[th-ready- at ARCH@]
+name=PLD Linux (Th) (ready) @ARCH@
+baseurl=https://ftp.th.pld-linux.org/dists/th/ready/@ARCH@/RPMS/
+enabled=0
+metadata_expire=1d
+repo_gpgcheck=0
+type=rpm
+gpgcheck=1
+gpgkey=https://ftp.th.pld-linux.org/dists/th/PLD-3.0-Th-GPG-key.asc
+skip_if_unavailable=False
+
+[th-test- at ARCH@]
+name=PLD Linux (Th) (test) @ARCH@
+baseurl=https://ftp.th.pld-linux.org/dists/th/test/@ARCH@/RPMS/
+gpgkey=https://ftp.th.pld-linux.org/dists/th/PLD-3.0-Th-GPG-key.asc
+enabled=0
+metadata_expire=0
+repo_gpgcheck=0
+type=rpm
+gpgcheck=0
+skip_if_unavailable=False
diff --git a/pld-source.repo b/pld-source.repo
new file mode 100644
index 0000000..053034b
--- /dev/null
+++ b/pld-source.repo
@@ -0,0 +1,32 @@
+# PLD Linux <https://www.pld-linux.org/>
+
+[th-source]
+name=PLD Linux (Th) Source
+baseurl=https://ftp.th.pld-linux.org/dists/th/PLD/SRPMS/RPMS/
+enabled=0
+repo_gpgcheck=0
+type=rpm
+gpgcheck=1
+gpgkey=https://ftp.th.pld-linux.org/dists/th/PLD-3.0-Th-GPG-key.asc
+skip_if_unavailable=False
+
+[th-ready-source]
+name=PLD Linux (Th) Source (ready)
+baseurl=https://ftp.th.pld-linux.org/dists/th/ready/SRPMS/RPMS/
+enabled=0
+metadata_expire=1d
+repo_gpgcheck=0
+type=rpm
+gpgcheck=1
+gpgkey=https://ftp.th.pld-linux.org/dists/th/PLD-3.0-Th-GPG-key.asc
+skip_if_unavailable=False
+
+[th-test-source]
+name=PLD Linux (Th) Source (test)
+baseurl=https://ftp.th.pld-linux.org/dists/th/test/SRPMS/RPMS/
+enabled=0
+metadata_expire=0
+repo_gpgcheck=0
+type=rpm
+gpgcheck=0
+skip_if_unavailable=False
diff --git a/pld.repo b/pld.repo
new file mode 100644
index 0000000..8c15cf7
--- /dev/null
+++ b/pld.repo
@@ -0,0 +1,63 @@
+# PLD Linux <https://www.pld-linux.org/>
+
+[th-arch]
+name=PLD Linux (Th) - Architecture specific
+baseurl=https://ftp.th.pld-linux.org/dists/th/PLD/$arch/RPMS/
+enabled=1
+repo_gpgcheck=0
+type=rpm
+gpgcheck=1
+gpgkey=https://ftp.th.pld-linux.org/dists/th/PLD-3.0-Th-GPG-key.asc
+skip_if_unavailable=False
+
+[th-noarch]
+name=PLD Linux (Th) - Architecture independent
+baseurl=https://ftp.th.pld-linux.org/dists/th/PLD/noarch/RPMS/
+enabled=1
+repo_gpgcheck=0
+type=rpm
+gpgcheck=1
+gpgkey=https://ftp.th.pld-linux.org/dists/th/PLD-3.0-Th-GPG-key.asc
+skip_if_unavailable=False
+
+[th-ready-arch]
+name=PLD Linux (Th) (ready) - Architecture specific
+baseurl=https://ftp.th.pld-linux.org/dists/th/ready/$arch/RPMS/
+enabled=0
+metadata_expire=1d
+repo_gpgcheck=0
+type=rpm
+gpgcheck=1
+gpgkey=https://ftp.th.pld-linux.org/dists/th/PLD-3.0-Th-GPG-key.asc
+skip_if_unavailable=False
+
+[th-ready-noarch]
+name=PLD Linux (Th) (ready) - Architecture independent
+baseurl=https://ftp.th.pld-linux.org/dists/th/ready/noarch/RPMS/
+enabled=0
+metadata_expire=1d
+repo_gpgcheck=0
+type=rpm
+gpgcheck=1
+gpgkey=https://ftp.th.pld-linux.org/dists/th/PLD-3.0-Th-GPG-key.asc
+skip_if_unavailable=False
+
+[th-test-arch]
+name=PLD Linux (Th) (test) - Architecture specific
+baseurl=https://ftp.th.pld-linux.org/dists/th/test/$arch/RPMS/
+enabled=0
+metadata_expire=0
+repo_gpgcheck=0
+type=rpm
+gpgcheck=0
+skip_if_unavailable=False
+
+[th-test-noarch]
+name=PLD Linux (Th) (test) - Architecture independent
+baseurl=https://ftp.th.pld-linux.org/dists/th/test/noarch/RPMS/
+enabled=0
+metadata_expire=0
+repo_gpgcheck=0
+type=rpm
+gpgcheck=0
+skip_if_unavailable=False
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/dnf5.git/commitdiff/34dfe43a5cf029bd190a85ddffaa3b7b9be5c9f0



More information about the pld-cvs-commit mailing list