Add packaging
authorPatrick McCarty <patrick.mccarty@linux.intel.com>
Fri, 1 Feb 2013 19:02:48 +0000 (11:02 -0800)
committerPatrick McCarty <patrick.mccarty@linux.intel.com>
Tue, 12 Nov 2013 21:35:58 +0000 (13:35 -0800)
packaging/monotype-fonts.changes [new file with mode: 0644]
packaging/monotype-fonts.spec [new file with mode: 0644]

diff --git a/packaging/monotype-fonts.changes b/packaging/monotype-fonts.changes
new file mode 100644 (file)
index 0000000..e02adaf
--- /dev/null
@@ -0,0 +1,4 @@
+* Fri Feb 01 2013 Patrick McCarty <patrick.mccarty@linux.intel.com> 167e0f7
+- Add packaging
+- Initial import of Monotype fonts package
+
diff --git a/packaging/monotype-fonts.spec b/packaging/monotype-fonts.spec
new file mode 100644 (file)
index 0000000..885ebc8
--- /dev/null
@@ -0,0 +1,42 @@
+%define _fontsdir               %{_datadir}/fonts
+%define _ttfontsdir             %{_fontsdir}/truetype
+%define _miscfontsdir           %{_fontsdir}/misc
+%define _fontsconfdir           %{_sysconfdir}/fonts
+%define _fontsconfddir          %{_fontsconfdir}/conf.d
+%define _fontsconfavaildir      %{_datadir}/%{name}/conf.avail
+
+Name:           monotype-fonts
+Version:        0.0.1
+Release:        0
+License:        Intel Proprietary
+Summary:        Fonts package that provides the Clear Sans font
+Url:            http://www.intel.com/
+Group:          System/Fonts
+Source:         %{name}-%{version}.tar.xz
+BuildArch:      noarch
+Requires(post): %{_bindir}/fc-cache
+
+%description
+Fonts package that provides the Clear Sans font
+
+%prep
+%setup -q
+
+%build
+
+%install
+mkdir -p %{buildroot}%{_ttfontsdir}
+install -m 0644 ttf/*.ttf %{buildroot}%{_ttfontsdir}/
+
+%post
+if [ -x %{_bindir}/fc-cache ]; then
+    %{_bindir}/fc-cache %{_ttffontsdir} || :
+fi
+
+%postun
+if [ -x %{_bindir}/fc-cache ]; then
+    %{_bindir}/fc-cache %{_ttffontsdir} || :
+fi
+
+%files
+%{_ttfontsdir}/*.ttf