perl-Variable-Magic/perl-Variable-Magic.spec

116 lines
3.3 KiB
RPMSpec
Raw Permalink Normal View History

2021-05-24 12:08:06 +08:00
%global _empty_manifest_terminate_build 0
2021-05-24 12:08:06 +08:00
Name: perl-Variable-Magic
Version: 0.64
2023-08-03 09:53:08 +08:00
Release: 1
2021-05-24 12:08:06 +08:00
Summary: Associate user-defined magic to variables from Perl
License: GPL-1.0-or-later OR Artistic-1.0-Perl
2021-05-24 12:08:06 +08:00
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
2021-05-24 12:08:06 +08:00
BuildRequires: perl >= 0:5.008
BuildRequires: perl-devel
2021-05-24 12:08:06 +08:00
BuildRequires: perl-generators
BuildRequires: perl(base)
BuildRequires: perl(Carp)
BuildRequires: perl(Config)
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IO::Select)
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(lib)
BuildRequires: perl(POSIX)
BuildRequires: perl(Socket)
BuildRequires: perl(Test::More)
BuildRequires: perl(XSLoader)
Requires: perl(base)
Requires: perl(Carp)
Requires: perl(Exporter)
Requires: perl(XSLoader)
2021-05-24 12:08:06 +08:00
%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.
2021-05-24 12:08:06 +08:00
%package help
Summary: Associate user-defined magic to variables from Perl
2021-05-24 12:08:06 +08:00
Provides: perl-Variable-Magic-doc
2021-05-24 12:08:06 +08:00
%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.
2021-05-24 12:08:06 +08:00
%prep
%setup -q -n Variable-Magic-%{version}
2021-05-24 12:08:06 +08:00
%build
export PERL_MM_OPT=""
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
%{__perl} -pi -e 's/^\tLD_RUN_PATH=[^\s]+\s*/\t/' Makefile
make %{?_smp_mflags}
%install
export PERL_MM_OPT=""
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
pushd %{buildroot}
touch filelist.lst
if [ -d usr/bin ];then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ];then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ];then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib ];then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
popd
mv %{buildroot}/filelist.lst .
2021-05-24 12:08:06 +08:00
%check || :
make test
%clean
rm -rf $RPM_BUILD_ROOT
%files -f filelist.lst
%defattr(-,root,root,-)
%doc Changes META.json README
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/Variable*
2021-05-24 12:08:06 +08:00
%files help
%{_mandir}/*
%changelog
* Fri Mar 22 2024 wangshuo <wangshuo@kylinos.cn> - 0.64-1
- Update to 0.64
2023-08-03 09:53:08 +08:00
* Thu Aug 3 2023 liyanan <thistleslyn@163.com> - 0.63-1
- Update to 0.63
* 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
2021-05-24 12:08:06 +08:00
- Specfile autogenerated by Perl_Bot