Name:     a11y-sound-theme
Version:  1
Release:  2
Summary:  Linux-A11y sound themes
License:  GPL-3.0

BuildRequires: git

SOURCE1:  12-a11y

%description
RPM package with Linux-A11y sound themes

%prep

%build
git clone https://github.com/coffeeking/linux-a11y-sound-theme.git

%install
install -d %{buildroot}%{_datadir}/sounds/
cp -r linux-a11y-sound-theme/linux-a11y %{buildroot}%{_datadir}/sounds/
install -d %{buildroot}%{_sysconfdir}/dconf/db/distro.d
install %{SOURCE1} %{buildroot}%{_sysconfdir}/dconf/db/distro.d/12-a11y

%files
%{_datadir}/sounds/linux-a11y
%{_sysconfdir}/dconf/db/distro.d/12-a11y

%post
dconf update

%postrm
dconf update

%clean
rm -rf linux-a11y-sound-theme

%changelog
* Sat Jun 10 2023 Konstantin Kuminsky <k.k@redhat.com> - 1-2
- First linux-a11y-sounds-theme package