OpenType-inconsolata-vl.spec 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. %define _fontdir %{_datadir}/fonts/%{name}
  2. Summary: monospaced font designed for code listings
  3. Name: OpenType-inconsolata
  4. Version: 001.010
  5. Release: 1%{?_dist_release}
  6. License: SIL OFL v1.1
  7. Group: User Interface/X
  8. URL: http://www.levien.com/type/myfonts/inconsolata.html
  9. Source0: http://www.levien.com/type/myfonts/Inconsolata.otf
  10. Source1: http://www.levien.com/type/myfonts/textest.pdf
  11. Source2: http://www.levien.com/type/myfonts/Inconsolata.sfd
  12. Source3: http://www.levien.com/type/myfonts/Inconsolata.pfa
  13. ## OFL.txt and OFL-FAQ.txt are downloaded from http://scripts.sil.org/
  14. Source10: OFL.txt
  15. Source11: OFL-FAQ.txt
  16. BuildArch: noarch
  17. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
  18. %description
  19. Inconsolata is a monospace font, designed for code listings and the like,
  20. in print. There are a great many "programmer fonts," designed primarily
  21. for use on the screen, but in most cases do not have the attention to
  22. detail for high resolution rendering.
  23. %prep
  24. %setup -T -c -n %{name}-%{version}
  25. %__cp %{SOURCE1} %{SOURCE10} %{SOURCE11} . || exit 1
  26. %build
  27. %install
  28. %__rm -rf $RPM_BUILD_ROOT
  29. %__mkdir_p $RPM_BUILD_ROOT%{_fontdir}
  30. %__cp -a %{SOURCE0} $RPM_BUILD_ROOT%{_fontdir}/
  31. %clean
  32. %__rm -rf $RPM_BUILD_ROOT
  33. %post
  34. %__font_install_post %{_fontdir}
  35. %postun
  36. %__font_install_postun %{_fontdir}
  37. %files
  38. %defattr(-,root,root,-)
  39. %doc textest.pdf OFL.txt OFL-FAQ.txt
  40. %{_fontdir}/Inconsolata.otf
  41. %changelog
  42. * Sun Jun 5 2011 Munehiro Yamamoto <munepi@vinelinux.org> 001.010-1
  43. - Initial build.