Projects
Eulaceura:Factory
perl-Module-Extract-Use
_service:obs_scm:perl-Module-Extract-Use.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:perl-Module-Extract-Use.spec of Package perl-Module-Extract-Use
%global _empty_manifest_terminate_build 0 Name: perl-Module-Extract-Use Version: 1.052 Release: 1 Summary: Discover the modules a module explicitly uses License: Artistic-2.0 Group: Development/Libraries URL: http://search.cpan.org/dist/Module-Extract-Use/ Source0: http://www.cpan.org/authors/id/B/BD/BDFOY/Module-Extract-Use-%{version}.tar.gz BuildArch: noarch BuildRequires: perl >= 0:5.010 BuildRequires: perl-generators BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(PPI) BuildRequires: perl(Test::More) >= 1 BuildRequires: perl(Test::Output) Requires: perl(PPI) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description Extract the names of the modules used in a file using a static analysis. Since this module does not run code, it cannot find dynamic uses of modules, such as eval "require $class". It only reports modules that the file loads directly or are in the import lists for parent or base. %prep %setup -q -n Module-Extract-Use-%{version} %build export PERL_MM_OPT="" %{__perl} Makefile.PL INSTALLDIRS=vendor 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 -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 . %check make test %clean rm -rf $RPM_BUILD_ROOT %files -f filelist.lst %defattr(-,root,root,-) %doc Changes INSTALL.SKIP LICENSE META.json %{perl_vendorlib}/* %{_mandir}/* %changelog * Wed Mar 27 2024 Xu Jin <jinxu@kylinos.cn> 1.052-1 - Package init.
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2