rpms/efont-unicode-bdf/devel efont-unicode-bdf.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Mamoru Tasaka (mtasaka) fedora-extras-commits at redhat.com
Sun Aug 20 03:05:41 UTC 2006


Author: mtasaka

Update of /cvs/extras/rpms/efont-unicode-bdf/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv31801/devel

Modified Files:
	.cvsignore sources 
Added Files:
	efont-unicode-bdf.spec 
Log Message:
auto-import efont-unicode-bdf-0.4.2-6 on branch devel from efont-unicode-bdf-0.4.2-6.src.rpm


--- NEW FILE efont-unicode-bdf.spec ---
%define         name            efont-unicode-bdf
%define         fontdir         %{_datadir}/fonts/japanese/%{name}

Name:           %{name}
Version:        0.4.2
Release:        6%{?dist}
Summary:        Unicode font by Electronic Font Open Laboratory

Group:          User Interface/X
License:        BSD
URL:            http://openlab.jp/efont/unicode/
Source0:        http://openlab.jp/efont/dist/unicode-bdf/efont-unicode-bdf-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:      noarch

BuildRequires:  xorg-x11-font-utils
BuildRequires:  gzip
Requires(post):  %{_bindir}/mkfontdir, %{_sbindir}/chkfontpath, fontconfig
Requires(postun):    %{_sbindir}/chkfontpath, fontconfig

%description
This package provides Unicode bitmap fonts provided by
Electronic Font Open Laboratory.

%prep
%setup -q

%build
for f in *bdf ; do
  g=${f%bdf}pcf
  bdftopcf -o $g $f
  gzip -9 $g
done

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{fontdir}
for g in *pcf.gz ; do
  install -m 644 $g $RPM_BUILD_ROOT%{fontdir}
done

# create ghost files
touch $RPM_BUILD_ROOT%{fontdir}/{fonts.dir,fonts.cache-1}

# convert documents' encoding to UTF8.
for f in README.{naga10,shinonome} ; do
   mv ${f} ${f}.tmp
   iconv -f EUCJP -t UTF8 ${f}.tmp > ${f} && rm -f ${f}.tmp || \
      mv ${f}.tmp ${f}
done

%clean
rm -rf $RPM_BUILD_ROOT

%post
if [ -x %{_bindir}/mkfontdir -a -x %{_sbindir}/chkfontpath ] ; then
   %{_bindir}/mkfontdir %{fontdir} && %{_sbindir}/chkfontpath -q -a %{fontdir}
fi
[ -x %{_bindir}/fc-cache ] && %{_bindir}/fc-cache 2>/dev/null

%postun
# final remove?
if [ "$1" == "0" ] ; then
   [ -x %{_sbindir}/chkfontpath ] && %{_sbindir}/chkfontpath -q -r %{fontdir}
fi
[ -x %{_bindir}/fc-cache ] && %{_bindir}/fc-cache 2>/dev/null

%files
%defattr(-,root,root,-)
%doc README* COPYRIGHT ChangeLog List.html
%dir %{fontdir}
%{fontdir}/*pcf.gz
%ghost %verify(not md5 size mtime) %{fontdir}/fonts.cache-1
%ghost %verify(not md5 size mtime) %{fontdir}/fonts.dir

%changelog
* Tue Aug 18 2006 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 0.4.2-6
- Change %%post.

* Tue Aug 15 2006 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 0.4.2-5
- package again.

* Tue Aug 15 2006 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 0.4.2-4
- Own the original font directory.

* Thu Aug 10 2006 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 0.4.2-3
- Again more treatments.

* Thu Aug 10 2006 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 0.4.2-2
- More neat treatments for post and postun.

* Thu Aug 10 2006 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 0.4.2-1
- Initial packaging.


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/efont-unicode-bdf/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	20 Aug 2006 03:04:14 -0000	1.1
+++ .cvsignore	20 Aug 2006 03:05:41 -0000	1.2
@@ -0,0 +1 @@
+efont-unicode-bdf-0.4.2.tar.bz2


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/efont-unicode-bdf/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	20 Aug 2006 03:04:14 -0000	1.1
+++ sources	20 Aug 2006 03:05:41 -0000	1.2
@@ -0,0 +1 @@
+0c0acbb40e44d899472001302b1c9e48  efont-unicode-bdf-0.4.2.tar.bz2




More information about the fedora-extras-commits mailing list