commit 8283d6dc3e157fceeb210ab88078b7112addbc13
Author: Arkadiusz MiĆkiewicz <[email protected]>
Date: Wed Sep 26 07:10:18 2012 +0200
- new from adobe
fonts-OTF-Adobe-SourceCodePro-fontconfig.conf | 16 +++++++++
fonts-OTF-Adobe-SourceCodePro.spec | 47 +++++++++++++++++++++++++++
2 files changed, 63 insertions(+)
---
diff --git a/fonts-OTF-Adobe-SourceCodePro.spec
b/fonts-OTF-Adobe-SourceCodePro.spec
new file mode 100644
index 0000000..e86eef6
--- /dev/null
+++ b/fonts-OTF-Adobe-SourceCodePro.spec
@@ -0,0 +1,47 @@
+%define _name SourceCodePro
+Summary: Adobe Source Code Pro - A set of OpenType fonts for coders
+Name: fonts-OTF-Adobe-%{_name}
+Version: 1.009
+Release: 1
+License: OFL
+Group: Fonts
+Source0:
http://downloads.sourceforge.net/sourcecodepro.adobe/SourceCodePro_FontsOnly-%{version}.zip
+# Source0-md5: dfc882152ec1ed85dc1178529c54b7a5
+Source1: %{name}-fontconfig.conf
+URL: http://sourceforge.net/projects/sourcecodepro.adobe/
+BuildRequires: unzip
+Requires(post,postun): fontpostinst
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define otffontsdir %{_fontsdir}/OTF
+
+%description
+Source Sans is a set of monospaced OpenType fonts that have been
+designed to work well coding environments.
+
+%prep
+%setup -q -n SourceCodePro_FontsOnly-%{version}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d
$RPM_BUILD_ROOT{%{otffontsdir},%{_datadir}/fontconfig/conf.avail,%{_sysconfdir}/fonts/conf.d}
+
+install -p *.otf $RPM_BUILD_ROOT%{otffontsdir}
+install -p %{SOURCE1}
$RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/%{name}.conf
+ln -s %{_datadir}/fontconfig/conf.avail/%{name}.conf
$RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d/
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+fontpostinst OTF
+
+%postun
+fontpostinst OTF
+
+%files
+%defattr(644,root,root,755)
+%{otffontsdir}/*.otf
+%{_sysconfdir}/fonts/conf.d/%{name}.conf
+%{_datadir}/fontconfig/conf.avail/%{name}.conf
diff --git a/fonts-OTF-Adobe-SourceCodePro-fontconfig.conf
b/fonts-OTF-Adobe-SourceCodePro-fontconfig.conf
new file mode 100644
index 0000000..1faea90
--- /dev/null
+++ b/fonts-OTF-Adobe-SourceCodePro-fontconfig.conf
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
+<fontconfig>
+ <alias>
+ <family>Source Code Pro</family>
+ <default>
+ <family>monospace</family>
+ </default>
+ </alias>
+ <alias>
+ <family>monospace</family>
+ <prefer>
+ <family>Source Code Pro</family>
+ </prefer>
+ </alias>
+</fontconfig>
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/fonts-OTF-Adobe-SourceCodePro.git/commitdiff/8283d6dc3e157fceeb210ab88078b7112addbc13
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit