2009-01-09 03:14:54 +00:00
|
|
|
%define fontname liberation
|
|
|
|
%define fontconf <65>-%{fontname}
|
|
|
|
%define archivename %{name}-%{version}
|
|
|
|
%define common_desc \
|
|
|
|
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.
|
|
|
|
|
|
|
|
%define fontdir %{_datadir}/fonts/%{fontname}
|
2007-09-12 12:22:53 +00:00
|
|
|
%define catalogue %{_sysconfdir}/X11/fontpath.d
|
|
|
|
|
2009-01-09 03:14:54 +00:00
|
|
|
Name: %{fontname}-fonts
|
|
|
|
Summary: Fonts to replace commonly used Microsoft Windows fonts
|
|
|
|
Version: 1.04.93
|
|
|
|
Release: 3%{?dist}
|
|
|
|
# The license of the Liberation Fonts is a EULA that contains GPLv2 and two
|
|
|
|
# exceptions:
|
2008-03-31 15:49:06 +00:00
|
|
|
# The first exception is the standard FSF font exception.
|
2009-01-09 03:14:54 +00:00
|
|
|
# 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
|
|
|
|
Group: User Interface/X
|
|
|
|
URL: https://www.redhat.com/promo/fonts/
|
|
|
|
Source0: liberation-fonts-1.04.93.devel.tar.gz
|
|
|
|
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
|
BuildArch: noarch
|
|
|
|
Buildrequires: fontpackages-devel xorg-x11-font-utils
|
2007-05-15 16:29:58 +00:00
|
|
|
|
|
|
|
%description
|
2009-01-09 03:14:54 +00:00
|
|
|
%common_desc
|
|
|
|
|
|
|
|
%package common
|
|
|
|
Summary: Shared common files of Liberation font families.
|
|
|
|
License: Liberation
|
|
|
|
Group: User Interface/X
|
|
|
|
Requires: fontpackages-filesystem
|
|
|
|
|
|
|
|
%description common
|
|
|
|
%common_desc
|
|
|
|
|
|
|
|
Shared common files of Liberation font families.
|
|
|
|
|
|
|
|
%define mk_pkg()\
|
|
|
|
%package %1\
|
|
|
|
Summary: %3 fonts to replace commonly used Microsoft %4\
|
|
|
|
License: Liberation\
|
|
|
|
Group: User Interface/X\
|
|
|
|
Requires: fontpackages-filesystem, %{name}-common\
|
|
|
|
\
|
|
|
|
%description %1\
|
|
|
|
%common_desc\
|
|
|
|
\
|
|
|
|
%3 TrueType fonts that replaced commonly used Microsoft %4.\
|
|
|
|
\
|
|
|
|
%files %1\
|
|
|
|
%defattr(0644,root,root,0755)\
|
|
|
|
%dir %{fontdir}\
|
|
|
|
%{fontdir}/Liberation%2-*.ttf
|
|
|
|
|
|
|
|
%mk_pkg sans Sans Sans Arial
|
|
|
|
%mk_pkg serif Serif Sans-serif Times_New_Roman
|
|
|
|
%mk_pkg mono Mono Monospace Courier_New
|
2007-05-15 16:29:58 +00:00
|
|
|
|
|
|
|
%prep
|
2008-08-26 03:47:36 +00:00
|
|
|
%setup -q -n %{name}-%{version}.devel
|
2007-05-15 16:29:58 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%build
|
2009-01-09 03:14:54 +00:00
|
|
|
%{nil}
|
2007-05-15 16:29:58 +00:00
|
|
|
|
|
|
|
%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
|
2009-01-09 03:14:54 +00:00
|
|
|
install -d %{buildroot}%{catalogue}
|
|
|
|
ln -sf %{fontdir} %{buildroot}%{catalogue}/%{name}
|
2007-09-12 12:22:53 +00:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2009-01-09 03:14:54 +00:00
|
|
|
%files common
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%doc AUTHORS ChangeLog COPYING License.txt README
|
2007-09-12 12:22:53 +00:00
|
|
|
%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
|
2009-01-09 03:14:54 +00:00
|
|
|
* Fri Jan 09 2009 Caius Chance <cchance@redhat.com> - 1.04.93-3.fc11
|
|
|
|
- Resolves: rhbz#477410 (Convert to new font packaging guidelines.)
|
|
|
|
|
2008-12-09 06:31:21 +00:00
|
|
|
* Tue Dec 09 2008 Caius Chance <cchance@redhat.com> - 1.04.93-2.fc11
|
|
|
|
- Resolves: rhbz#474522 (Cent sign is not coressed in Sans & Mono.)
|
|
|
|
|
2008-12-03 00:59:51 +00:00
|
|
|
* Wed Dec 03 2008 Caius Chance <cchance@redhat.com> - 1.04.93-1.fc11
|
|
|
|
- Resolves: rhbz#473481
|
|
|
|
(Blurriness of Greek letter m (U+03BC) in Liberation Sans Regular.)
|
|
|
|
|
2008-08-26 03:47:36 +00:00
|
|
|
* Thu Jul 17 2008 Caius Chance <cchance@redhat.com> - 1.04.90-1.fc10
|
|
|
|
- Resolves: rhbz#258592
|
|
|
|
(Incorrect glyph points and missing hinting instructions for U+0079, U+03BC,
|
|
|
|
U+0431, U+2010..2012.)
|
|
|
|
|
2008-07-17 12:10:42 +00:00
|
|
|
* Thu Jul 17 2008 Caius Chance <cchance@redhat.com> - 1.04-1.fc10
|
|
|
|
- Resolves: rhbz#455717 (Update sources to version 1.04.)
|
|
|
|
- Improved .spec file.
|
|
|
|
|
2008-06-13 00:18:35 +00:00
|
|
|
* Thu Jun 12 2008 Caius Chance <cchance@redhat.com> - 1.04-0.1.beta2.fc10
|
2008-06-12 07:26:38 +00:00
|
|
|
- Updated source version to 1.04.beta2.
|
|
|
|
- Removed License.txt and COPYING as already included in sources.
|
|
|
|
|
2008-04-10 06:47:16 +00:00
|
|
|
* Thu Apr 10 2008 Caius Chance <cchance@redhat.com> - 1.03-1.fc9
|
|
|
|
- Resolves: rhbz#251890 (Exchanged and incomplete glyphs.)
|
|
|
|
- Repack source tarball and re-align source version number.
|
|
|
|
|
|
|
|
* Mon Mar 31 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.02-2
|
2008-03-31 15:49:06 +00:00
|
|
|
- correct license tag, license explanation added
|
|
|
|
|
2008-04-10 06:47:16 +00:00
|
|
|
* Tue Mar 25 2008 Caius Chance <cchance@redhat.com> - 1.02-1.fc9
|
2008-03-25 03:16:01 +00:00
|
|
|
- Resolves: rhbz#240525 (Alignment mismatch of dot accents.)
|
|
|
|
|
2008-04-10 06:47:16 +00:00
|
|
|
* Wed Jan 16 2008 Caius Chance <cchance@redhat.com> - 1.01-1.fc9
|
2008-01-16 00:12:52 +00:00
|
|
|
- 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
|