add: copyparty file server (#5968) (#5976)

* add: copyparty file server



* tools/copyparty: Use python macros as suggested, increment version



* tools/copyparty: Add update.rhai



* tools/copyparty: extend use of pypi macros



---------


(cherry picked from commit 8d181a988b)

Signed-off-by: Riley Loo <dev@zackerthescar.com>
Co-authored-by: r/c/s <38077284+zackerthescar@users.noreply.github.com>
This commit is contained in:
Raboneko
2025-07-30 18:17:34 -07:00
committed by GitHub
parent 0cce104dbc
commit 497b7617ca
3 changed files with 61 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "copyparty.spec"
}
}
+55
View File
@@ -0,0 +1,55 @@
%global pypi_name copyparty
Name: %{pypi_name}
Version: 1.18.6
Release: 1%?dist
Summary: Portable, featureful, and fast file server
URL: https://github.com/9001/copyparty
Source0: %{pypi_source}
License: MIT
BuildRequires: python3-devel python3-pip pyproject-rpm-macros
BuildRequires: python3dist(wheel) python3dist(build) python3dist(jinja2)
BuildRequires: python3dist(setuptools) python3dist(installer)
Requires: python3
Suggests: ffmpeg python3dist(fuse)
BuildArch: noarch
Packager: Riley Loo <dev@zackerthescar.com>
%description
Portable file server with accelerated resumable uploads, dedup, WebDAV,
FTP, TFTP, zeroconf, media indexer, thumbnails++ all in one file, no
(runtime) deps (other than Python itself)
%package -n python3-%{pypi_name}
Summary: %{summary}
%description -n python3-%{pypi_name}
Portable file server with accelerated resumable uploads, dedup, WebDAV,
FTP, TFTP, zeroconf, media indexer, thumbnails++ all in one file, no
(runtime) deps (other than Python itself)
%prep
%autosetup -n copyparty-%version
%build
%pyproject_wheel
%install
%pyproject_install
%files
%license LICENSE
%doc README.md
%{_bindir}/copyparty
%{_bindir}/partyfuse
%{_bindir}/u2c
%files -n python3-%{pypi_name}
%{python3_sitelib}/%{pypi_name}*
%changelog
* Mon Jul 28 2025 Riley Loo <dev@zackerthescar.com>
- Initial package
+1
View File
@@ -0,0 +1 @@
rpm.version(pypi("copyparty"));