From fa51b1f1ca4b314f217febc867f5dfe819329f75 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Mon, 4 May 2026 19:04:54 -0500 Subject: [PATCH] add: dirsync (#11924) (#11925) (cherry picked from commit 6e629440f3dc551951c3aa377848a35b58a34063) Signed-off-by: Owen-sz Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> --- anda/langs/python/dirsync/anda.hcl | 6 ++++ anda/langs/python/dirsync/dirsync.spec | 46 ++++++++++++++++++++++++++ anda/langs/python/dirsync/update.rhai | 1 + 3 files changed, 53 insertions(+) create mode 100644 anda/langs/python/dirsync/anda.hcl create mode 100644 anda/langs/python/dirsync/dirsync.spec create mode 100644 anda/langs/python/dirsync/update.rhai diff --git a/anda/langs/python/dirsync/anda.hcl b/anda/langs/python/dirsync/anda.hcl new file mode 100644 index 0000000000..e020703ef7 --- /dev/null +++ b/anda/langs/python/dirsync/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "dirsync.spec" + } +} diff --git a/anda/langs/python/dirsync/dirsync.spec b/anda/langs/python/dirsync/dirsync.spec new file mode 100644 index 0000000000..371c33660f --- /dev/null +++ b/anda/langs/python/dirsync/dirsync.spec @@ -0,0 +1,46 @@ +%global pypi_name dirsync +%global _desc Advanced directory tree synchronisation tool. + +Name: python-%{pypi_name} +Version: 2.2.6 +Release: 1%{?dist} +Summary: Advanced directory tree synchronisation tool +License: MIT +URL: https://github.com/domdfcoding/deprecation-alias +Source0: %{pypi_source} + +BuildRequires: python3-devel +BuildRequires: python3-pip +BuildRequires: python3-setuptools +BuildArch: noarch + +Packager: Owen Zimmerman + +%description +%_desc + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +%_desc + +%prep +%autosetup -n %{pypi_name}-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files %{pypi_name} + +%files -n python3-%{pypi_name} -f %{pyproject_files} +%doc README.rst +%license LICENSE.txt +%{_bindir}/%{pypi_name} + +%changelog +* Mon May 04 2026 Owen Zimmerman +- Initial commit diff --git a/anda/langs/python/dirsync/update.rhai b/anda/langs/python/dirsync/update.rhai new file mode 100644 index 0000000000..1b94711ff1 --- /dev/null +++ b/anda/langs/python/dirsync/update.rhai @@ -0,0 +1 @@ +rpm.version(pypi("dirsync"));