sound-theme-freedesktop/sound-theme-freedesktop.spec

52 lines
1.4 KiB
RPMSpec

Name: sound-theme-freedesktop
Version: 0.1
Release: 2%{?dist}
Summary: freedesktop.org sound theme
Group: User Interface/Desktops
Source0: http://0pointer.de/public/sound-theme-freedesktop.tar.gz
# For details on the licenses used, see README
License: GPLv2+ and LGPLv2+ and CC-BY-SA and CC-BY
Url: http://0pointer.de/public/sound-theme-freedesktop.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Requires(post): /bin/touch
Requires(postun): /bin/touch
%description
The default freedesktop.org sound theme following the XDG theming
specification. (http://0pointer.de/public/sound-theme-spec.html).
%prep
%setup -q -n freedesktop
%build
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/sounds/freedesktop
cp -av index.theme stereo/ $RPM_BUILD_ROOT%{_datadir}/sounds/freedesktop
%clean
rm -rf $RPM_BUILD_ROOT
%post
/bin/touch --no-create %{_datadir}/sounds/freedesktop
%postun
/bin/touch --no-create %{_datadir}/sounds/freedesktop
%files
%defattr(-,root,root)
%doc README
%dir %{_datadir}/sounds/freedesktop
%dir %{_datadir}/sounds/freedesktop/stereo
%{_datadir}/sounds/freedesktop/index.theme
%{_datadir}/sounds/freedesktop/stereo/*.ogg
%changelog
* Mon Aug 11 2008 Jeremy Katz <katzj@redhat.com> - 0.1-2
- require touch for scriptlets to not give errors
* Sun Jun 15 2008 Lennart Poettering <lpoetter@redhat.com> 0.1-1
- Initial package