cchance 39f9b2f
%define fontname liberation
cchance 39f9b2f
%define archivename %{name}-%{version}
cchance 39f9b2f
%define common_desc \
cchance 39f9b2f
The Liberation Fonts are intended to be replacements for the three most \
cchance 39f9b2f
commonly used fonts on Microsoft systems: Times New Roman, Arial, and Courier \
cchance 39f9b2f
New.
cchance 39f9b2f
c8af942
%define catalogue %{_sysconfdir}/X11/fontpath.d
c8af942
cchance 39f9b2f
Name:             %{fontname}-fonts
cchance 39f9b2f
Summary:          Fonts to replace commonly used Microsoft Windows fonts
cchance 39f9b2f
Version:          1.04.93
cchance 13a6f3c
Release:          8%{?dist}
cchance 39f9b2f
# The license of the Liberation Fonts is a EULA that contains GPLv2 and two 
cchance 39f9b2f
# exceptions:
90605f0
# The first exception is the standard FSF font exception.
cchance 39f9b2f
# The second exception is an anti-lockdown clause somewhat like the one in 
cchance 39f9b2f
# GPLv3. This license is Free, but GPLv2 and GPLv3 incompatible.
cchance 39f9b2f
License:          Liberation
cchance 39f9b2f
Group:            User Interface/X
cchance a5837ec
URL:              https://fedorahosted.org/liberation-fonts/
cchance 39f9b2f
Source0:          liberation-fonts-1.04.93.devel.tar.gz
cchance a5837ec
cchance a5837ec
Obsoletes:        liberation-fonts-sans < 1.04.93-4
cchance a5837ec
Obsoletes:        liberation-fonts-serif < 1.04.93-4 
cchance a5837ec
Obsoletes:        liberation-fonts-mono < 1.04.93-4 
cchance 39f9b2f
BuildRoot:        %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
cchance 39f9b2f
BuildArch:        noarch
cchance 76018e6
Buildrequires:    fontpackages-devel >= 1.13, xorg-x11-font-utils
022ac32
022ac32
%description
cchance 39f9b2f
%common_desc
cchance 39f9b2f
cchance 280101e
Meta-package of Liberation fonts which installs Sans, Serif, and Monospace 
cchance 280101e
families.
cchance 280101e
cchance a5837ec
%package -n %{fontname}-fonts-common
cchance 39f9b2f
Summary:          Shared common files of Liberation font families.
cchance 39f9b2f
Group:            User Interface/X
cchance 76018e6
Requires:         fontpackages-filesystem >= 1.13
cchance 13a6f3c
Obsoletes:        liberation-fonts >= 1.04.93-6
cchance 13a6f3c
Conflicts:        liberation-fonts < 1.04.93-7
cchance 39f9b2f
cchance a5837ec
%description -n %{fontname}-fonts-common
cchance 39f9b2f
%common_desc
cchance 39f9b2f
cchance 39f9b2f
Shared common files of Liberation font families.
cchance 39f9b2f
cchance a5837ec
%files -n %{fontname}-fonts-common
cchance 76018e6
%defattr(0644,root,root,0755)
cchance 76018e6
%doc AUTHORS ChangeLog COPYING License.txt README
cchance 76018e6
%dir %{_fontdir}
cchance 76018e6
%verify(not md5 size mtime) %{_fontdir}/fonts.dir
cchance 76018e6
%verify(not md5 size mtime) %{_fontdir}/fonts.scale
cchance 76018e6
%{catalogue}/%{name}
cchance 76018e6
cchance 03178ca
%package -n %{fontname}-fonts-compat
cchance 03178ca
Summary:          Compatibility files of Liberation font families.
cchance 03178ca
Group:            User Interface/X
cchance 03178ca
Requires:         %{fontname}-fonts-common = %{version}-%{release}
cchance 13a6f3c
Requires:         %{fontname}-sans-fonts = %{version}-%{release}
cchance 13a6f3c
Requires:         %{fontname}-serif-fonts = %{version}-%{release}
cchance 13a6f3c
Requires:         %{fontname}-mono-fonts = %{version}-%{release}
cchance 03178ca
cchance 03178ca
%description -n %{fontname}-fonts-compat
cchance 03178ca
%common_desc
cchance 03178ca
cchance 03178ca
Meta-package for installing all three font families: Sans, Serif, Mono.
cchance 03178ca
cchance 03178ca
%files -n %{fontname}-fonts-compat
cchance 03178ca
%{nil}
cchance 03178ca
cchance c2dacfa
%package -n %{fontname}-sans-fonts
cchance a5837ec
Summary:      Sans-serif fonts to replace commonly used Microsoft Arial
cchance c2dacfa
Group:        User Interface/X
167a0a1
Requires:     %{fontname}-fonts-common = %{version}-%{release}
cchance c2dacfa
cchance c2dacfa
%description -n %{fontname}-sans-fonts
cchance c2dacfa
%common_desc
cchance c2dacfa
cchance a5837ec
This is Sans-serif TrueType fonts that replaced commonly used Microsoft Arial.
cchance c2dacfa
cchance a5837ec
%_font_pkg -n sans LiberationSans-*.ttf
cchance c2dacfa
cchance c2dacfa
%package -n %{fontname}-serif-fonts
cchance a5837ec
Summary:      Serif fonts to replace commonly used Microsoft Times New Roman
cchance c2dacfa
Group:        User Interface/X
167a0a1
Requires:     %{fontname}-fonts-common = %{version}-%{release}
cchance c2dacfa
cchance c2dacfa
%description -n %{fontname}-serif-fonts
cchance c2dacfa
%common_desc
cchance c2dacfa
cchance a5837ec
This is Serif TrueType fonts that replaced commonly used Microsoft Times New \
cchance a5837ec
Roman.
cchance c2dacfa
cchance a5837ec
%_font_pkg -n serif LiberationSerif-*.ttf
cchance c2dacfa
cchance c2dacfa
%package -n %{fontname}-mono-fonts
cchance c2dacfa
Summary:      Monospace fonts to replace commonly used Microsoft Courier New
cchance c2dacfa
Group:        User Interface/X
167a0a1
Requires:     %{fontname}-fonts-common = %{version}-%{release}
cchance c2dacfa
cchance c2dacfa
%description -n %{fontname}-mono-fonts
cchance c2dacfa
%common_desc
cchance c2dacfa
cchance c2dacfa
This is Monospace TrueType fonts that replaced commonly used Microsoft Courier \
cchance c2dacfa
New.
cchance c2dacfa
cchance a5837ec
%_font_pkg -n mono LiberationMono-*.ttf
022ac32
022ac32
%prep
cchance af2579b
%setup -q -n %{name}-%{version}.devel
022ac32
022ac32
%build
cchance 39f9b2f
%{nil}
022ac32
022ac32
%install
022ac32
rm -rf %{buildroot}
cchance 76018e6
# fonts .ttf
cchance 76018e6
install -m 0755 -d %{buildroot}%{_fontdir}
cchance a5837ec
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
cchance c6cfccb
# catalogue
cchance a5837ec
install -m 0755 -d %{buildroot}%{catalogue}
cchance 76018e6
ln -sf %{_fontdir} %{buildroot}%{catalogue}/%{name}
cchance 76018e6
# fonts.{dir,scale}
cchance 76018e6
mkfontdir %{buildroot}%{_fontdir}
cchance 76018e6
mkfontscale %{buildroot}%{_fontdir}
022ac32
cchance c2dacfa
%clean
cchance c2dacfa
rm -rf %{buildroot}
cchance c2dacfa
022ac32
%changelog
cchance 13a6f3c
* Wed Feb 04 2009 Caius Chance <cchance@redhat.com> - 1.04.93-8.fc11
cchance 13a6f3c
- Fixed inter-subpackage dependencies.
cchance 13a6f3c
cchance 03178ca
* Wed Feb 04 2009 Caius Chance <cchance@redhat.com> - 1.04.93-7.fc11
cchance 03178ca
- Create -compat subpackage as meta-package for installing all font families.
cchance 03178ca
167a0a1
* Tue Jan 20 2009 Matthias Clasen <mclasen@redhat.com> - 1.04.93-6.fc11
167a0a1
- Fix busted inter-subpackage dependencies
167a0a1
cchance a5837ec
* Tue Jan 20 2009 Caius Chance <cchance@redhat.com> - 1.04.93-5.fc11
cchance a5837ec
- Resolved: rhbz#477410
cchance a5837ec
- Refined .spec file based on Mailhot's review on rhbz.
cchance a5837ec
cchance 76018e6
* Mon Jan 19 2009 Caius Chance <cchance@redhat.com> - 1.04.93-4.fc11
cchance 76018e6
- Resolves: thbz#477410
cchance 76018e6
- Package renaming for post-1.13 fontpackages macros.
cchance 76018e6
cchance 39f9b2f
* Fri Jan 09 2009 Caius Chance <cchance@redhat.com> - 1.04.93-3.fc11
cchance 39f9b2f
- Resolves: rhbz#477410 (Convert to new font packaging guidelines.)
cchance 39f9b2f
cchance 2c56c0a
* Tue Dec 09 2008 Caius Chance <cchance@redhat.com> - 1.04.93-2.fc11
cchance 2c56c0a
- Resolves: rhbz#474522 (Cent sign is not coressed in Sans & Mono.)
cchance 2c56c0a
cchance 7af1b64
* Wed Dec 03 2008 Caius Chance <cchance@redhat.com> - 1.04.93-1.fc11
cchance 7af1b64
- Resolves: rhbz#473481
cchance 7af1b64
  (Blurriness of Greek letter m (U+03BC) in Liberation Sans Regular.)
cchance 7af1b64
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