rpms/perl-Goo-Canvas/F-10 Changes.20090614, NONE, 1.1 import.log, NONE, 1.1 perl-Goo-Canvas.spec, NONE, 1.1 perltetris_pl-undefined.diff, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

梁穗隆 liangsuilong at fedoraproject.org
Sun Jun 21 09:35:33 UTC 2009


Author: liangsuilong

Update of /cvs/pkgs/rpms/perl-Goo-Canvas/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv23460/F-10

Modified Files:
	.cvsignore sources 
Added Files:
	Changes.20090614 import.log perl-Goo-Canvas.spec 
	perltetris_pl-undefined.diff 
Log Message:
Liang Suilong's update


--- NEW FILE Changes.20090614 ---
Revision history for Perl extension Goo::Canvas.

0.01  Wed Sep 26 16:24:09 2007
	- original version; created by h2xs 1.23 with options
		-A -n Goo::Canvas

0.03  Sun Oct  7 22:35:33 2007
	- Fix for demo/demo.pl create_stipples

0.04  Sun Oct  7 22:36:28 2007
    - Bindings for goocanvas-0.9

0.05  Sun Nov  4 14:25:34 2007
    - Fix get_bounds error
    - Add bin/perltetris.pl
    - Add bin/perlmine.pl

0.05-5  Wed May  4 08:09:30 2009
    - Rename bin/perltetris.pl bin/perlfangkuang.pl

0.05-6  Thu Jun  11 09:56:09 2009
    - - Rename share/man/man1/perltetris.pl.1 share/man/man1/perlfangkuang.pl.1

0.06  Wed, 06 May 2009 22:00:39 -0400
    - Add Goo:Canvas::get_items_at and Goo::Canvas::get_items_in_area.
    Thanks to Jeffrey Ratcliffe!


--- NEW FILE import.log ---
perl-Goo-Canvas-0_06-2_fc10:F-10:perl-Goo-Canvas-0.06-2.fc10.src.rpm:1245576905


--- NEW FILE perl-Goo-Canvas.spec ---
Name:           perl-Goo-Canvas
Version:        0.06
Release:        2%{?dist}
Summary:        Perl interface to the GooCanvas
License:        GPL+ or Artistic
Group:          Development/Libraries
URL:            http://search.cpan.org/dist/Goo-Canvas/
Source0:        http://www.cpan.org/authors/id/Y/YE/YEWENBIN/Goo-Canvas-%{version}.tar.gz
Source1:        Changes.20090614
Patch0:         perltetris_pl-undefined.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires:  goocanvas-devel
BuildRequires:  perl(Cairo) >= 1.00
BuildRequires:  perl(ExtUtils::Depends) >= 0.2
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(ExtUtils::PkgConfig) >= 1.0
BuildRequires:  perl(Glib) >= 1.103
BuildRequires:  perl(Gtk2) >= 1.100
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))


%description
GTK+ does't has an buildin canvas widget. GooCanvas is wonderful. It is easy to use 
and has powerful and extensible way to create items in canvas. Just try it.
For more documents, please read GooCanvas Manual and the demo programs provided
in the source distribution in both perl-Goo::Canvas and GooCanvas.

%prep
%setup -q -n Goo-Canvas-%{version}
cd bin/
%patch0 -p0 -b .warning 
cp -f %{SOURCE1} ../Changes

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
make %{?_smp_mflags} NOECHO=

%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
mv $RPM_BUILD_ROOT%{_bindir}/perltetris.pl $RPM_BUILD_ROOT%{_bindir}/perlfangkuai.pl
mv $RPM_BUILD_ROOT%{_mandir}/man1/perltetris.pl.1 $RPM_BUILD_ROOT%{_mandir}/man1/perlfangkuai.pl.1
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*

%check
make test

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc Changes goocanvas.typemap maps README
%{_bindir}/*
%{_mandir}/man3/*.3*
%{perl_vendorarch}/Goo/
%{_mandir}/man1/*.1.gz
%{perl_vendorarch}/auto/*

%changelog
* Mon Jun 15 2009 Liang Suilong <liangsuilong at gmail.com> 0.06-2
- Correct directory ownership
- Correct the typo in %description 

* Thu Jun 11 2009 Liang Suilong <liangsuilong at gmail.com> 0.06-1
- Upstream to perl-Goo-Canvas-0.06-1
- Update Changes

* Thu Jun 11 2009 Liang Suilong <liangsuilong at gmail.com> 0.05-6
- Rename perltertris.pl.1 as perlfangkuang.pl.1
- Update Changes

* Wed May 27 2009 Liang Suilong <liangsuilong at gmail.com> 0.05-5
- Rename perltertris.pl as perlfangkuang.pl and update README and Changes

* Sun Apr 21 2009 Liang Suilong <liangsuilong at gmail.com> 0.05-4
- Modify BuildRequires and correct the %%files.

* Sun Apr 05 2009 Liang Suilong <liangsuilong at gmail.com> 0.05-3
- Specfile autogenerated by cpanspec 1.77.

* Fri Mar 13 2009 Suilong Liang <liangsuilong at gmail.com> -0.05-2
-  Fix the bug that the package could not be built on x86_64

* Sun Jan 18 2009 Suilong Liang <liangsuilong at gmail.com> -0.05-1
- Initial package for Fedora 10.

perltetris_pl-undefined.diff:

--- NEW FILE perltetris_pl-undefined.diff ---
--- perltetris.pl.orig	2009-04-23 03:22:43.000000000 +0900
+++ perltetris.pl	2009-04-25 03:34:38.000000000 +0900
@@ -1132,7 +1132,7 @@
     my $conf =  $start_mark . "\n" .
         Data::Dumper->Dump([$history], ['history']) .
                 $end_mark . "\n";
-    if ( -e $config_file ) {
+    if ( defined($config_file) and -e $config_file ) {
         open(my $fh, $config_file) or die "Can't open file $config_file: $!";
         while ( <$fh> ) {
             if ( /\Q$start_mark/ ) {
@@ -1152,9 +1152,11 @@
         print $out "1;\n";
     }
     close($out);
-    open(my $fh, ">$config_file") or die "Can't create file $config_file: $!";
-    print $fh $str;
-    close($fh);
+    if ( defined($config_file) ) {
+        open(my $fh, ">$config_file") or die "Can't create file $config_file: $!";
+        print $fh $str;
+        close($fh);
+    }
 }
 
 1;


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/perl-Goo-Canvas/F-10/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	20 Jun 2009 15:09:46 -0000	1.1
+++ .cvsignore	21 Jun 2009 09:35:31 -0000	1.2
@@ -0,0 +1 @@
+Goo-Canvas-0.06.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/perl-Goo-Canvas/F-10/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	20 Jun 2009 15:09:47 -0000	1.1
+++ sources	21 Jun 2009 09:35:32 -0000	1.2
@@ -0,0 +1 @@
+7dfe0be8c17bfd641d18384d4fd8fb23  Goo-Canvas-0.06.tar.gz




More information about the fedora-extras-commits mailing list