diff --git a/.gitignore b/.gitignore index e69de29..44e7366 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Titillium_roman_upright_italic_2_0_OT.zip diff --git a/campivisivi-titillium-fonts-fontconfig.conf b/campivisivi-titillium-fonts-fontconfig.conf new file mode 100644 index 0000000..2321bf1 --- /dev/null +++ b/campivisivi-titillium-fonts-fontconfig.conf @@ -0,0 +1,17 @@ + + + + + sans-serif + + Titillium + + + + Titillium + + sans-serif + + + + diff --git a/campivisivi-titillium-fonts.spec b/campivisivi-titillium-fonts.spec new file mode 100644 index 0000000..867bcfb --- /dev/null +++ b/campivisivi-titillium-fonts.spec @@ -0,0 +1,58 @@ +%global fontname campivisivi-titillium-fonts +%global fontconf 61-%{fontname}.conf + +Name: campivisivi-titillium-fonts +Version: 20120913 +Release: 2%{?dist} +Summary: Sans-serif typeface designed inside Campi Visivi's Type Design course + +License: OFL +URL: http://www.campivisivi.net/titillium/ +Source0: http://www.campivisivi.net/titillium/download/Titillium_roman_upright_italic_2_0_OT.zip +Source1: %{name}-fontconfig.conf + +BuildArch: noarch +BuildRequires: fontpackages-devel +Requires: fontpackages-filesystem + +%description +Sans-serif typeface from the Master of Visual Design Campi Visivi. + +%prep +%setup -q -n "Titillium_roman_upright_italic_2_0_OT" + +for file in *.txt; do + sed 's/\r//g' "$file" | \ + fold -s > "$file.new" && \ + touch -r "$file" "$file.new" && \ + mv "$file.new" "$file" +done + +%build + + +%install +install -m 0755 -d %{buildroot}%{_fontdir} +install -m 0644 -p *.otf %{buildroot}%{_fontdir} + +install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \ + %{buildroot}%{_fontconfig_confdir} + +install -m 0644 -p %{SOURCE1} \ + %{buildroot}%{_fontconfig_templatedir}/%{fontconf} +ln -s %{_fontconfig_templatedir}/%{fontconf} \ + %{buildroot}%{_fontconfig_confdir}/%{fontconf} + +%_font_pkg -f %{fontconf} *.otf + +%doc OFL-FAQ.txt OFL-titillium.txt + + +%changelog +* Mon Jul 22 2013 Luya Tshimbalanga - 20120913-2 +- Update spec based on fedora packaging review + +* Mon Jul 22 2013 Luya Tshimbalanga - 20120913-1 +- Initial release + + diff --git a/sources b/sources index e69de29..6e13a78 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +258e06fe34c35320321f0458e6625bba Titillium_roman_upright_italic_2_0_OT.zip