add packaging submit/trunk/20121213.145552
authorAnas Nashif <anas.nashif@intel.com>
Thu, 13 Dec 2012 14:47:05 +0000 (06:47 -0800)
committerAnas Nashif <anas.nashif@intel.com>
Thu, 13 Dec 2012 14:51:09 +0000 (06:51 -0800)
add packaging

add packaging

packaging/dejavu-fonts.changes [new file with mode: 0644]
packaging/dejavu-fonts.spec [new file with mode: 0644]

diff --git a/packaging/dejavu-fonts.changes b/packaging/dejavu-fonts.changes
new file mode 100644 (file)
index 0000000..53b9e4d
--- /dev/null
@@ -0,0 +1,3 @@
+* Thu Dec 13 2012 Anas Nashif <anas.nashif@intel.com> upstream/2.33@f1abf92
+- initial release
+
diff --git a/packaging/dejavu-fonts.spec b/packaging/dejavu-fonts.spec
new file mode 100644 (file)
index 0000000..b2b5403
--- /dev/null
@@ -0,0 +1,48 @@
+%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:           dejavu-fonts
+Version:        2.33
+Release:        0
+License:        Permissive
+Summary:        DejaVu Truetype Fonts
+Url:            http://dejavu.sourceforge.net/
+Group:          System/Fonts
+Source:         dejavu-fonts-ttf-%{version}.tar.bz2
+BuildArch:      noarch
+
+%description
+The DejaVu fonts are a font family based on the Vera Fonts.
+Its purpose is to provide a wider range of characters while
+maintaining the original look and feel through the process
+of collaborative development (see authors), under a Free license.
+
+%prep
+%setup -n %{name}-ttf-%{version}
+
+%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
+%defattr(-,root,root,755)
+%license LICENSE
+%{_ttfontsdir}/
+