c8af942
%define fontdir %{_datadir}/fonts/liberation
c8af942
%define catalogue %{_sysconfdir}/X11/fontpath.d
c8af942
022ac32
Summary: Fonts to replace commonly used Microsoft Windows Fonts
022ac32
Name: liberation-fonts
cchance fabf2e7
Version: 1.04.92
cchance 03bcbcd
Release: 1%{?dist}
90605f0
# The license of the Liberation Fonts is a EULA that contains 
90605f0
# GPLv2 and two exceptions:
90605f0
# The first exception is the standard FSF font exception.
90605f0
# The second exception is an anti-lockdown clause somewhat like
90605f0
# the one in GPLv3. This license is Free, but GPLv2 and GPLv3
90605f0
# incompatible.
90605f0
License: Liberation
022ac32
Group: User Interface/X
022ac32
URL: https://www.redhat.com/promo/fonts/
cchance fabf2e7
Source0: liberation-fonts-1.04.92.tar.gz
022ac32
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
022ac32
BuildArch: noarch
c8af942
Buildrequires: xorg-x11-font-utils
022ac32
022ac32
%description
022ac32
The Liberation Fonts are intended to be replacements for the three
022ac32
most commonly used fonts on Microsoft systems: Times New Roman,
022ac32
Arial, and Courier New.
022ac32
022ac32
%prep
cchance fabf2e7
#%setup -q -n %{name}-%{version}.devel
cchance fabf2e7
%setup -q -n %{name}-%{version}
022ac32
022ac32
%clean
022ac32
rm -rf %{buildroot}
022ac32
022ac32
%build
022ac32
022ac32
%install
022ac32
rm -rf %{buildroot}
022ac32
# fonts
c8af942
install -m 0755 -d %{buildroot}%{fontdir}
c8af942
install -m 0644 *.ttf %{buildroot}%{fontdir}
022ac32
# configuration
022ac32
install -m 0755 -d %{buildroot}%{_sysconfdir}/fonts/conf.d
cchance c6cfccb
# catalogue
c8af942
install -d $RPM_BUILD_ROOT%{catalogue}
c8af942
ln -sf %{fontdir} $RPM_BUILD_ROOT%{catalogue}/%{name}
c8af942
c8af942
# generate fonts.dir and fonts.scale
c8af942
mkfontdir %{buildroot}%{fontdir}
c8af942
mkfontscale %{buildroot}%{fontdir}
c8af942
022ac32
%post
022ac32
if [ -x /usr/bin/fc-cache ]; then
022ac32
  /usr/bin/fc-cache %{_datadir}/fonts
022ac32
fi
022ac32
022ac32
%postun
022ac32
if [ "$1" = "0" ]; then
022ac32
  if [ -x /usr/bin/fc-cache ]; then
022ac32
    /usr/bin/fc-cache %{_datadir}/fonts
022ac32
  fi
