Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

forked cpanplus-dist-mageia from cpanplus-dist-mdv

this includes changing all mdv / mandriva to mga / mageia
  • Loading branch information...
commit f55339c46d84e33b37b014d0c8f82e5f1e123b2b 1 parent 9be46c2
Jérôme Quelin authored
2  .gitignore
@@ -27,5 +27,5 @@ cover_db
27 27 *.tmp
28 28
29 29 # Avoid archives of this distribution
30   -CPANPLUS-Dist-Mdv-*
  30 +CPANPLUS-Dist-Mageia-*
31 31
127 Changes
... ... @@ -1,129 +1,4 @@
1 1 Revision history for CPANPLUS-Dist-Mdv
2 2
3 3 {{$NEXT}}
4   -
5   -2.100400 2010-02-09 18:00:20 Europe/Paris
6   - - do not ship makefile.pl anymore, providing build.pl exclusively (for
7   - cpanplus::dist::mdv only - makefile.pl support for packaged modules
8   - still remains, of course! :-) )
9   - - filter out "perl" buildrequires (shlomi fish)
10   - - package meta.yml (or meta.json) as doc file
11   - - using file::sharedir for template spec file
12   - - using %make instead of %{make} for eumm-powered dists
13   - - doc update
14   -
15   -2.093311 2009-11-27 16:53:10 Europe/Paris
16   - - fix git repo in meta.yml
17   -
18   -2.093310 2009-11-27 14:46:53 Europe/Paris
19   - - moving to 2.yydddn version scheme
20   - - requiring perl 5.10.x (which is the default in mandriva)
21   - - fix #52096: improved error messages
22   -
23   -**
24   -
25   -1.2.1 Mon Jul 6 16:42:57 CEST 2009
26   - - fixing bug in prereq
27   -
28   -1.2.0 Wed Jul 1 17:47:57 2009
29   - - moving template spec in its own file
30   - - support for module::build only distributions (shlomi fish)
31   - - infrastructue: moving to dist::zilla
32   -
33   -**
34   -
35   -1.1.0 Fri May 22 13:11:58 CEST 2009
36   - - using %perl_convert_version macro to normalize version numbers
37   - - using valid license gpl+ or artistic
38   - - removing duplicates in %doc
39   - - makefile.pl now autogenerated
40   - - try to follow http://wiki.mandriva.com/en/Policies/RpmSpecProposal
41   -
42   -**
43   -
44   -1.0.0 Sun Feb 1 17:56:59 CET 2009
45   - - install() supported. module is somehow complete
46   - - select first rpm created (hence, not the -debug one)
47   -
48   -**
49   -
50   -0.3.9 Mon Nov 10 09:12:23 CET 2008
51   - - fix LC_ALL usage, failing on some smoker setups
52   -
53   -0.3.8 Sun Nov 9 17:58:49 CET 2008
54   - - fix LC_ALL bug for date (guillomovitch)
55   - - enforce mandriva summary format policy (guillomovitch)
56   -
57   -0.3.7 Sun Aug 10 09:00:43 CEST 2008
58   - - fix bug 38360: borken changelog generation (shlomi fish)
59   - - update repository information
60   -
61   -0.3.6 Wed Jun 11 12:55:13 CEST 2008
62   - - don't insert a blank line before description, as per thierry vignaud's request
63   - - use %buildroot rpm macro instead of env var, as per guillaume's request
64   - - don't package META.yml file, as per guillaume's request
65   - - added initial changelog to be imported by mdvsys, as per guillaume's request
66   -
67   -0.3.5 Sun Feb 10 18:53:39 CET 2008
68   - - moving to git
69   - - using pod::pom::view::text to format description
70   - . wrapping description to fit in 80 columns
71   - . removing all pod sequences in it
72   -
73   -0.3.4 Fri Dec 21 13:12:52 CET 2007
74   - - ticket #31693: using rpm command to find rpm topdir
75   -
76   -0.3.3 Mon Nov 26 13:57:03 CET 2007
77   - - fixing typo in default description
78   - - kwalitee/cpants release
79   -
80   -0.3.2 Tue Nov 13 18:09:34 CET 2007
81   - - checking for Makefile.PL à la Module::Build::Compat
82   - - fixing build problems
83   - - enabling tests during rpm creation
84   -
85   -0.3.1 Mon Nov 12 18:30:08 CET 2007
86   - - try to guess build arch
87   - - module toplevel replaced by a wildcard (for native packages)
88   -
89   -0.3.0 Thu Nov 8 19:24:00 CET 2007
90   - - provide summary in generated specfile + rpm
91   - - try to provide a description in generated specfile + rpm
92   -
93   -**
94   -
95   -0.2.2 Wed Nov 7 19:09:50 CET 2007
96   - - taking guillomovitch's input into account
97   - - don't provide runtime requirements: rpmbuild will find them
98   - - restricting file inclusion:
99   - . prefer specific files instead of system manpage directory
100   - . including module top level
101   - - providing full source url for easier updates later on
102   -
103   -0.2.1 Mon Nov 5 18:33:13 CET 2007
104   - - using File::HomeDir instead of computing ourselves $HOME
105   - - removed YAML usage (was here for debugging purpose)
106   -
107   -0.2.0 Sun Nov 4 17:41:46 CET 2007
108   - - fixing spec-file when missing files detected by rpmbuild
109   - - rpmbuild now quiet for better output
110   - - fixing test on windows
111   - - fixing case where more than one rpm / srpm found
112   -
113   -**
114   -
115   -0.1.3 Wed Oct 24 18:46:01 CEST 2007
116   - - reordered calls to makemaker
117   - - don't rebuild rpm unless needed (or forced)
118   -
119   -0.1.2 Sat Oct 20 12:36:16 CEST 2007
120   - - taking jos boumans' input into account
121   - - fixing name of spec file (using distname instead of module name)
122   -
123   -0.1.1 Fri Oct 19 13:28:02 CEST 2007
124   - - fixing missing prereqs in build scripts
125   -
126   -0.1.0 Thu Oct 18 20:02:52 CEST 2007
127   - - initial release: format_available, and rough init / prepare / create
128   - methods
129   -
  4 + - forked from cpanplus-dist-mdv
