rpms/perl-Devel-CheckOS/F-10 perl-Devel-CheckOS-dontask.patch, NONE, 1.1 perl-Devel-CheckOS.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Author: mmaslano

Update of /cvs/pkgs/rpms/perl-Devel-CheckOS/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv2322

Modified Files:
	.cvsignore sources 
Added Files:
	perl-Devel-CheckOS-dontask.patch perl-Devel-CheckOS.spec 
Log Message:
* Wed Dec 17 2008 Marcela MaÅ¡láÅ?ová <mmaslano@xxxxxxxxxx> 1.50-2
- remove two tests, because they can't pass in rpmbuild.


perl-Devel-CheckOS-dontask.patch:

--- NEW FILE perl-Devel-CheckOS-dontask.patch ---
diff -up Devel-CheckOS-1.50/Makefile.PL.donask Devel-CheckOS-1.50/Makefile.PL
--- Devel-CheckOS-1.50/Makefile.PL.donask	2008-11-05 23:52:31.000000000 +0100
+++ Devel-CheckOS-1.50/Makefile.PL	2008-12-16 12:03:43.000000000 +0100
@@ -44,23 +44,23 @@ sub findOSes {
         }
         next if($@);
         my $hasexpn = $classname->can('expn') ? '/?' : '';
-   ASK: my $answer = prompt(
-            "Are you using $prompt_modname? [Y/n$hasexpn]",
-            "Y"
-        );
-        if($answer =~ /^y/i) {
-            push @OSes, $prompt_modname;
-        } elsif($answer =~ /^\?/) {
-            if($hasexpn) {
-                print "\n".$classname->expn()."\n\n";
-            } else {
-                print "\nYou need help for that!?!?\n\n";
-            }
-            goto ASK;
-        } else {
-            print "Eek!\n";
-            push @notOSes, $prompt_modname;
-        }
+#   ASK: my $answer = prompt(
+#            "Are you using $prompt_modname? [Y/n$hasexpn]",
+#            "Y"
+#        );
+#        if($answer =~ /^y/i) {
+            $prompt_modname = "Y"; push @OSes, $prompt_modname;
+#        } elsif($answer =~ /^\?/) {
+#            if($hasexpn) {
+#                print "\n".$classname->expn()."\n\n";
+#            } else {
+#                print "\nYou need help for that!?!?\n\n";
+#            }
+#            goto ASK;
+#        } else {
+#            print "Eek!\n";
+#            push @notOSes, $prompt_modname;
+#        }
     }
 }
 


--- NEW FILE perl-Devel-CheckOS.spec ---
Name:           perl-Devel-CheckOS
Version:        1.50
Release:        2%{?dist}
Summary:        Check what OS we're running on
License:        GPLv2 or Artistic
Group:          Development/Libraries
URL:            http://search.cpan.org/dist/Devel-CheckOS/
Source0:        http://www.cpan.org/authors/id/D/DC/DCANTRELL/Devel-CheckOS-%{version}.tar.gz
Patch0:         perl-Devel-CheckOS-dontask.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:      noarch
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(File::Find::Rule) >= 0.28
BuildRequires:  perl(Test::More) >= 0.62
Requires:       perl(File::Find::Rule) >= 0.28
Requires:       perl(Test::More) >= 0.62
Requires:       perl(Data::Compare)
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
Devel::CheckOS provides a more friendly interface to $^O, and also lets you
check for various OS "families" such as "Unix", which includes things like
Linux, Solaris, AIX etc.

%prep
%setup -q -n Devel-CheckOS-%{version}
%patch0 -p1

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT

make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT

find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;

%{_fixperms} $RPM_BUILD_ROOT/*

# delete wrong tests, which breaks succesful build
# this wasn't written whole
rm -rf t/50-script.t
# this is testing installation, which can't pass
rm -rf t/XX-autodetected-linux-as-Y.t

%check
make test

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc ARTISTIC.txt CHANGES GPL2.txt README TODO
%{_bindir}/use-devel-assertos
%{perl_vendorlib}/*
%{_mandir}/man1/use-devel-assertos.1.gz
%{_mandir}/man3/*

%changelog
* Wed Dec 17 2008 Marcela MaÅ¡láÅ?ová <mmaslano@xxxxxxxxxx> 1.50-2
- remove two tests, because they can't pass in rpmbuild.

* Tue Dec 16 2008 Marcela MaÅ¡láÅ?ová <mmaslano@xxxxxxxxxx> 1.50-1
- Specfile autogenerated by cpanspec 1.77.


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/perl-Devel-CheckOS/F-10/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	21 Dec 2008 04:41:55 -0000	1.1
+++ .cvsignore	22 Dec 2008 08:49:57 -0000	1.2
@@ -0,0 +1 @@
+Devel-CheckOS-1.50.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/perl-Devel-CheckOS/F-10/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	21 Dec 2008 04:41:55 -0000	1.1
+++ sources	22 Dec 2008 08:49:57 -0000	1.2
@@ -0,0 +1 @@
+78f4fb75af0fef9ae7b974285e03f8a3  Devel-CheckOS-1.50.tar.gz

--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
Fedora-perl-devel-list mailing list
Fedora-perl-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-perl-devel-list

[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux