Re: [opensuse-packaging] Standard way to install a font?

2007-11-06 Thread Mike FABIAN
Paul Elliott <[EMAIL PROTECTED]> さんは書きました:

> Is there a standard way (a macro perhaps), to install a font?
>
>
> I have a spec file written by someone else that puts the following in %post:
>  [ -x /usr/sbin/chkfontpath ] && /usr/sbin/chkfontpath -q -a 
> %{datadir}/fonts/default/Type1;\
>  [ -x /usr/sbin/chkfontpath ] && /usr/sbin/chkfontpath -q -a 
> %{datadir}/fonts/default/Type1/adobestd35;\
>  [ -x /usr/bin/fc-cache ] && /usr/bin/fc-cache
>
>
> Is this correct? Works with all distros?

We use

%post
%run_suseconfig_fonts -c

%postun
%run_suseconfig_fonts -c

The '-c' needs to be added only if it CJK fonts (Chinese, Japanese, or
Korean fonts) are installed.

-- 
Mike FABIAN   <[EMAIL PROTECTED]>   http://www.suse.de/~mfabian
睡眠不足はいい仕事の敵だ。
I � Unicode
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [opensuse-packaging] New rpmlint check in BETA

2007-11-06 Thread Lukas Ocilka
Dirk Mueller napsal(a):
> Hi, 
> 
> as a followup of the discussion of yesterday: 
> 
> There is a new check in BETA which will check for missing prerequires for 
> your %pre/%post/%preun%postun scripts. 
> 
> An example would be :
> 
> kdemultimedia3-extra.i586: E: no-prereq-on coreutils for mv
> 
> which says, that kdemultimedia3-extra contains a %post script that contains a 
> call to "/bin/mv", however coreutils or /bin/mv is not in the prereq for that 
> package. The check is fatal for repeated abuse. 
> 
> for (other) details, please refer to http://en.opensuse.org/Packaging/RpmLint
> 
> Please file bugreports if you run accross a false positive/false negative/do 
> not understand the report/etc. 

Thanks a lot!

That's even more than I expected to happen :) It seems that cooperation
works at this mailing-list.

Bye
Lukas

-- 

Lukas Ocilka, YaST Developer (xn--luk-gla45d)
-
SUSE LINUX, s. r. o., Lihovarska 1060/12, Praha 9, Czech Republic



signature.asc
Description: OpenPGP digital signature


[opensuse-packaging] New rpmlint check in BETA

2007-11-06 Thread Dirk Mueller

Hi, 

as a followup of the discussion of yesterday: 

There is a new check in BETA which will check for missing prerequires for 
your %pre/%post/%preun%postun scripts. 

An example would be :

kdemultimedia3-extra.i586: E: no-prereq-on coreutils for mv

which says, that kdemultimedia3-extra contains a %post script that contains a 
call to "/bin/mv", however coreutils or /bin/mv is not in the prereq for that 
package. The check is fatal for repeated abuse. 

for (other) details, please refer to http://en.opensuse.org/Packaging/RpmLint

Please file bugreports if you run accross a false positive/false negative/do 
not understand the report/etc. 

Greetings,
Dirk
-- 
RPMLINT information under http://en.opensuse.org/Packaging/RpmLint
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [opensuse-packaging] *-examples subpackage

2007-11-06 Thread Andreas Jaeger
Petr Gajdos <[EMAIL PROTECTED]> writes:

> Hi,
> it's not possible to have source files in *-examples subpackage in beta?
> Petr
>
> -- cut --
>
> JFYI: package Source-Navigator failed to build in distribution beta-i386.
> Build started Thu 2007-11-01 10:34:56 on alsa2.
>
> http://w3d.suse.de/abuildstat/failed/beta-i386/Source-Navigator
> See /work/built/info/failed/beta-i386/Source-Navigator for details.
>
> tail -n 30 /work/built/info/failed/beta-i386/Source-Navigator
> E: Source-Navigator-examples.i586 devel-file-in-non-devel-package (Badness: 
> 50) /opt/snavigator/share/demos/c++_demo/glish/Queue.h

/opt/snavigator is a bad idea anyway ;-),

