1
0
forked from perl/perl-Prima
OBS User unknown
2007-01-15 23:31:40 +00:00
committed by Git OBS Bridge
commit 91addf266f
11 changed files with 281 additions and 0 deletions

25
.gitattributes vendored Normal file
View File

@@ -0,0 +1,25 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

3
Prima-1.21.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7e310f8fff9731f5c3353f5c0853dda33ad63db317f15db28994ce2e7530f668
size 1381991

3
Prima.pdf Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e23823953344854dd6a38623d04392379c06695c67ed33cbfa501c128bcefb1a
size 1279381

10
VB-decent.diff Normal file
View File

@@ -0,0 +1,10 @@
--- 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)],
);

3
VB_classes-decent.gif Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:90b6644fa13f14b1846905c2972d3859610a7fb7872bc9ba09b040cfaead40eb
size 7552

View File

@@ -0,0 +1,41 @@
--- Prima-1.20/include/generic/thunks.tinc.orig 2006-07-26 23:27:04.000000000 +0200
+++ Prima-1.20/include/generic/thunks.tinc 2006-07-26 23:35:59.000000000 +0200
@@ -1715,6 +1715,7 @@
dSP;
int _apt_count_;
NPoint _apt_res_;
+ _apt_res_.x = _apt_res_.y = 0; // patch happiness in for GCC
ENTER;
SAVETMPS;
@@ -1753,6 +1754,7 @@
dSP;
int _apt_count_;
Point _apt_res_;
+ _apt_res_.x = _apt_res_.y = 0; // patch happiness in for GCC
ENTER;
SAVETMPS;
@@ -1791,6 +1793,7 @@
dSP;
int _apt_count_;
Rect _apt_res_;
+ _apt_res_.left = _apt_res_.bottom = _apt_res_.right = _apt_res_.top = 0; // patch happiness in for GCC
ENTER;
SAVETMPS;
@@ -3480,6 +3483,7 @@
croak( "Illegal object reference passed to %s", subName);
{
Point _apt_res_;
+ _apt_res_.x = _apt_res_.y = 0; // patch happiness in for GCC
if ( !( items > 1)) goto CALL_POINT;
_apt_res_. x = ( int) SvIV( ST( 1));
_apt_res_. y = ( int) SvIV( ST( 2));
@@ -4074,4 +4078,4 @@
);
}
XSRETURN_EMPTY;
-}
\ No newline at end of file
+}

21
happy-gcc.diff Normal file
View File

