Re: Build error at creating fonts packages in OBS
Takashi Iwai <[email protected]>
| Newsgroups | gmane.linux.suse.m17n |
|---|---|
| Message-ID | <s5hzl8bikb8.wl%[email protected]> |
At Thu, 01 Oct 2009 17:06:36 +0900,
Satoru Matsumoto wrote:
>
> Hi,
>
> Recently, I found a fancy Japanese truetype fonts called Konatu, which
> is adjusted to be compatible with MS P Gothic and distributed under
> Creative Commons Attribution-Share Alike 3.0 License.
>
> http://www.masuseki.com/index.php?u=be/konatu.htm
>
> So, I tried to build packages of this fonts in M17N/Devel repo on OBS.
>
> https://build.opensuse.org/package/show?package=Konatu&project=M17N%3ADevel
>
> I wrote a spec file by referring to that of monapo which is in M17N
> repo, but I got an error and couldn't build the packages.
>
> Error Message:
>
> [snip]
>
> Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.3672
> + umask 022
> + cd /usr/src/packages/BUILD
> + mkdir -p /var/tmp/Konatu-25-build/usr/share/fonts/truetype
> + install -m 644 Konatu.ttf
> /var/tmp/Konatu-25-build/usr/share/fonts/truetype
> install: cannot stat `Konatu.ttf': No such file or directory
> error: Bad exit status from /var/tmp/rpm-tmp.3672 (%install)
>
> [snip]
>
> ...
>
> The %install section of the spec file:
>
> %install
> mkdir -p $RPM_BUILD_ROOT%{fontdir}
> install -m 644 Konatu.ttf $RPM_BUILD_ROOT%{fontdir}
> install -m 644 KonatuTohaba.ttf $RPM_BUILD_ROOT%{fontdir}
>
>
> How can I fix this problem ?
There are no %prep and %setup sections in your spec file.
Without these sections, the source files aren't expanded properly.
IIRC, rpm can't handle zip file as the source, so you need to expand
it manually via unzip. But, it'd be much easier if you re-pack the
contents to a tar.bz2.
Also, I'd suggest to rename to all lower letters as convention.
Maybe it'd be better to have -fonts (or -font) prefix in the package
name, so that it gets clearer what kind of package it is.
I'm going to rename monapo package to monapo-font as well.
Anyway, you'd be better to build the package locally on your machine
before submitting to the public repository. M17N:Devel is a test
project, so it's almost harmless, though.
thanks,
Takashi
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]