File proprietary-fonts.spec of Package proprietary-fonts
#
# Spec File
#
# -- Proprietary Software --
Name: proprietary-fonts
Version: 7
Release: 0
Summary: Personal Collection of Proprietary Fonts
License: Proprietary
Group: System/X11/Fonts
Url: https://github.com/maydayv7/proprietary
Source: fonts.zip
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: unzip
BuildArch: noarch
%description
My Personal Collection of Proprietary Fonts
%prep
%setup -c -q
%build
%install
install -dm 0755 %{buildroot}%{_datadir}/fonts/truetype
install -Dm 0644 */*.ttf %{buildroot}%{_datadir}/fonts/truetype/
%clean
[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
%files
%defattr(-,root,root)
%dir %{_datadir}/fonts/truetype/
%{_datadir}/fonts/truetype/*
%post
if [ -x /usr/bin/fc-cache ]
then
/usr/bin/fc-cache || :
fi
%postun
if [ $1 -eq 0 -a -x /usr/bin/fc-cache ]
then
/usr/bin/fc-cache || :
fi
%changelog