commit ac704ec154e11686b774b35dcdd42f1672729c64ec96557af81bcc145ea01b67 Author: Juergen Weigert Date: Wed Oct 13 20:09:27 2010 +0000 Accepting request 50517 from home:jnweiger:perl my own OBS-URL: https://build.opensuse.org/request/show/50517 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Text-Balanced?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## 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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/Text-Balanced-2.02.tar.gz b/Text-Balanced-2.02.tar.gz new file mode 100644 index 0000000..3068262 --- /dev/null +++ b/Text-Balanced-2.02.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a77c7542a2f77970fbabd97c75632643e9c9c2106e5e132021e05ea9855a75b4 +size 48477 diff --git a/perl-Text-Balanced.changes b/perl-Text-Balanced.changes new file mode 100644 index 0000000..7cff0c7 --- /dev/null +++ b/perl-Text-Balanced.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Mon Aug 16 21:15:34 UTC 2010 - jw@novell.com + +- 2.02 from cpan; needed by perl-Switch + diff --git a/perl-Text-Balanced.spec b/perl-Text-Balanced.spec new file mode 100644 index 0000000..13efcb7 --- /dev/null +++ b/perl-Text-Balanced.spec @@ -0,0 +1,95 @@ +# +# spec file for package perl-perl-Text-Balanced (Version 2.02) +# +# Copyright (c) 2010 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/ +# See also http://wiki.opensuse.org/openSUSE:Packaging_Perl + +# norootforbuild + +Name: perl-Text-Balanced +Version: 2.02 +Release: 0%{?dist} +License: GPL+ or Artistic +Group: Development/Libraries/Perl +Summary: Extract balanced-delimiter substrings +Source: http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/Text-Balanced-%{version}.tar.gz +Url: http://search.cpan.org/dist/Text-Balanced +BuildRoot: %{_tmppath}/%{name}-%{version}-build +Requires: perl = %(eval "`%{__perl} -V:version`"; echo $version) + +BuildArch: noarch + +BuildRequires: perl(Test::More) >= 0.47 + + +%description +The various 'extract_...' subroutines may be used to extract a delimited +substring, possibly after skipping a specified prefix string. By +default, that prefix is optional whitespace ('/\s*/'), but you can +change it to whatever you wish (see below).The substring to be extracted +must appear at the current 'pos' location of the string's variable (or +at index zero, if no 'pos' position is defined). In other words, the +'extract_...' subroutines _don't_ extract the first occurrence of a +substring anywhere in a string (like an unanchored regex would). Rather, +they extract an occurrence of the substring appearing immediately at the +current matching position in the string (like a '\G'-anchored regex +would).General behaviour in list contexts In a list context, all the +subroutines return a list, the first three elements of which are always: + + + +%prep +%setup -q -n Text-Balanced-%{version} + +%build + if [ -f Build.PL ]; then + %{__perl} Build.PL --installdirs vendor +else + %{__perl} Makefile.PL INSTALLDIRS=vendor +fi + if [ -f Build.PL ]; then + ./Build build flags=%{?_smp_mflags} +else + %{__make} %{?_smp_mflags} +fi + +%install +if [ -f Build.PL ]; then + ./Build pure_install --destdir %{buildroot} +else + %{__make} pure_install PERL_INSTALL_ROOT=%{buildroot} +fi + +# FIXME: use ./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 +# maybe then we would not need to remove the .packlist files :-) +find %{buildroot} -type f -name .packlist -exec rm -f {} ';' + +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' + +%{_fixperms} %{buildroot}/* +%perl_process_packlist +%perl_gen_filelist + +%check + if [ -f Build.PL ]; then + ./Build test +else + %{__make} test +fi + +%clean +[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && %{__rm} -rf $RPM_BUILD_ROOT + +%files -f %{name}.files +%defattr(-,root,root,-) +%doc README Changes + +%changelog +* Mon Aug 16 2010 %{packager} +- initial SUSE packaging +- generated with cpan2dist (CPANPLUS::Dist::SUSE version 0.0.8) +