File piper-voices-pl.spec of Package piper-voices
#
# spec file for package piper-voices
#
# Copyright (c) 2024 Andreas Schneider
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%global lang pl
%global pkgname piper-voices
Name: piper-voices-%{lang}
Version: 1.0.0
Release: 0
Summary: Voice files for Piper TTS
License: CC-BY-4.0 and CC-BY-SA-4.0 and CC-BY-NC-SA-4.0 and CC0-1.0 and Unlicense
URL: https://huggingface.co/rhasspy/piper-voices/
# Created with: prepare_sources.sh
# Note that you need git-lfs installed to create the tarball
Source0: piper-voices-%{lang}-%{version}.tar.zst
BuildArch: noarch
BuildRequires: rsync
BuildRequires: zstd
BuildRequires: piper-voices
Requires: piper-voices
%description
Voice files for Piper text to speech system.
%prep
%autosetup -p1 -n %{pkgname}
%build
# empty
%install
install -d -m 0755 %{buildroot}%{_datadir}/%{pkgname}
rsync -av --exclude="_script" ./* %{buildroot}%{_datadir}/%{pkgname}/
# Remove executable bits
find %{buildroot}%{_datadir}/%{pkgname} -type f -print0 | xargs -0 chmod 0644
rm -f %{buildroot}%{_datadir}/%{pkgname}/README.md
%files
%doc README.md
%{_datadir}/%{pkgname}/%{lang}
%changelog