@@ -0,0 +1,21 @@
--- Prima-1.20/Makefile.PL.orig 2006-07-26 23:41:26.000000000 +0200
+++ Prima-1.20/Makefile.PL 2006-07-26 23:42:51.000000000 +0200
@@ -2472,6 +2472,7 @@
print MAKE <<EOF;
$thunks_tinc: Makefile @alltmldeps
\t$^X utils/tmlink.pl -Iinclude/generic -o$thunks_tinc @alltml
+\tpatch -p1 < happy-gcc-during_make.diff
CP=$^X Makefile.PL --cp
CPBIN=$^X Makefile.PL --cpbin
+++ Prima-1.21/unix/apc_font.c.orig 2006-11-17 22:18:04.420658708 +0100
--- Prima-1.21/unix/apc_font.c 2006-11-17 22:17:27.374095343 +0100
@@ -806,7 +806,7 @@
if (( dash == 14) && guts. locale[0] && (strcmp( ppFontNameSize + len - 4, "-*-*") == 0)) {
memcpy( buf, ppFontNameSize, len - 3);
buf[ len - 3] = 0;
- strncat( buf, guts. locale, 512);
+ strncat( buf, guts. locale, 512-strlen(buf)-1);
buf[511] = 0;
ppFontNameSize = buf;
len = strlen( ppFontNameSize);

48
perl-Prima.changes Normal file
View File

@@ -0,0 +1,48 @@
-------------------------------------------------------------------
Fri Nov 17 22:57:45 CET 2006 - jw@suse.de
- update to Prima-1.21
- no new features. Plain bugfix release.
-------------------------------------------------------------------
Thu Jul 27 00:03:23 CEST 2006 - jw@suse.de
- happy-gcc.diff added, to fix uninitialized variables in code
generated by gencls.pl
-------------------------------------------------------------------
Wed Jan 25 21:39:55 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Mon Jan 16 18:14:49 CET 2006 - jw@suse.de
- Update to Prima-1.20
-------------------------------------------------------------------
Wed Oct 19 23:55:16 CEST 2005 - jw@suse.de
- Update to Prima-1.19
Add Lists::vertical. Implement scrollable groups and notebooks.
Make file and font dialogs resizeable.
-------------------------------------------------------------------
Tue Apr 26 18:34:01 CEST 2005 - jw@suse.de
- okay sweety-6 did not like it.
more Archs have lib64, thanks Marcus.
-------------------------------------------------------------------
Tue Apr 26 17:45:01 CEST 2005 - jw@suse.de
- fixed warning: File listed twice
- added /usr/X11R6/lib64 for x86_64
- moved man pages out of perl_vendorarch
-------------------------------------------------------------------
Mon Apr 25 19:38:37 CEST 2005 - jw@suse.de
- initial version: Prima-1.18

126
perl-Prima.spec Normal file
View File

@@ -0,0 +1,126 @@
#
# spec file for package perl-Prima (Version 1.21)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: perl-Prima
BuildRequires: giflib-devel libpng-devel libtiff-devel xorg-x11 xorg-x11-devel
License: BSD License and BSD-like
Group: Development/Libraries/Perl
Autoreqprov: on
Requires: perl xorg-x11 giflib libjpeg libpng xorg-x11-libs
Version: 1.21
Release: 1
Summary: A Perl toolkit for multi-platform GUI development
URL: http://prima.eu.org
Source: Prima-%{version}.tar.gz
Source1: VB_classes-decent.gif
Source2: http://prima.eu.org/download/Prima.pdf
Source3: happy-gcc-during_make.diff
Patch: VB-decent.diff
Patch1: happy-gcc.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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.
Authors:
--------
Dmitry Karasik <dmitry@karasik.eu.org>
%prep
%setup -q -n Prima-%{version}
cp %{S:1} Prima/VB/classes.gif
cp %{S:2} .
cp %{S:3} .
%patch -p1
%patch1 -p1
# patch creates a .orig file. Our Installer is so greedy ...
rm -f Prima/VB/VB.pl.orig
echo _bindir= %{_bindir}
echo _libdir= %{_libdir}
echo perl_vendorlib= %{perl_vendorlib}
echo perl_vendorarch= %{perl_vendorarch}
%build
## man1+man3 try to hide in perl_vendorarch if PREFIX is set. force them back.
M=$RPM_BUILD_ROOT/%{_mandir}
MAKEFILE_ARGS="PREFIX=$RPM_BUILD_ROOT/usr INSTALL_MAN1=$M/man1 INSTALL_MAN3=$M/man3"
if [ "%_lib" = "lib64" ]; then
MAKEFILE_ARGS="$MAKEFILE_ARGS LIBPATH+=/usr/X11/lib64"
fi
perl Makefile.PL $MAKEFILE_ARGS
## site_perl is not allowed anymore in SuSE Linux.
perl -i -pe 's{/site_perl/}{/vendor_perl/}g' Makefile
make OPTIMIZE="$RPM_OPT_FLAGS -Wall"
(ldd auto/Prima/Prima.so | grep -q libgif ) || echo "WARNING: gif codec required for VB"
# giflib-4.1.3:EGifCompressLine is not 64bit save.
# Testing ./test/Image/Codec... hangs in a busyloop if unpatched.
make test
### only three basic tests work without a DISPLAY.
### ... or more powerful tests:
## neededforbuild xorg-x11-Xnest xorg-x11-Xvfb xorg-x11-fonts-100dpi xorg-x11-fonts-75dpi xorg-x11-fonts-scalable xorg-x11-server
##
## Xvfb :95 -fp /usr/X11R6/lib/X11/fonts/misc &
## trap "kill $!" EXIT
## sleep 5
## DISPLAY=:95 make test
##
%install
make install
## oops, Prima/Config.PL must not contain BUILD_ROOT
perl -ne 'print qq{$1\n} if m{--updateconfig\s+(\S+)}' Makefile | xargs perl -i -pe "s{$RPM_BUILD_ROOT}"'{}g'
%perl_process_packlist
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc Copying README HISTORY Prima.pdf
%doc %{_mandir}/man?/*
%{_bindir}/*
%dir %{perl_vendorarch}/Prima
%{perl_vendorarch}/Prima.pm
%{perl_vendorarch}/Prima/*
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/gencls.pod
%changelog -n perl-Prima
* Fri Nov 17 2006 - jw@suse.de
- update to Prima-1.21
- no new features. Plain bugfix release.
* Thu Jul 27 2006 - jw@suse.de
- happy-gcc.diff added, to fix uninitialized variables in code
generated by gencls.pl
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Jan 16 2006 - jw@suse.de
- Update to Prima-1.20
* Wed Oct 19 2005 - jw@suse.de
- Update to Prima-1.19
Add Lists::vertical. Implement scrollable groups and notebooks.
Make file and font dialogs resizeable.
* Tue Apr 26 2005 - jw@suse.de
- okay sweety-6 did not like it.
more Archs have lib64, thanks Marcus.
* Tue Apr 26 2005 - jw@suse.de
- fixed warning: File listed twice
- added /usr/X11R6/lib64 for x86_64
- moved man pages out of perl_vendorarch
* Mon Apr 25 2005 - jw@suse.de
- initial version: Prima-1.18

0
ready Normal file
View File