Группа :: Разработка/Прочее
Пакет: perl-Test-Without-Module
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define _unpackaged_files_terminate_build 1
Group: Development/Other
# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-build-perl
BuildRequires: perl(Pod/Markdown.pm) perl(Pod/Readme.pm) perl-podlators
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: perl-Test-Without-Module
Version: 0.21
Release: alt1.1
Summary: Test fallback behavior in absence of modules
License: GPL+ or Artistic
URL: https://metacpan.org/release/Test-Without-Module
Source0: http://www.cpan.org/authors/id/C/CO/CORION/Test-Without-Module-%{version}.tar.gz
BuildArch: noarch
BuildRequires: findutils
BuildRequires: rpm-build-perl
BuildRequires: perl-devel
BuildRequires: sed
BuildRequires: perl(ExtUtils/MakeMaker.pm)
# Run-time:
BuildRequires: perl(Carp.pm)
BuildRequires: perl(strict.pm)
BuildRequires: perl(vars.pm)
# Tests:
BuildRequires: perl(Data/Dumper.pm)
BuildRequires: perl(File/Find.pm)
BuildRequires: perl(Symbol.pm)
BuildRequires: perl(Test/More.pm)
Source44: import.info
%description
This module allows you to deliberately hide modules from a program even
though they are installed. This is mostly useful for testing modules that
have a fallback when a certain dependency module is not installed.
%prep
%setup -q -n Test-Without-Module-%{version}
find . -type f -exec chmod 644 {} \;
sed -i -e 's/\r//' README Changes
%build
/usr/bin/perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
%make_build
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
# %{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%doc Changes README README.mkdn
%{perl_vendor_privlib}/Test*
%changelog
…
Полный changelog можно просмотреть здесь
Group: Development/Other
# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-build-perl
BuildRequires: perl(Pod/Markdown.pm) perl(Pod/Readme.pm) perl-podlators
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: perl-Test-Without-Module
Version: 0.21
Release: alt1.1
Summary: Test fallback behavior in absence of modules
License: GPL+ or Artistic
URL: https://metacpan.org/release/Test-Without-Module
Source0: http://www.cpan.org/authors/id/C/CO/CORION/Test-Without-Module-%{version}.tar.gz
BuildArch: noarch
BuildRequires: findutils
BuildRequires: rpm-build-perl
BuildRequires: perl-devel
BuildRequires: sed
BuildRequires: perl(ExtUtils/MakeMaker.pm)
# Run-time:
BuildRequires: perl(Carp.pm)
BuildRequires: perl(strict.pm)
BuildRequires: perl(vars.pm)
# Tests:
BuildRequires: perl(Data/Dumper.pm)
BuildRequires: perl(File/Find.pm)
BuildRequires: perl(Symbol.pm)
BuildRequires: perl(Test/More.pm)
Source44: import.info
%description
This module allows you to deliberately hide modules from a program even
though they are installed. This is mostly useful for testing modules that
have a fallback when a certain dependency module is not installed.
%prep
%setup -q -n Test-Without-Module-%{version}
find . -type f -exec chmod 644 {} \;
sed -i -e 's/\r//' README Changes
%build
/usr/bin/perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
%make_build
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
# %{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%doc Changes README README.mkdn
%{perl_vendor_privlib}/Test*
%changelog
…
Полный changelog можно просмотреть здесь