[opensuse-m17n] Build error at creating fonts packages in OBS
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 ? Best, -- _/_/ Satoru Matsumoto - openSUSE Member - Japan _/_/ _/_/ Marketing/Weekly News/openFATE Screening Team _/_/ _/_/ mail: helios_reds_at_gmx.net / irc: HeliosReds _/_/ _/_/ http://blog.geeko.jp/author/heliosreds _/_/ -- To unsubscribe, e-mail: opensuse-m17n+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-m17n+help@opensuse.org
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: opensuse-m17n+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-m17n+help@opensuse.org
Takashi Iwai wrote:
There are no %prep and %setup sections in your spec file. Without these sections, the source files aren't expanded properly.
Putting %prep and %setup sections without content is just enough ?
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.
I see.
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.
Hmmm, in which cases should we use capital letters in package names ? For example, in case if the names are kinds of trademarks ?
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.
OK. I've removed the package once and I will try to build it in my home repo first. - Unfortunatly, I haven't built local build environment in my machine yet. :-P BTW, are there any suggested procedures to submit new packages to the public repositories ? Thanks for your advice. Best, -- _/_/ Satoru Matsumoto - openSUSE Member - Japan _/_/ _/_/ Marketing/Weekly News/openFATE Screening Team _/_/ _/_/ mail: helios_reds_at_gmx.net / irc: HeliosReds _/_/ _/_/ http://blog.geeko.jp/author/heliosreds _/_/ -- To unsubscribe, e-mail: opensuse-m17n+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-m17n+help@opensuse.org
At Thu, 01 Oct 2009 18:21:25 +0900, Satoru Matsumoto wrote:
Takashi Iwai wrote:
There are no %prep and %setup sections in your spec file. Without these sections, the source files aren't expanded properly.
Putting %prep and %setup sections without content is just enough ?
If you convert the main source to a tar.gz or tar.bz2, rpm will expand it automatically. So yes, if you do so, single %prep and %setup lines should suffice.
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.
I see.
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.
Hmmm, in which cases should we use capital letters in package names ? For example, in case if the names are kinds of trademarks ?
Depends. If the program has to be such (e.g. NetworkManager or DeviceKit), then we'd take as is. But I don't think this is the case of Konatsu font, so better to follow the convention.
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.
OK. I've removed the package once and I will try to build it in my home repo first. - Unfortunatly, I haven't built local build environment in my machine yet. :-P
That's easy and much faster for testing. Just give it a try.
BTW, are there any suggested procedures to submit new packages to the public repositories ?
osc submitreq is the standard way. No matter where to. You can give ack by yourself. Takashi -- To unsubscribe, e-mail: opensuse-m17n+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-m17n+help@opensuse.org
participants (2)
-
Satoru Matsumoto
-
Takashi Iwai