[opensuse-packaging] How to package perl modules in a compatible way?
Hi, if you look at our spec files for perl modules, we use quite some macros like %perl_make_install or %perl_gen_filelist, which does not exist on any other RPM based distribution. What is the proposed or good way to write spec files, which works on Fedora, Mandriva and RHEL, too? Using our cpanspec doesn't look like a clever idea. Thanks, Thorsten -- Thorsten Kukuk, Project Manager/Release Manager SLES SUSE LINUX Products GmbH, Maxfeldstr. 5, D-90409 Nuernberg GF: Markus Rex, HRB 16746 (AG Nuernberg) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Am 26.11.2010 09:46, schrieb Thorsten Kukuk:
Hi,
if you look at our spec files for perl modules, we use quite some macros like %perl_make_install or %perl_gen_filelist, which does not exist on any other RPM based distribution.
in d:l:p there is a package perl-macros, which has the macro perl_gen_filelist for suse_version < 1120
What is the proposed or good way to write spec files, which works on Fedora, Mandriva and RHEL, too?
This could be extended with the perl_make_install macro. Next question would be. das rpm of Fedora, Mandriva, RHEL read macros from /etc/rpm/... ?
Using our cpanspec doesn't look like a clever idea.
I the above mentioned will work, then it is just easy to modify cpanspec. so I can not agree.
Thanks, Thorsten
Cheers -- Christian --------------------------------------------------- Der ultimative shop für Sportbekleidung und Zubehör http://www.sc24.de --------------------------------------------------- -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Fri, Nov 26, Christian wrote:
Am 26.11.2010 09:46, schrieb Thorsten Kukuk:
Hi,
if you look at our spec files for perl modules, we use quite some macros like %perl_make_install or %perl_gen_filelist, which does not exist on any other RPM based distribution.
in d:l:p there is a package perl-macros, which has the macro perl_gen_filelist for suse_version < 1120
What is the proposed or good way to write spec files, which works on Fedora, Mandriva and RHEL, too?
This could be extended with the perl_make_install macro. Next question would be. das rpm of Fedora, Mandriva, RHEL read macros from /etc/rpm/... ?
I will exptend perl-macros and try it.
Using our cpanspec doesn't look like a clever idea.
I the above mentioned will work, then it is just easy to modify cpanspec. so I can not agree.
I will tell you for sure ;) Thorsten -- Thorsten Kukuk, Project Manager/Release Manager SLES SUSE LINUX Products GmbH, Maxfeldstr. 5, D-90409 Nuernberg GF: Markus Rex, HRB 16746 (AG Nuernberg) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Fri, Nov 26, Christian wrote:
Am 26.11.2010 09:46, schrieb Thorsten Kukuk:
What is the proposed or good way to write spec files, which works on Fedora, Mandriva and RHEL, too?
This could be extended with the perl_make_install macro. Next question would be. das rpm of Fedora, Mandriva, RHEL read macros from /etc/rpm/... ?
I have submitted a new perl-macros package, which has %perl_make_install as macro and has another name on non-openSUSE distributions, to avoid a file name conflict on Fedora.
I the above mentioned will work, then it is just easy to modify cpanspec.
Ok, additional, cpanspec needs to add the following two build requires: BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Test::More) Thorsten -- Thorsten Kukuk, Project Manager/Release Manager SLES SUSE LINUX Products GmbH, Maxfeldstr. 5, D-90409 Nuernberg GF: Markus Rex, HRB 16746 (AG Nuernberg) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Am 29.11.2010 12:40, schrieb Thorsten Kukuk:
On Fri, Nov 26, Christian wrote:
Am 26.11.2010 09:46, schrieb Thorsten Kukuk:
What is the proposed or good way to write spec files, which works on Fedora, Mandriva and RHEL, too?
This could be extended with the perl_make_install macro. Next question would be. das rpm of Fedora, Mandriva, RHEL read macros from /etc/rpm/... ?
I have submitted a new perl-macros package, which has %perl_make_install as macro and has another name on non-openSUSE distributions, to avoid a file name conflict on Fedora.
ok, thx, just accepted by coolo :)
I the above mentioned will work, then it is just easy to modify cpanspec.
Ok, additional, cpanspec needs to add the following two build requires:
BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Test::More)
hmm, on suse these packages are provided by perl. cpanspec will write these if you use 'cpanspec -o' -o, --old Be more compatible with old RHL/FC releases. With this option enabled, the generated spec file * Defines perl_vendorlib or perl_vendorarch. * Includes explicit dependencies for core Perl modules. * Uses "%check || :" instead of just %check. * Includes a hack to remove LD_RUN_PATH from Makefile.
Thorsten
-- Christian --------------------------------------------------- Der ultimative shop für Sportbekleidung und Zubehör http://www.sc24.de --------------------------------------------------- -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (2)
-
Christian
-
Thorsten Kukuk