summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-12-09 01:39:00 (GMT)
committerAnas Nashif <anas.nashif@intel.com>2013-02-08 14:05:57 (GMT)
commitb6533594cdf84526cda865692c3b17820c616540 (patch)
tree2d57b2bfe0ce0178588e8c0d20b8eafb705600b8
parent92d60b11e7d34a9d4f0665557d68efc4ed113e40 (diff)
downloadcantarell-fonts-b6533594cdf84526cda865692c3b17820c616540.zip
cantarell-fonts-b6533594cdf84526cda865692c3b17820c616540.tar.gz
cantarell-fonts-b6533594cdf84526cda865692c3b17820c616540.tar.bz2
add packaging files
-rw-r--r--packaging/cantarell-fonts.changes3
-rw-r--r--packaging/cantarell-fonts.spec55
2 files changed, 58 insertions, 0 deletions
diff --git a/packaging/cantarell-fonts.changes b/packaging/cantarell-fonts.changes
new file mode 100644
index 0000000..0687f64
--- /dev/null
+++ b/packaging/cantarell-fonts.changes
@@ -0,0 +1,3 @@
+* Sat Dec 08 2012 Anas Nashif <anas.nashif@intel.com> upstream/0.0.11@b96cfb3
+- Imported Upstream version 0.0.11
+
diff --git a/packaging/cantarell-fonts.spec b/packaging/cantarell-fonts.spec
new file mode 100644
index 0000000..ec85915
--- /dev/null
+++ b/packaging/cantarell-fonts.spec
@@ -0,0 +1,55 @@
+%define _fontsdir %{_usr}/share/fonts
+%define cantarell_dir %{_fontsdir}/cantarell
+%define _fontsconfavaildir %{_datadir}/%{name}/conf.avail
+
+Name: cantarell-fonts
+Version: 0.0.11
+Release: 0
+Summary: Contemporary Humanist Sans Serif Font
+License: OFL-1.1
+Group: System/X11/Fonts
+Url: http://live.gnome.org/CantarellFonts
+Source: http://download.gnome.org/sources/cantarell-fonts/0.0/%{name}-%{version}.tar.xz
+BuildRequires: dos2unix
+BuildRequires: fontconfig
+BuildRequires: pkg-config
+BuildRequires: xz
+Requires(pre): perl
+BuildArch: noarch
+
+%description
+The Cantarell font family is a contemporary Humanist sans serif designed
+for on-screen reading.
+
+%prep
+%setup -q
+
+%build
+%configure
+dos2unix COPYING
+
+%install
+%make_install configdir=%{_fontsconfavaildir}
+mkdir -p %{buildroot}%{_fontsconfddir}
+ln -s ../../..%{_fontsconfavaildir}/31-cantarell.conf %{buildroot}%{_fontsconfddir}
+
+%post
+LC_ALL=POSIX
+/usr/sbin/fonts-config
+
+%postun
+LC_ALL=POSIX
+/usr/sbin/fonts-config
+
+%files
+%defattr(-,root,root)
+%license COPYING
+%dir %{_datadir}/%{name}
+%dir %{_fontsconfavaildir}
+%{_fontsconfavaildir}/31-cantarell.conf
+%config %{_fontsconfddir}/31-cantarell.conf
+%dir %{cantarell_dir}
+%{cantarell_dir}/Cantarell-Bold.otf
+%{cantarell_dir}/Cantarell-Regular.otf
+
+%changelog