022ac32
fi
022ac32
022ac32
%files
022ac32
%defattr(-,root,root)
022ac32
%doc License.txt COPYING
c8af942
%dir %{fontdir}
c8af942
%{fontdir}/*.ttf
c8af942
%verify(not md5 size mtime) %{fontdir}/fonts.dir
c8af942
%verify(not md5 size mtime) %{fontdir}/fonts.scale
c8af942
%{catalogue}/%{name}
022ac32
022ac32
%changelog
cchance fabf2e7
* Tue Dec 02 2008 Caius Chance <cchance@redhat.com> - 1.04.92.fc10
cchance fabf2e7
- Update source to 1.04.92.
cchance fabf2e7
cchance af2579b
* Thu Jul 17 2008 Caius Chance <cchance@redhat.com> - 1.04.90-1.fc10
cchance af2579b
- Resolves: rhbz#258592
cchance af2579b
  (Incorrect glyph points and missing hinting instructions for U+0079, U+03BC, 
cchance af2579b
   U+0431, U+2010..2012.)
cchance af2579b
cchance 03bcbcd
* Thu Jul 17 2008 Caius Chance <cchance@redhat.com> - 1.04-1.fc10
cchance 03bcbcd
- Resolves: rhbz#455717 (Update sources to version 1.04.)
cchance 03bcbcd
- Improved .spec file.
cchance 03bcbcd
cchance bf50f7d
* Thu Jun 12 2008 Caius Chance <cchance@redhat.com> - 1.04-0.1.beta2.fc10
cchance c01b2b4
- Updated source version to 1.04.beta2.
cchance c01b2b4
- Removed License.txt and COPYING as already included in sources.
cchance c01b2b4
cchance c8836fb
* Thu Apr 10 2008 Caius Chance <cchance@redhat.com> - 1.03-1.fc9
cchance c8836fb
- Resolves: rhbz#251890 (Exchanged and incomplete glyphs.)
cchance c8836fb
- Repack source tarball and re-align source version number.
cchance c8836fb
cchance c8836fb
* Mon Mar 31 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.02-2
90605f0
- correct license tag, license explanation added
90605f0
cchance c8836fb
* Tue Mar 25 2008 Caius Chance <cchance@redhat.com> - 1.02-1.fc9
cchance cbbb22a
- Resolves: rhbz#240525 (Alignment mismatch of dot accents.)
cchance cbbb22a
cchance c8836fb
* Wed Jan 16 2008 Caius Chance <cchance@redhat.com> - 1.01-1.fc9
cchance a47860c
- Moved source tarball from cvs to separated storage.
cchance a47860c
cchance c6cfccb
* Mon Jan 14 2008 Caius Chance <cchance@redhat.com> - 1.0-1.fc9
cchance c6cfccb
- Resolves: rhbz#428596 (Liberation fonts need to be updated to latest font.)
cchance c6cfccb
cchance 35fab1f
* Wed Nov 28 2007 Caius Chance <cchance@redhat.com> - 0.2-4.fc9
cchance 35fab1f
- Resolves: rhbz#367791 (remove 59-liberation-fonts.conf)
cchance 35fab1f
c8af942
* Wed Sep 12 2007 Jens Petersen <petersen@redhat.com> - 0.2-3.fc8
c8af942
- add fontdir macro
c8af942
- create fonts.dir and fonts.scale (reported by Mark Alford, #245961)
c8af942
- add catalogue symlink
c8af942
e599139
* Wed Sep 12 2007 Jens Petersen <petersen@redhat.com> - 0.2-2.fc8
e599139
- update license field to GPLv2
e599139
cchance 209ae8e
* Thu Jun 14 2007 Caius Chance <cchance@redhat.com> 0.2-1.fc8
cchance 24e5349
- Updated new source tarball from upstream: '-3' (version 0.2).
cchance 209ae8e
8b87fc6
* Tue May 15 2007 Matthias Clasen <mclasen@redhat.com> 0.1-9
8b87fc6
- Bump revision
8b87fc6
022ac32
* Tue May 15 2007 Matthias Clasen <mclasen@redhat.com> 0.1-8
022ac32
- Change the license tag to "GPL + font exception"
022ac32
022ac32
* Mon May 14 2007 Matthias Clasen <mclasen@redhat.com> 0.1-7
022ac32
- Correct the source url 
022ac32
022ac32
* Mon May 14 2007 Matthias Clasen <mclasen@redhat.com> 0.1-6
022ac32
- Incorporate package review feedback
022ac32
022ac32
* Fri May 11 2007 Matthias Clasen <mclasen@redhat.com> 0.1-5
022ac32
- Bring the package in sync with Fedora packaging standards
022ac32
022ac32
* Wed Apr 25 2007 Meethune Bhowmick <bhowmick@redhat.com> 0.1-4
022ac32
- Require fontconfig package for post and postun
022ac32
022ac32
* Tue Apr 24 2007 Meethune Bhowmick <bhowmick@redhat.com> 0.1-3
022ac32
- Bump version to fix issue in RHEL4 RHN
022ac32
022ac32
* Thu Mar 29 2007 Richard Monk <rmonk@redhat.com> 0.1-2rhis
022ac32
- New license file
022ac32
022ac32
* Thu Mar 29 2007 Richard Monk <rmonk@redhat.com> 0.1-1rhis
022ac32
- Inital packaging