]> git.pld-linux.org Git - packages/fonts-OTF-Adobe-SourceCodePro.git/commitdiff
- new from adobe auto/th/fonts-OTF-Adobe-SourceCodePro-1.009-1
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 26 Sep 2012 05:10:18 +0000 (07:10 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 26 Sep 2012 05:10:18 +0000 (07:10 +0200)
fonts-OTF-Adobe-SourceCodePro-fontconfig.conf [new file with mode: 0644]
fonts-OTF-Adobe-SourceCodePro.spec [new file with mode: 0644]

diff --git a/fonts-OTF-Adobe-SourceCodePro-fontconfig.conf b/fonts-OTF-Adobe-SourceCodePro-fontconfig.conf
new file mode 100644 (file)
index 0000000..1faea90
--- /dev/null
@@ -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>
diff --git a/fonts-OTF-Adobe-SourceCodePro.spec b/fonts-OTF-Adobe-SourceCodePro.spec
new file mode 100644 (file)
index 0000000..e86eef6
--- /dev/null
@@ -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
This page took 0.138912 seconds and 4 git commands to generate.