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
Name: perl-Variable-Magic
Version: 0.62
Release: 1
Release: 2
Summary: Associate user-defined magic to variables from Perl
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Variable-Magic/
Source0: http://www.cpan.org/authors/id/V/VP/VPIT/Variable-Magic-%{version}.tar.gz
BuildRequires: perl >= 0:5.008
BuildRequires: perl-devel
BuildRequires: perl-generators
BuildRequires: perl(base)
BuildRequires: perl(Carp)
@ -26,23 +29,28 @@ Requires: perl(base)
Requires: perl(Carp)
Requires: perl(Exporter)
Requires: perl(XSLoader)
%description
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
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
a single line of XS.
%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
%description help
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
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
a single line of XS.
%prep
%setup -q -n Variable-Magic-%{version}
%build
export PERL_MM_OPT=""
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
@ -77,6 +85,7 @@ if [ -d usr/lib ];then
fi
popd
mv %{buildroot}/filelist.lst .
%check || :
make test
@ -88,9 +97,13 @@ rm -rf $RPM_BUILD_ROOT
%doc Changes META.json README
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/Variable*
%files help
%{_mandir}/*
%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