From: Patrick McCarty Date: Fri, 1 Feb 2013 19:02:48 +0000 (-0800) Subject: Add packaging X-Git-Tag: accepted/tizen/20131115.212517~5 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fupstream%2Fmonotype-fonts.git;a=commitdiff_plain;h=317e807ccbaa8d38fdb7b4483a17560b74e2ad24 Add packaging --- diff --git a/packaging/monotype-fonts.changes b/packaging/monotype-fonts.changes new file mode 100644 index 0000000..e02adaf --- /dev/null +++ b/packaging/monotype-fonts.changes @@ -0,0 +1,4 @@ +* Fri Feb 01 2013 Patrick McCarty 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 index 0000000..885ebc8 --- /dev/null +++ b/packaging/monotype-fonts.spec @@ -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