]> git.pld-linux.org Git - packages/fonts-TTF-RedHat-liberation.git/blobdiff - fonts-TTF-RedHat-liberation.spec
re-entrant install, cosmetics
[packages/fonts-TTF-RedHat-liberation.git] / fonts-TTF-RedHat-liberation.spec
index 0152ae56e73eba375d15458c81da706d270fce0e..22ddae58ba081394da7edd83314a69ee83530de9 100644 (file)
@@ -1,15 +1,19 @@
-%define                _name   liberation-fonts
 Summary:       Fonts to replace commonly used Microsoft Windows Fonts
 Summary(pl.UTF-8):     Fonty zastępujące popularne fonty z Microsoft Windows
 Name:          fonts-TTF-RedHat-liberation
-Version:       1.0
+Version:       2.00.0
 Release:       2
-License:       GPL v2 + exceptions
+Epoch:         1
+License:       OFL
 Group:         Fonts
-Source0:       https://www.redhat.com/f/fonts/liberation-fonts.tar.gz
-# Source0-md5: f7d82c491914a318a6f0d426c5eb1432
-Source1:       %{name}.fontconfig
-URL:           https://www.redhat.com/promo/fonts/
+Source0:       https://fedorahosted.org/releases/l/i/liberation-fonts/liberation-fonts-%{version}.tar.gz
+# Source0-md5: 5b5055ed755025891f908b7726fea482
+Source1:       generate.pe
+Source2:       59-liberation-mono.conf
+Source3:       59-liberation-sans.conf
+Source4:       59-liberation-serif.conf
+URL:           https://fedorahosted.org/liberation-fonts/
+BuildRequires: fontforge >= 20090923
 Requires(post,postun): fontpostinst
 Requires:      %{_fontsdir}/TTF
 Obsoletes:     liberation-fonts-ttf
@@ -39,17 +43,30 @@ Mono (zamiennik dla Courier New, Cumberland, Courier, Nimbus Mono L i
 Bitstream Vera Sans Mono).
 
 %prep
-%setup -q -c
+%setup -q -n liberation-fonts-%{version}
+install -p %{SOURCE1} .
+
+%build
+rm -f *.ttf
+./generate.pe src/*.sfd
+
+mv LiberationMono.ttf LiberationMono-Regular.ttf
+mv LiberationSerif.ttf LiberationSerif-Regular.ttf
+mv LiberationSans.ttf LiberationSans-Regular.ttf
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_ttffontsdir}
-install -d $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail
-install -d $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
+install -d $RPM_BUILD_ROOT{%{_ttffontsdir},%{_sysconfdir}/fonts/{conf.d,conf.avail}}
+
+cp -p *.ttf $RPM_BUILD_ROOT%{_ttffontsdir}
+
+cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail/59-liberation-mono.conf
+cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail/59-liberation-sans.conf
+cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail/59-liberation-serif.conf
 
-cp -a liberation-fonts/*.ttf $RPM_BUILD_ROOT%{_ttffontsdir}
-install %SOURCE1 $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail/60-liberation.conf
-ln -s ../conf.avail/60-liberation.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
+ln -s ../conf.avail/59-liberation-mono.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
+ln -s ../conf.avail/59-liberation-sans.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
+ln -s ../conf.avail/59-liberation-serif.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -62,6 +79,9 @@ fontpostinst TTF
 
 %files
 %defattr(644,root,root,755)
-%{_ttffontsdir}/*
-%{_sysconfdir}/fonts/conf.avail/60-liberation.conf
-%{_sysconfdir}/fonts/conf.d/60-liberation.conf
+%doc AUTHORS ChangeLog README TODO
+%{_ttffontsdir}/LiberationMono*.ttf
+%{_ttffontsdir}/LiberationSans*.ttf
+%{_ttffontsdir}/LiberationSerif*.ttf
+%{_sysconfdir}/fonts/conf.avail/59-liberation-*.conf
+%{_sysconfdir}/fonts/conf.d/59-liberation-*.conf
This page took 0.176044 seconds and 4 git commands to generate.