[521] | 1 | %define archivename ttf-bitstream-vera |
---|
| 2 | %define fontdir %{_datadir}/fonts/bitstream-vera |
---|
| 3 | %define __fccache umask 133; which fc-cache >& /dev/null && fc-cache |
---|
| 4 | |
---|
| 5 | Name: TrueType-bitstream-vera |
---|
| 6 | Version: 1.10 |
---|
[3735] | 7 | Release: 2%{?_dist_release} |
---|
[521] | 8 | Summary: Bitstream Vera Fonts |
---|
| 9 | Summary: Bitstream Vera フォント |
---|
| 10 | Group: User Interface/X |
---|
| 11 | License: Redistributable, with restrictions |
---|
| 12 | URL: http://www.gnome.org/fonts/ |
---|
| 13 | Source: ftp://ftp.gnome.org/pub/GNOME/sources/%{archivename}/%{version}/%{archivename}-%{version}.tar.bz2 |
---|
| 14 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
---|
| 15 | BuildArch: noarch |
---|
| 16 | Provides: bitstream-vera-fonts |
---|
| 17 | |
---|
| 18 | %description |
---|
| 19 | The Vera fonts are high-quality latin fonts donated by Bitstream. |
---|
| 20 | These fonts have been released under a liberal license, see |
---|
| 21 | the licensing FAQ in %{_docdir}/%{name}-%{version}/COPYRIGHT.TXT or the |
---|
| 22 | online up-to-date version at %{url} for details. |
---|
| 23 | |
---|
| 24 | |
---|
| 25 | %prep |
---|
| 26 | %setup -q -n %{archivename}-%{version} |
---|
| 27 | |
---|
| 28 | %build |
---|
| 29 | |
---|
| 30 | %install |
---|
| 31 | /bin/rm -rf $RPM_BUILD_ROOT |
---|
| 32 | |
---|
| 33 | #fonts |
---|
| 34 | install -d -m 0755 $RPM_BUILD_ROOT%{fontdir} |
---|
| 35 | install -m 0644 *.ttf $RPM_BUILD_ROOT%{fontdir} |
---|
| 36 | |
---|
| 37 | # "touch" all files we've got flagged as %ghost but which are not |
---|
| 38 | # present in the RPM_BUILD_ROOT when RPM looks for files |
---|
| 39 | /bin/touch $RPM_BUILD_ROOT%{fontdir}/fonts.cache-1 |
---|
| 40 | |
---|
| 41 | |
---|
| 42 | %clean |
---|
| 43 | /bin/rm -rf $RPM_BUILD_ROOT |
---|
| 44 | |
---|
| 45 | |
---|
| 46 | %post |
---|
| 47 | %__fccache %{fontdir} ||: |
---|
| 48 | |
---|
| 49 | |
---|
| 50 | %postun |
---|
| 51 | if [ "$1" = "0" ]; then |
---|
| 52 | %__fccache %{_fontdir} ||: |
---|
| 53 | fi |
---|
| 54 | |
---|
| 55 | |
---|
| 56 | %files |
---|
| 57 | %defattr(0644,root,root,0755) |
---|
| 58 | %doc *.TXT |
---|
| 59 | %dir %{fontdir} |
---|
| 60 | %{fontdir}/*.ttf |
---|
| 61 | %ghost %{fontdir}/fonts.cache-1 |
---|
| 62 | |
---|
| 63 | |
---|
| 64 | %changelog |
---|
[3735] | 65 | * Fri Apr 29 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10-2 |
---|
| 66 | - rebuild with rpm-4.8.1 |
---|
| 67 | |
---|
[521] | 68 | * Sun Oct 05 2008 Shu KONNO <owa@bg.wakwak.com> 1.10-1vl5 |
---|
| 69 | - applied new versioning policy, spec in utf-8 |
---|
| 70 | |
---|
| 71 | * Sun Dec 28 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 1.10-0vl1 |
---|
| 72 | - initial build for Vine Linux |
---|
| 73 | |
---|
| 74 | * Tue Jun 10 2003 Owen Taylor <otaylor@redhat.com> 1.10-1 |
---|
| 75 | - Base package on spec file from Nicolas Mailhot <Nicolas.Mailhot at laPoste.net> |
---|
| 76 | - Cleanups from Warren Togami and Nicolas Mailhot |
---|