2007-09-12 12:22:53 +00:00
|
|
|
%define fontdir %{_datadir}/fonts/liberation
|
|
|
|
%define catalogue %{_sysconfdir}/X11/fontpath.d
|
|
|
|
|
2007-05-15 16:29:58 +00:00
|
|
|
Summary: Fonts to replace commonly used Microsoft Windows Fonts
|
|
|
|
Name: liberation-fonts
|
2008-01-14 06:22:06 +00:00
|
|
|
Version: 1.0
|
2008-03-31 15:49:06 +00:00
|
|
|
Release: 4%{?dist}
|
|
|
|
# The license of the Liberation Fonts is a EULA that contains
|
|
|
|
# GPLv2 and two exceptions:
|
|
|
|
# The first exception is the standard FSF font exception.
|
|
|
|
# The second exception is an anti-lockdown clause somewhat like
|
|
|
|
# the one in GPLv3. This license is Free, but GPLv2 and GPLv3
|
|
|
|
# incompatible.
|
|
|
|
License: Liberation
|
2007-05-15 16:29:58 +00:00
|
|
|
Group: User Interface/X
|
|
|
|
URL: https://www.redhat.com/promo/fonts/
|
2008-01-14 06:22:06 +00:00
|
|
|
Source0: liberation-fonts.tar.gz
|
|
|
|
Source1: COPYING
|
|
|
|
Source2: License.txt
|
2007-05-15 16:29:58 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
BuildArch: noarch
|
2007-09-12 12:22:53 +00:00
|
|
|
Buildrequires: xorg-x11-font-utils
|
2007-05-15 16:29:58 +00:00
|
|
|
|
|
|
|
%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
|
2008-01-14 06:22:06 +00:00
|
|
|
%setup -q -n %{name} -a 0
|
|
|
|
%{__cp} %{SOURCE1} %{SOURCE2} %{_builddir}/%{name}
|
2007-05-15 16:29:58 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
# fonts
|
2007-09-12 12:22:53 +00:00
|
|
|
install -m 0755 -d %{buildroot}%{fontdir}
|
|
|
|
install -m 0644 *.ttf %{buildroot}%{fontdir}
|
2007-05-15 16:29:58 +00:00
|
|
|
# configuration
|
|
|
|
install -m 0755 -d %{buildroot}%{_sysconfdir}/fonts/conf.d
|
2008-01-14 06:22:06 +00:00
|
|
|
# catalogue
|
2007-09-12 12:22:53 +00:00
|
|
|
install -d $RPM_BUILD_ROOT%{catalogue}
|
|
|
|
ln -sf %{fontdir} $RPM_BUILD_ROOT%{catalogue}/%{name}
|
|
|
|
|
|
|
|
# generate fonts.dir and fonts.scale
|
|
|
|
mkfontdir %{buildroot}%{fontdir}
|
|
|
|
mkfontscale %{buildroot}%{fontdir}
|
|
|
|
|
2007-05-15 16:29:58 +00:00
|
|
|
%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
|
2007-09-12 12:22:53 +00:00
|
|
|
%dir %{fontdir}
|
|
|
|
%{fontdir}/*.ttf
|
|
|
|
%verify(not md5 size mtime) %{fontdir}/fonts.dir
|
|
|
|
%verify(not md5 size mtime) %{fontdir}/fonts.scale
|
|
|
|
%{catalogue}/%{name}
|
2007-05-15 16:29:58 +00:00
|
|
|
|
|
|
|
%changelog
|
2008-03-31 15:49:06 +00:00
|
|
|
* Mon Mar 31 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.0-4
|
|
|
|
- correct license tag, license explanation added
|
|
|
|
|
2008-03-25 03:16:01 +00:00
|
|
|
* Tue Mar 25 2008 Caius Chance <cchance@redhat.com> - 1.0-3.fc9
|
|
|
|
- Resolves: rhbz#240525 (Alignment mismatch of dot accents.)
|
|
|
|
|
2008-01-16 00:12:52 +00:00
|
|
|
* Wed Jan 16 2008 Caius Chance <cchance@redhat.com> - 1.0-2.fc9
|
|
|
|
- Moved source tarball from cvs to separated storage.
|
|
|
|
|
2008-01-14 06:22:06 +00:00
|
|
|
* Mon Jan 14 2008 Caius Chance <cchance@redhat.com> - 1.0-1.fc9
|
|
|
|
- Resolves: rhbz#428596 (Liberation fonts need to be updated to latest font.)
|
|
|
|
|
2007-11-28 03:19:29 +00:00
|
|
|
* Wed Nov 28 2007 Caius Chance <cchance@redhat.com> - 0.2-4.fc9
|
|
|
|
- Resolves: rhbz#367791 (remove 59-liberation-fonts.conf)
|
|
|
|
|
2007-09-12 12:22:53 +00:00
|
|
|
* Wed Sep 12 2007 Jens Petersen <petersen@redhat.com> - 0.2-3.fc8
|
|
|
|
- add fontdir macro
|
|
|
|
- create fonts.dir and fonts.scale (reported by Mark Alford, #245961)
|
|
|
|
- add catalogue symlink
|
|
|
|
|
2007-09-12 06:43:17 +00:00
|
|
|
* Wed Sep 12 2007 Jens Petersen <petersen@redhat.com> - 0.2-2.fc8
|
|
|
|
- update license field to GPLv2
|
|
|
|
|
2007-06-14 06:00:37 +00:00
|
|
|
* Thu Jun 14 2007 Caius Chance <cchance@redhat.com> 0.2-1.fc8
|
2007-06-14 06:51:09 +00:00
|
|
|
- Updated new source tarball from upstream: '-3' (version 0.2).
|
2007-06-14 06:00:37 +00:00
|
|
|
|
2007-05-15 16:39:07 +00:00
|
|
|
* Tue May 15 2007 Matthias Clasen <mclasen@redhat.com> 0.1-9
|
|
|
|
- Bump revision
|
|
|
|
|
2007-05-15 16:29:58 +00:00
|
|
|
* 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
|