liberation-fonts
This commit is contained in:
parent
3f39c6ca44
commit
022ac32fe8
@ -0,0 +1 @@
|
||||
liberation-fonts-ttf-2.tar.gz
|
23
59-liberation-fonts.conf
Normal file
23
59-liberation-fonts.conf
Normal file
@ -0,0 +1,23 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
||||
<fontconfig>
|
||||
<!-- Assign generic name -->
|
||||
<alias>
|
||||
<family>Liberation Sans</family>
|
||||
<default>
|
||||
<family>sans-serif</family>
|
||||
</default>
|
||||
</alias>
|
||||
<alias>
|
||||
<family>Liberation Serif</family>
|
||||
<default>
|
||||
<family>serif</family>
|
||||
</default>
|
||||
</alias>
|
||||
<alias>
|
||||
<family>Liberation Mono</family>
|
||||
<default>
|
||||
<family>monospace</family>
|
||||
</default>
|
||||
</alias>
|
||||
</fontconfig>
|
78
liberation-fonts.spec
Normal file
78
liberation-fonts.spec
Normal file
@ -0,0 +1,78 @@
|
||||
Summary: Fonts to replace commonly used Microsoft Windows Fonts
|
||||
Name: liberation-fonts
|
||||
Version: 0.1
|
||||
Release: 8%{?dist}
|
||||
License: GPL + font exception
|
||||
Group: User Interface/X
|
||||
URL: https://www.redhat.com/promo/fonts/
|
||||
Source0: https://www.redhat.com/f/fonts/liberation-fonts-ttf-2.tar.gz
|
||||
Source1: 59-liberation-fonts.conf
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||
BuildArch: noarch
|
||||
# for /etc/fonts/conf.d
|
||||
Requires: fontconfig
|
||||
|
||||
%description
|
||||
The Liberation Fonts are intended to be replacements for the three
|
||||
most commonly used fonts on Microsoft systems: Times New Roman,
|
||||
Arial, and Courier New.
|
||||
|
||||
%prep
|
||||
%setup -q -c
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
# fonts
|
||||
install -m 0755 -d %{buildroot}%{_datadir}/fonts/liberation
|
||||
install -m 0644 *.ttf %{buildroot}%{_datadir}/fonts/liberation
|
||||
# configuration
|
||||
install -m 0755 -d %{buildroot}%{_sysconfdir}/fonts/conf.d
|
||||
install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/fonts/conf.d
|
||||
|
||||
%post
|
||||
if [ -x /usr/bin/fc-cache ]; then
|
||||
/usr/bin/fc-cache %{_datadir}/fonts
|
||||
fi
|
||||
|
||||
%postun
|
||||
if [ "$1" = "0" ]; then
|
||||
if [ -x /usr/bin/fc-cache ]; then
|
||||
/usr/bin/fc-cache %{_datadir}/fonts
|
||||
fi
|
||||
fi
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc License.txt COPYING
|
||||
%{_datadir}/fonts/liberation
|
||||
%config(noreplace) %{_sysconfdir}/fonts/conf.d/59-liberation-fonts.conf
|
||||
|
||||
%changelog
|
||||
* Tue May 15 2007 Matthias Clasen <mclasen@redhat.com> 0.1-8
|
||||
- Change the license tag to "GPL + font exception"
|
||||
|
||||
* Mon May 14 2007 Matthias Clasen <mclasen@redhat.com> 0.1-7
|
||||
- Correct the source url
|
||||
|
||||
* Mon May 14 2007 Matthias Clasen <mclasen@redhat.com> 0.1-6
|
||||
- Incorporate package review feedback
|
||||
|
||||
* Fri May 11 2007 Matthias Clasen <mclasen@redhat.com> 0.1-5
|
||||
- Bring the package in sync with Fedora packaging standards
|
||||
|
||||
* Wed Apr 25 2007 Meethune Bhowmick <bhowmick@redhat.com> 0.1-4
|
||||
- Require fontconfig package for post and postun
|
||||
|
||||
* Tue Apr 24 2007 Meethune Bhowmick <bhowmick@redhat.com> 0.1-3
|
||||
- Bump version to fix issue in RHEL4 RHN
|
||||
|
||||
* Thu Mar 29 2007 Richard Monk <rmonk@redhat.com> 0.1-2rhis
|
||||
- New license file
|
||||
|
||||
* Thu Mar 29 2007 Richard Monk <rmonk@redhat.com> 0.1-1rhis
|
||||
- Inital packaging
|
Loading…
Reference in New Issue
Block a user