12 dist.ini
... ... @@ -1,14 +1,8 @@
1   -name = CPANPLUS-Dist-Mdv
  1 +name = CPANPLUS-Dist-Mageia
2 2 author = Jerome Quelin
3 3 license = Perl_5
4 4 copyright_holder = Jerome Quelin
5   -copyright_year = 2007
6   -
7   -; -- static meta-information
8   -[MetaResources]
9   -homepage = http://search.cpan.org/dist/CPANPLUS-Dist-Mdv/
10   -repository = http://github.com/jquelin/cpanplus-dist-mdv
11   -;MailingList =
  5 +copyright_year = 2011
12 6
13 7 [@JQUELIN]
14   -major_version = 2
  8 +major_version = 1
64 lib/CPANPLUS/Dist/Mdv.pm → lib/CPANPLUS/Dist/Mageia.pm
@@ -2,8 +2,8 @@ use 5.010;
2 2 use strict;
3 3 use warnings;
4 4
5   -package CPANPLUS::Dist::Mdv;
6   -# ABSTRACT: a cpanplus backend to build mandriva rpms
  5 +package CPANPLUS::Dist::Mageia;
  6 +# ABSTRACT: a cpanplus backend to build mageia rpms
7 7
8 8 use base 'CPANPLUS::Dist::Base';
9 9
@@ -26,22 +26,22 @@ Readonly my $RPMDIR => do { chomp(my $d=qx[ rpm --eval %_topdir ]); $d; };
26 26
27 27 # -- class methods
28 28
29   -=method my $bool = CPANPLUS::Dist::Mdv->format_available;
  29 +=method my $bool = CPANPLUS::Dist::Mageia->format_available;
30 30
31 31 Return a boolean indicating whether or not you can use this package to
32 32 create and install modules in your environment.
33 33
34   -It will verify if you are on a mandriva system, and if you have all the
35   -necessary components avialable to build your own mandriva packages. You
  34 +It will verify if you are on a mageia system, and if you have all the
  35 +necessary components avialable to build your own mageia packages. You
