]> git.pld-linux.org Git - packages/fonts-TTF-RedHat-liberation1.git/blobdiff - fonts-TTF-RedHat-liberation.spec
- up to 1.07.0
[packages/fonts-TTF-RedHat-liberation1.git] / fonts-TTF-RedHat-liberation.spec
index 0152ae56e73eba375d15458c81da706d270fce0e..6556fb8e6b01d08109ed97254d5bea4b4e016dd2 100644 (file)
@@ -1,15 +1,17 @@
-%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
-Release:       2
+Version:       1.07.0
+Release:       1
+Epoch:         1
 License:       GPL v2 + exceptions
 Group:         Fonts
-Source0:       https://www.redhat.com/f/fonts/liberation-fonts.tar.gz
-# Source0-md5: f7d82c491914a318a6f0d426c5eb1432
+Source0:       https://fedorahosted.org/releases/l/i/liberation-fonts/liberation-fonts-%{version}.tar.gz
+# Source0-md5: 87ba9eea831ebc6fab9578abcebda9a5
 Source1:       %{name}.fontconfig
-URL:           https://www.redhat.com/promo/fonts/
+URL:           https://fedorahosted.org/liberation-fonts/
+BuildRequires: fontforge >= 20090923
+BuildRequires: unzip
 Requires(post,postun): fontpostinst
 Requires:      %{_fontsdir}/TTF
 Obsoletes:     liberation-fonts-ttf
@@ -39,7 +41,10 @@ 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}
+
+%build
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -47,8 +52,8 @@ install -d $RPM_BUILD_ROOT%{_ttffontsdir}
 install -d $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail
 install -d $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d
 
-cp -a liberation-fonts/*.ttf $RPM_BUILD_ROOT%{_ttffontsdir}
-install %SOURCE1 $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail/60-liberation.conf
+cp -a liberation-*/*.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
 
 %clean
@@ -62,6 +67,10 @@ fontpostinst TTF
 
 %files
 %defattr(644,root,root,755)
-%{_ttffontsdir}/*
+%doc AUTHORS ChangeLog License.txt README
+%{_ttffontsdir}/LiberationMono-*.ttf
+%{_ttffontsdir}/LiberationSans-*.ttf
+%{_ttffontsdir}/LiberationSansNarrow-*.ttf
+%{_ttffontsdir}/LiberationSerif-*.ttf
 %{_sysconfdir}/fonts/conf.avail/60-liberation.conf
 %{_sysconfdir}/fonts/conf.d/60-liberation.conf
This page took 0.088158 seconds and 4 git commands to generate.