Fix EXTERN.h: No such file or directory

This commit is contained in:
misaka00251 2023-04-28 12:08:56 +08:00
parent cec71d599b
commit c816c77b5e
No known key found for this signature in database
GPG Key ID: 4AA100DC964EDE26

View File

@ -1,13 +1,16 @@
%global _empty_manifest_terminate_build 0 %global _empty_manifest_terminate_build 0
Name: perl-Variable-Magic Name: perl-Variable-Magic
Version: 0.62 Version: 0.62
Release: 1 Release: 2
Summary: Associate user-defined magic to variables from Perl Summary: Associate user-defined magic to variables from Perl
License: GPL+ or Artistic License: GPL+ or Artistic
Group: Development/Libraries Group: Development/Libraries
URL: http://search.cpan.org/dist/Variable-Magic/ URL: http://search.cpan.org/dist/Variable-Magic/
Source0: http://www.cpan.org/authors/id/V/VP/VPIT/Variable-Magic-%{version}.tar.gz Source0: http://www.cpan.org/authors/id/V/VP/VPIT/Variable-Magic-%{version}.tar.gz
BuildRequires: perl >= 0:5.008 BuildRequires: perl >= 0:5.008
BuildRequires: perl-devel
BuildRequires: perl-generators BuildRequires: perl-generators
BuildRequires: perl(base) BuildRequires: perl(base)
BuildRequires: perl(Carp) BuildRequires: perl(Carp)
@ -26,23 +29,28 @@ Requires: perl(base)
Requires: perl(Carp) Requires: perl(Carp)
Requires: perl(Exporter) Requires: perl(Exporter)
Requires: perl(XSLoader) Requires: perl(XSLoader)
%description %description
Magic is Perl's way of enhancing variables. This mechanism lets the user Magic is Perl's way of enhancing variables. This mechanism lets the user
add extra data to any variable and hook syntactical operations (such as add extra data to any variable and hook syntactical operations (such as
access, assignment or destruction) that can be applied to it. With this access, assignment or destruction) that can be applied to it. With this
module, you can add your own magic to any variable without having to write module, you can add your own magic to any variable without having to write
a single line of XS. a single line of XS.
%package help %package help
Summary: Associate user-defined magic to variables from Perl Summary: Associate user-defined magic to variables from Perl
Provides: perl-Variable-Magic-doc Provides: perl-Variable-Magic-doc
%description help %description help
Magic is Perl's way of enhancing variables. This mechanism lets the user Magic is Perl's way of enhancing variables. This mechanism lets the user
add extra data to any variable and hook syntactical operations (such as add extra data to any variable and hook syntactical operations (such as
access, assignment or destruction) that can be applied to it. With this access, assignment or destruction) that can be applied to it. With this
module, you can add your own magic to any variable without having to write module, you can add your own magic to any variable without having to write
a single line of XS. a single line of XS.
%prep %prep
%setup -q -n Variable-Magic-%{version} %setup -q -n Variable-Magic-%{version}
%build %build
export PERL_MM_OPT="" export PERL_MM_OPT=""
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
@ -77,6 +85,7 @@ if [ -d usr/lib ];then
fi fi
popd popd
mv %{buildroot}/filelist.lst . mv %{buildroot}/filelist.lst .
%check || : %check || :
make test make test
@ -88,9 +97,13 @@ rm -rf $RPM_BUILD_ROOT
%doc Changes META.json README %doc Changes META.json README
%{perl_vendorarch}/auto/* %{perl_vendorarch}/auto/*
%{perl_vendorarch}/Variable* %{perl_vendorarch}/Variable*
%files help %files help
%{_mandir}/* %{_mandir}/*
%changelog %changelog
* Sun May 23 2021 Perl_Bot <Perl_Bot@openeuler.org> 0.62-1 * Fri Apr 28 2023 misaka00251 <liuxin@iscas.ac.cn> - 0.62-2
- Fix EXTERN.h: No such file or directory
* Sun May 23 2021 Perl_Bot <Perl_Bot@openeuler.org> - 0.62-1
- Specfile autogenerated by Perl_Bot - Specfile autogenerated by Perl_Bot