36 36 will need at least these dependencies installed: C<rpm>, C<rpmbuild> and
37 37 C<gcc>.
38 38
39 39 =cut
40 40
41 41 sub format_available {
42   - # check mandriva release file
43   - if ( ! -f '/etc/mandriva-release' ) {
44   - error( 'not on a mandriva system' );
  42 + # check mageia release file
  43 + if ( ! -f '/etc/mageia-release' ) {
  44 + error( 'not on a mageia system' );
45 45 return;
46 46 }
47 47
@@ -58,7 +58,7 @@ sub format_available {
58 58 # check prereqs
59 59 for my $prog ( qw[ rpm rpmbuild gcc ] ) {
60 60 next if can_run($prog);
61   - error( "'$prog' is a required program to build mandriva packages" );
  61 + error( "'$prog' is a required program to build mageia packages" );
62 62 $flag++;
63 63 }
64 64
@@ -68,9 +68,9 @@ sub format_available {
68 68
69 69 # -- public methods
70 70
71   -=method my $bool = $mdv->init;
  71 +=method my $bool = $mga->init;
72 72
73   -Sets up the C<CPANPLUS::Dist::Mdv> object for use. Effectively creates
  73 +Sets up the C<CPANPLUS::Dist::Mageia> object for use. Effectively creates
74 74 all the needed status accessors.
75 75
76 76 Called automatically whenever you create a new C<CPANPLUS::Dist> object.
@@ -84,9 +84,9 @@ sub init {
84 84 # distvers: 1.23
85 85 # extra_files: qw[ /bin/foo /usr/bin/bar ]
86 86 # rpmname: perl-Foo-Bar
87   - # rpmpath: $RPMDIR/RPMS/noarch/perl-Foo-Bar-1.23-1mdv2008.0.noarch.rpm
  87 + # rpmpath: $RPMDIR/RPMS/noarch/perl-Foo-Bar-1.23-1mga2008.0.noarch.rpm
88 88 # rpmvers: 1
89   - # srpmpath: $RPMDIR/SRPMS/perl-Foo-Bar-1.23-1mdv2008.0.src.rpm
  89 + # srpmpath: $RPMDIR/SRPMS/perl-Foo-Bar-1.23-1mga2008.0.src.rpm
90 90 # specpath: $RPMDIR/SPECS/perl-Foo-Bar.spec
91 91 $status->mk_accessors(qw[ distname distvers extra_files rpmname rpmpath
92 92 rpmvers srpmpath specpath ]);
@@ -95,7 +95,7 @@ sub init {
95 95 }
96 96
97 97
98   -=method my $bool = $mdv->prepare;
  98 +=method my $bool = $mga->prepare;
99 99
100 100 Prepares a distribution for creation. This means it will create the rpm
101 101 spec file needed to build the rpm and source rpm. This will also satisfy
@@ -107,8 +107,8 @@ since it relies on pod parsing to find those information.
107 107
108 108 Returns true on success and false on failure.
109 109
110   -You may then call C<< $mdv->create >> on the object to create the rpm
111   -from the spec file, and then C<< $mdv->install >> on the object to
  110 +You may then call C<< $mga->create >> on the object to create the rpm
  111 +from the spec file, and then C<< $mga->install >> on the object to
112 112 actually install it.
113 113
114 114 =cut
@@ -180,7 +180,7 @@ sub prepare {
180 180
181 181 if ( not $opts{force} ) {
182 182 msg( "won't re-spec package since --force isn't in use" );
183   - # c::d::mdv store
  183 + # c::d::mga store
184 184 $status->rpmpath($pkg); # store the path of rpm
185 185 # cpanplus api
186 186 $status->prepared(1);
@@ -246,14 +246,14 @@ sub prepare {
246 246 }
247 247
248 248
249   -=method my $bool = $mdv->create;
  249 +=method my $bool = $mga->create;
250 250
251 251 Builds the rpm file from the spec file created during the C<create()>
252 252 step.
253 253
254 254 Returns true on success and false on failure.
255 255
256   -You may then call C<< $mdv->install >> on the object to actually install it.
  256 +You may then call C<< $mga->install >> on the object to actually install it.
257 257
258 258 =cut
259 259
@@ -311,7 +311,7 @@ sub create {
311 311 my ($srpm) = (sort glob "$RPMDIR/SRPMS/$rpmname-*.src.rpm")[-1];
312 312 msg( "rpm created successfully: $rpm" );
313 313 msg( "srpm available: $srpm" );
314   - # c::d::mdv store
  314 + # c::d::mga store
315 315 $status->rpmpath($rpm);
316 316 $status->srpmpath($srpm);
317 317 # cpanplus api
@@ -322,7 +322,7 @@ sub create {
322 322
323 323 # unknown error, aborting.
324 324 if ( not $buffer =~ /^\s+Installed .but unpackaged. file.s. found:\n(.*)\z/ms ) {
325   - error( "failed to create mandriva package for '$distname': $buffer" );
  325 + error( "failed to create mageia package for '$distname': $buffer" );
326 326 # cpanplus api
327 327 $status->created(0);
328 328 return;
@@ -341,7 +341,7 @@ sub create {
341 341 }
342 342
343 343
344   -=method my $bool = $mdv->install;
  344 +=method my $bool = $mga->install;
345 345
346 346 Installs the rpm using C<rpm -U>. If run as a non-root user, uses
347 347 C<sudo>. This assumes that current user has sudo rights (without
@@ -440,7 +440,7 @@ sub _is_module_build_compat {
440 440 # return the absolute path where the template spec will be located.
441 441 #
442 442 sub _template_spec_file_path {
443   - my $path = dist_dir('CPANPLUS-Dist-Mdv');
  443 + my $path = dist_dir('CPANPLUS-Dist-Mageia');
444 444 return "$path/template.spec";
445 445 }
446 446
@@ -448,7 +448,7 @@ sub _template_spec_file_path {
448 448 #
449 449 # my $name = _mk_pkg_name($dist);
450 450 #
451   -# given a distribution name, return the name of the mandriva rpm
  451 +# given a distribution name, return the name of the mageia rpm
452 452 # package. in most cases, it will be the same, but some pakcage name
453 453 # will be too long as a rpm name: we'll have to cut it.
454 454 #
@@ -555,13 +555,13 @@ __END__
555 555
556 556 =head1 SYNOPSYS
557 557
558   - $ cpan2dist --format=CPANPLUS::Dist::Mdv Some::Random::Package
  558 + $ cpan2dist --format=CPANPLUS::Dist::Mageia Some::Random::Package
559 559
560 560
561 561
562 562 =head1 DESCRIPTION
563 563
564   -CPANPLUS::Dist::Mdv is a distribution class to create mandriva packages
  564 +CPANPLUS::Dist::Mageia is a distribution class to create mageia packages
565 565 from CPAN modules, and all its dependencies. This allows you to have
566 566 the most recent copies of CPAN modules installed, using your package
567 567 manager of choice, but without having to wait for central repositories
@@ -571,7 +571,7 @@ You can either install them using the API provided in this package, or
571 571 manually via rpm.
572 572
573 573 Some of the bleading edge CPAN modules have already been turned into
574   -mandriva packages for you, and you can make use of them by adding the
  574 +mageia packages for you, and you can make use of them by adding the
575 575 cooker repositories (main & contrib).
576 576
577 577 Note that these packages are built automatically from CPAN and are
@@ -611,23 +611,23 @@ You can look for information on this module at:
611 611
612 612 =item * Search CPAN
613 613
614   -L<http://search.cpan.org/dist/CPANPLUS-Dist-Mdv>
  614 +L<http://search.cpan.org/dist/CPANPLUS-Dist-Mageia>
615 615
616 616 =item * See open / report bugs
617 617
618   -L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=CPANPLUS-Dist-Mdv>
  618 +L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=CPANPLUS-Dist-Mageia>
619 619
620 620 =item * Git repository
621 621
622   -L<http://github.com/jquelin/cpanplus-dist-mdv>
  622 +L<http://github.com/jquelin/cpanplus-dist-mageia>
623 623
624 624 =item * AnnoCPAN: Annotated CPAN documentation
625 625
626   -L<http://annocpan.org/dist/CPANPLUS-Dist-Mdv>
  626 +L<http://annocpan.org/dist/CPANPLUS-Dist-Mageia>
627 627
628 628 =item * CPAN Ratings
629 629
630   -L<http://cpanratings.perl.org/d/CPANPLUS-Dist-Mdv>
  630 +L<http://cpanratings.perl.org/d/CPANPLUS-Dist-Mageia>
631 631
632 632 =back
633 633
4 share/template.spec
@@ -43,5 +43,5 @@ DISTDOC
43 43 DISTEXTRA
44 44
45 45 %changelog
46   -* DISTDATE cpan2dist DISTVERS-1mdv
47   -- initial mdv release, generated with cpan2dist
  46 +* DISTDATE cpan2dist DISTVERS-1mga
  47 +- initial mageia release, generated with cpan2dist

0 comments on commit f55339c

Please sign in to comment.
Something went wrong with that request. Please try again.