From 422183276ae3336eb9b5f71e5b53c9efe27eadf8990f09456eed86d73e936c91 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Thu, 16 Apr 2015 18:06:05 +0000 Subject: [PATCH] Accepting request 297242 from devel:languages:perl:autoupdate - updated to 1.43 see /usr/share/doc/packages/perl-Prima/Changes 1.43 2015-04-10 - Rewrite font test and polish rough ends in xft font handling - Copy images to clipboard so that GTK recognizes them 1.42 2015-03-11 - Tests became TAP compliant and using Prima::Test - Jpeg exif orientation support added - Scrollbar overriding properties added for scroller widgets - remove heavily outdated docs and VB-decent.diff OBS-URL: https://build.opensuse.org/request/show/297242 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Prima?expand=0&rev=29 --- .gitattributes | 2 - Prima-1.41.tar.gz | 3 -- Prima-1.43.tar.gz | 3 ++ Prima.pdf.bz2 | 3 -- VB-decent.diff | 10 ----- VB_classes-decent.gif | 3 -- cpanspec.yml | 30 ++++++++++++++ perl-Prima.changes | 16 ++++++++ perl-Prima.spec | 94 +++++++++++++++++-------------------------- 9 files changed, 87 insertions(+), 77 deletions(-) delete mode 100644 Prima-1.41.tar.gz create mode 100644 Prima-1.43.tar.gz delete mode 100644 Prima.pdf.bz2 delete mode 100644 VB-decent.diff delete mode 100644 VB_classes-decent.gif create mode 100644 cpanspec.yml diff --git a/.gitattributes b/.gitattributes index b8e8906..9b03811 100644 --- a/.gitattributes +++ b/.gitattributes @@ -21,5 +21,3 @@ *.xz filter=lfs diff=lfs merge=lfs -text *.zip filter=lfs diff=lfs merge=lfs -text *.zst filter=lfs diff=lfs merge=lfs -text -## Specific LFS patterns -VB_classes-decent.gif filter=lfs diff=lfs merge=lfs -text diff --git a/Prima-1.41.tar.gz b/Prima-1.41.tar.gz deleted file mode 100644 index cecc3e6..0000000 --- a/Prima-1.41.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:04d880c63207d7fef0ba927e357e3bc91802abb4757f94f11e0b7a46368631e3 -size 1381688 diff --git a/Prima-1.43.tar.gz b/Prima-1.43.tar.gz new file mode 100644 index 0000000..e9a51a1 --- /dev/null +++ b/Prima-1.43.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:36eb1d2f43885c084cb39bab9bdb3d7cba4c11dbeb2f48b8888bea39c6f24069 +size 1380695 diff --git a/Prima.pdf.bz2 b/Prima.pdf.bz2 deleted file mode 100644 index dd78106..0000000 --- a/Prima.pdf.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b5810acf332a2707b2b6afa06c28ab2c7fbb12e603a5d36dd058014b04ead978 -size 1647013 diff --git a/VB-decent.diff b/VB-decent.diff deleted file mode 100644 index 8106512..0000000 --- a/VB-decent.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- Prima-1.19/Prima/VB/VB.pl.orig 2005-10-17 19:23:19.000000000 +0200 -+++ Prima-1.19/Prima/VB/VB.pl 2005-10-19 18:11:28.000000000 +0200 -@@ -1335,6 +1335,7 @@ - topMost => 1, - tabs => [ @pages], - buffered => 1, -+ colored => 0, - delegations => [qw(Change)], - ); - diff --git a/VB_classes-decent.gif b/VB_classes-decent.gif deleted file mode 100644 index e162d70..0000000 --- a/VB_classes-decent.gif +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:90b6644fa13f14b1846905c2972d3859610a7fb7872bc9ba09b040cfaead40eb -size 7552 diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..bbd7856 --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,30 @@ +--- +description_paragraphs: 1 +#no_testing: broken upstream +patches: + Prima-GenericEvent.patch: + gcc-warnings.patch: -p1 +preamble: |- + BuildRequires: giflib-devel + BuildRequires: libpng-devel + BuildRequires: libtiff-devel + BuildRequires: xkeyboard-config + BuildRequires: xorg-x11 + BuildRequires: xorg-x11-Xvfb + BuildRequires: xorg-x11-devel + %define X_display ":98" + Requires: xorg-x11 +#post_prep: |- +# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'` +# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL +post_install: |- + ## oops, Prima/Config.pm must not contain BUILD_ROOT + find $RPM_BUILD_ROOT -name 'Config.pm' -print0 | xargs -0 perl -i -pe "s{\\Q$RPM_BUILD_ROOT}"'{}g' + ### + ### should these go to a perl-Prima-devel ? + find $RPM_BUILD_ROOT/%{perl_vendorarch} -name \*.h | xargs -t rm +# sed on %{name}.files +license: BSD-2-Clause +#skip_noarch: 1 +#custom_build: - +#./Build build flags=%{?_smp_mflags} --myflag diff --git a/perl-Prima.changes b/perl-Prima.changes index ef7021d..0758a15 100644 --- a/perl-Prima.changes +++ b/perl-Prima.changes @@ -1,3 +1,19 @@ +------------------------------------------------------------------- +Tue Apr 14 20:07:03 UTC 2015 - coolo@suse.com + +- updated to 1.43 + see /usr/share/doc/packages/perl-Prima/Changes + + 1.43 2015-04-10 + - Rewrite font test and polish rough ends in xft font handling + - Copy images to clipboard so that GTK recognizes them + + 1.42 2015-03-11 + - Tests became TAP compliant and using Prima::Test + - Jpeg exif orientation support added + - Scrollbar overriding properties added for scroller widgets +- remove heavily outdated docs and VB-decent.diff + ------------------------------------------------------------------- Thu Jan 29 13:22:23 UTC 2015 - dimstar@opensuse.org diff --git a/perl-Prima.spec b/perl-Prima.spec index 019cebe..6bffed3 100644 --- a/perl-Prima.spec +++ b/perl-Prima.spec @@ -17,87 +17,69 @@ Name: perl-Prima +Version: 1.43 +Release: 0 +#Upstream: SUSE-Public-Domain +%define cpan_name Prima +Summary: Perl Graphic Toolkit +License: BSD-2-Clause +Group: Development/Libraries/Perl +Url: http://search.cpan.org/dist/Prima/ +Source0: http://www.cpan.org/authors/id/K/KA/KARASIK/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml +Patch0: gcc-warnings.patch +Patch1: Prima-GenericEvent.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: perl +BuildRequires: perl-macros +%{perl_requires} +# MANUAL BEGIN BuildRequires: giflib-devel BuildRequires: libpng-devel BuildRequires: libtiff-devel -BuildRequires: perl BuildRequires: xkeyboard-config BuildRequires: xorg-x11 BuildRequires: xorg-x11-Xvfb BuildRequires: xorg-x11-devel %define X_display ":98" Requires: xorg-x11 -Version: 1.41 -Release: 0 -Summary: A Perl toolkit for multi-platform GUI development -License: BSD-2-Clause -Group: Development/Libraries/Perl -Url: http://prima.eu.org -Source: http://www.cpan.org/authors/id/K/KA/KARASIK/Prima-%{version}.tar.gz -Source1: VB_classes-decent.gif -Source2: Prima.pdf.bz2 -Patch: VB-decent.diff -Patch2: Prima-GenericEvent.patch -Patch3: gcc-warnings.patch -BuildRoot: %{_tmppath}/%{name}-%{version}-build -Requires: perl-base = %perl_version +# MANUAL END %description -Prima is an extensible Perl toolkit for multi-platform GUI development. -The toolkit contains a rich set of standard widgets and has emphasis on -2D image processing tasks. A Perl program using PRIMA looks and behaves -identically on X, Win32 and OS/2. The toolkit includes VB, a visual -builder and a graphic POD viewer. +The toolkit is combined from two basic set of classes - core and external. +The core classes are coded in C and form a base line for every Prima object +written in perl. The usage of C is possible together with the toolkit; +however, its full power is revealed in the perl domain. The external +classes present easily expandable set of widgets, written completely in +perl and communicating with the system using Prima library calls. %prep -%setup -q -n Prima-%{version} -cp %{S:1} Prima/VB/classes.gif -cp %{S:2} . -bunzip2 Prima.pdf.bz2 -%patch -p1 -%patch2 -%patch3 -p1 -# patch creates a .orig file. Our Installer is so greedy ... -rm -f Prima/VB/VB.pl.orig +%setup -q -n %{cpan_name}-%{version} +find . -type f -print0 | xargs -0 chmod 644 +%patch0 -p1 +%patch1 %build -perl Makefile.PL -## site_perl is not allowed anymore in SuSE Linux. -perl -i -pe 's{/site_perl/}{/vendor_perl/}g' Makefile -make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS -Wall" -(ldd auto/Prima/Prima.so | grep -q libgif ) || echo "WARNING: gif codec required for VB" +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" +%{__make} %{?_smp_mflags} %check -############################################# -### Launch a virtual framebuffer X server ### -############################################# -export DISPLAY=%{X_display} -Xvfb %{X_display} >& Xvfb.log & -trap "kill $! || true" EXIT -sleep 10 -make test +%{__make} test %install %perl_make_install +%perl_process_packlist +# MANUAL BEGIN ## oops, Prima/Config.pm must not contain BUILD_ROOT find $RPM_BUILD_ROOT -name 'Config.pm' -print0 | xargs -0 perl -i -pe "s{\\Q$RPM_BUILD_ROOT}"'{}g' ### ### should these go to a perl-Prima-devel ? find $RPM_BUILD_ROOT/%{perl_vendorarch} -name \*.h | xargs -t rm -%perl_process_packlist +# MANUAL END +%perl_gen_filelist -%clean -rm -rf $RPM_BUILD_ROOT - -%files -%defattr(-,root,root) -%doc Copying README Prima.pdf -%doc %{_mandir}/man?/* -%{_bindir}/* -%dir %{perl_vendorarch}/Prima -%{perl_vendorarch}/gencls.pod -%{perl_vendorarch}/Prima.pm -%{perl_vendorarch}/Prima/* -%{perl_vendorarch}/auto/* +%files -f %{name}.files +%defattr(-,root,root,755) +%doc AbstractMenu.cls AccelTable.cls Application.cls Changes Clipboard.cls Component.cls Copying DeviceBitmap.cls Drawable.cls examples File.cls Icon.cls Image.cls Menu.cls Object.cls Popup.cls Printer.cls README Timer.cls Types.cls Utils.cls Widget.cls Window.cls %changelog