Mailinglist Archive: opensuse-commit (1469 mails)

< Previous Next >
commit perl-Data-OptList for openSUSE:Factory
Hello community,

here is the log from the commit of package perl-Data-OptList for
openSUSE:Factory checked in at 2012-03-26 15:37:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Data-OptList (Old)
and /work/SRC/openSUSE:Factory/.perl-Data-OptList.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Data-OptList", Maintainer is ""

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Data-OptList/perl-Data-OptList.changes
2012-03-06 14:06:05.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.perl-Data-OptList.new/perl-Data-OptList.changes
2012-03-26 15:37:54.000000000 +0200
@@ -1,0 +2,6 @@
+Fri Mar 16 09:25:31 UTC 2012 - lars@xxxxxxxxxxxxxxxxxxxx
+
+- remove old_test_more.patch and use sed statement
+ instead (less likely to break with every package update)
+
+-------------------------------------------------------------------

Old:
----
old_test_more.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ perl-Data-OptList.spec ++++++
--- /var/tmp/diff_new_pack.TXzu2Y/_old 2012-03-26 15:37:54.000000000 +0200
+++ /var/tmp/diff_new_pack.TXzu2Y/_new 2012-03-26 15:37:54.000000000 +0200
@@ -25,15 +25,13 @@
Release: 0
Url: http://search.cpan.org/dist/Data-OptList
Source:
http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Data-OptList-%{version}.tar.gz
-%if 0%{?suse_version} < 1120
-Patch0: old_test_more.patch
-%endif
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(List::Util) >= 0.00
+BuildRequires: perl(Test::More) >= 0.88
# other not perl || perl-base
BuildRequires: perl(Params::Util) >= 0.14
BuildRequires: perl(Sub::Install) >= 0.921
@@ -44,9 +42,9 @@
Requires: perl(Sub::Install) >= 0.921

%description
- Hashes are great for storing named data, but if you want more than one
- entry for a name, you have to use a list of pairs. Even then, this is
- really boring to write:
+Hashes are great for storing named data, but if you want more than one
+entry for a name, you have to use a list of pairs. Even then, this is
+really boring to write:

$values = [
foo => undef,
@@ -55,33 +53,32 @@
xyz => { ... },
];

- Just look at all those undefs! Don't worry, we can get rid of those:
+Just look at all those undefs! Don't worry, we can get rid of those:

$values = [
map { $_ => undef } qw(foo bar baz),
xyz => { ... },
];

- Aaaauuugh! We've saved a little typing, but now it requires thought to
- read, and thinking is even worse than typing.
+Aaaauuugh! We've saved a little typing, but now it requires thought to
+read, and thinking is even worse than typing.

- With Data::OptList, you can do this instead:
+With Data::OptList, you can do this instead:

$values = Data::OptList::mkopt([
qw(foo bar baz),
xyz => { ... },
]);

- This works by assuming that any defined scalar is a name and any
- reference following a name is its value.
-
- Author: Ricardo SIGNES, <rjbs@xxxxxxxx>
-
+This works by assuming that any defined scalar is a name and any
+reference following a name is its value.

%prep
%setup -q -n %{cpan_name}-%{version}
%if 0%{?suse_version} < 1120
-%patch0
+for i in `find t -type f` ; do
+ sed -i -e "s@^\s*use\s\s*Test::More@use lib '%{perl_vendorlib}';\nuse
Test::More@" $i
+done
%endif

%build
@@ -104,7 +101,6 @@
%{__rm} -rf $RPM_BUILD_ROOT

%files -f %{name}.files
-# normally you only need to check for doc files
%defattr(-,root,root)
%doc Changes LICENSE README


--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread