From d78f3d7ee7fe14744869a98d32456343691271dd Mon Sep 17 00:00:00 2001 From: Bernhard M. Wiedemann <bwiedemann@suse.de> Date: Sep 13 2019 14:29:36 +0000 Subject: restructure files to remain below github limit of 1000 entries --- diff --git a/perl-Test-InDistDir.changes b/perl-Test-InDistDir.changes new file mode 100644 index 0000000..23c0962 --- /dev/null +++ b/perl-Test-InDistDir.changes @@ -0,0 +1,13 @@ +------------------------------------------------------------------- +Wed Dec 21 14:09:52 UTC 2011 - cfarrell@suse.com + +- license update: SUSE-Permissive + WTFYL is not on the SPDX list of licenses, nor is it likely to be + included. Use SUSE-Permissive in such cases + +------------------------------------------------------------------- +Tue Dec 20 19:15:22 UTC 2011 - coolo@suse.com + +- initial package 1.112071 + * created by cpanspec 1.78.06 + diff --git a/perl-Test-InDistDir.spec b/perl-Test-InDistDir.spec new file mode 100644 index 0000000..855003a --- /dev/null +++ b/perl-Test-InDistDir.spec @@ -0,0 +1,70 @@ +# +# spec file for package perl-Test-InDistDir +# +# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +Name: perl-Test-InDistDir +Version: 1.112071 +Release: 0 +%define cpan_name Test-InDistDir +Summary: test environment setup for development with IDE +License: SUSE-Permissive +Group: Development/Libraries/Perl +Url: http://search.cpan.org/dist/Test-InDistDir/ +Source: http://www.cpan.org/authors/id/M/MI/MITHALDU/%{cpan_name}-%{version}.tar.gz +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: perl +BuildRequires: perl-macros +%{perl_requires} + +%description +This module helps run test scripts in IDEs like Komodo. + +When running test scripts in an IDE i have to set up a project file +defining the dist dir to run tests in and a lib dir to load additional +modules from. Often I didn't feel like doing that, especially when i only +wanted to do a small patch to a dist. In those cases i added a BEGIN block +to mangle the environment for me. + +This module basically is that BEGIN block. It automatically moves up one +directory when it cannot see the test script in "t/$scriptname" and +includes 'lib' in @INC when there's no blib present. That way the test ends +up with almost the same environment it'd get from EUMM/prove/etc., even +when it's actually run inside the t/ directory. + +At the same time it will still function correctly when called by +EUMM/prove/etc., since it does not change the environment in those cases. + +%prep +%setup -q -n %{cpan_name}-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +%{__make} %{?_smp_mflags} + +%check +%{__make} test + +%install +%perl_make_install +%perl_process_packlist +%perl_gen_filelist + +%files -f %{name}.files +%defattr(-,root,root,755) +%doc Changes LICENSE README.mkdn + +%changelog