forked from pool/perl-Prima
Accepting request 297273 from devel:languages:perl
1 OBS-URL: https://build.opensuse.org/request/show/297273 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Prima?expand=0&rev=30
This commit is contained in:
2
.gitattributes
vendored
2
.gitattributes
vendored
@@ -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
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:04d880c63207d7fef0ba927e357e3bc91802abb4757f94f11e0b7a46368631e3
|
||||
size 1381688
|
||||
3
Prima-1.43.tar.gz
Normal file
3
Prima-1.43.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:36eb1d2f43885c084cb39bab9bdb3d7cba4c11dbeb2f48b8888bea39c6f24069
|
||||
size 1380695
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b5810acf332a2707b2b6afa06c28ab2c7fbb12e603a5d36dd058014b04ead978
|
||||
size 1647013
|
||||
@@ -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)],
|
||||
);
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:90b6644fa13f14b1846905c2972d3859610a7fb7872bc9ba09b040cfaead40eb
|
||||
size 7552
|
||||
30
cpanspec.yml
Normal file
30
cpanspec.yml
Normal file
@@ -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
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user