Andreas
-- 
 Andreas Jaeger, Director Platform / openSUSE, [EMAIL PROTECTED]
  SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
   Maxfeldstr. 5, 90409 Nürnberg, Germany
GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126


pgpyH5iloypWK.pgp
Description: PGP signature


Re: [opensuse-packaging] *-examples subpackage

2007-11-06 Thread Dirk Mueller
On Tuesday 06 November 2007, Stephan Kulow wrote:

> > it's not possible to have source files in *-examples subpackage in beta?

it is possible, it was a temporary bug that is meanwhile fixed. you`re looking 
at a build failure that is over a week old. Please take a look at the current 
build failures, where Source-Navigator builds again. 

Also please do not forget that I announced on October 29th on this very list 
that rpmlint in BETA is being upgraded and that you should NOT react to those 
reports. 

> Well, one or two - the badness is 50, so only 20 are a problem :)

Wrong, Only in BETA. Scoring is different in STABLE. 

> You can mark them as %doc and then rpmlint will know

Wrong as well. 

Greetings,
Dirk
-- 
RPMLINT information under http://en.opensuse.org/Packaging/RpmLint
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [opensuse-packaging] RPM dependencies vs. post-install scripts

2007-11-06 Thread Dirk Mueller
On Tuesday 06 November 2007, Cristian Rodriguez wrote:

> odbcinst from package unixODBC located in /usr/bin/odbcinst may be also
> called while installing drivers on %post
>
> rpmlint may also enforce people using %install_info* macros to PreReq:
> %install_info_prereq ;)

thanks for all the suggestions in this thread, they`re now implemented and 
will move to factory soon. 

Greetings,
Dirk


-- 
RPMLINT information under http://en.opensuse.org/Packaging/RpmLint
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [opensuse-packaging] *-examples subpackage

2007-11-06 Thread Stephan Kulow
Am Dienstag 06 November 2007 schrieb Petr Gajdos:
> Hi,
> it's not possible to have source files in *-examples subpackage in beta?

Well, one or two - the badness is 50, so only 20 are a problem :)

You can mark them as %doc and then rpmlint will know

Greetings, Stephan

>
> -- cut --
>
> JFYI: package Source-Navigator failed to build in distribution beta-i386.
> Build started Thu 2007-11-01 10:34:56 on alsa2.
>
> http://w3d.suse.de/abuildstat/failed/beta-i386/Source-Navigator
> See /work/built/info/failed/beta-i386/Source-Navigator for details.
>
> tail -n 30 /work/built/info/failed/beta-i386/Source-Navigator
> E: Source-Navigator-examples.i586 devel-file-in-non-devel-package (Badness:
> 50) /opt/snavigator/share/demos/c++_demo/glish/Queue.h
>
> --- end cut ---
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



-- 
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[opensuse-packaging] *-examples subpackage

2007-11-06 Thread Petr Gajdos
Hi,
it's not possible to have source files in *-examples subpackage in beta?
Petr

-- cut --

JFYI: package Source-Navigator failed to build in distribution beta-i386.
Build started Thu 2007-11-01 10:34:56 on alsa2.

http://w3d.suse.de/abuildstat/failed/beta-i386/Source-Navigator
See /work/built/info/failed/beta-i386/Source-Navigator for details.

tail -n 30 /work/built/info/failed/beta-i386/Source-Navigator
E: Source-Navigator-examples.i586 devel-file-in-non-devel-package (Badness: 
50) /opt/snavigator/share/demos/c++_demo/glish/Queue.h

--- end cut ---
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [opensuse-packaging] RPM dependencies vs. post-install scripts

2007-11-06 Thread Cristian Rodriguez
Cristian Rodriguez escribió:
> Lukas Ocilka escribió:
> 
>> Any other (e.g., better) ideas ;)?
>>
> 

odbcinst from package unixODBC located in /usr/bin/odbcinst may be also
called while installing drivers on %post

rpmlint may also enforce people using %install_info* macros to PreReq:
%install_info_prereq ;)

I have also seen packages using:
chroot
gpg

HTH.



-- 
"Two things are infinite: the universe and human stupidity; and I'm not
sure about the universe." --Albert Einstein

Cristian Rodríguez R, Core Services
SUSE LINUX Products GmbH
Research & Development
http://www.opensuse.org/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]