- BuildArch correction (noarch).
- Bring up to date with current Fedora.Extras perl spec template.
This commit is contained in:
Warren Togami 2005-04-20 18:23:44 +00:00
parent dcb9a91301
commit accb748629
1 changed files with 34 additions and 37 deletions

View File

@ -1,59 +1,56 @@
%define _use_internal_dependency_generator 0 Name: perl-Devel-Symdump
Version: 2.03
Release: 20
Summary: A Perl module for inspecting Perl's symbol table
Summary: A Perl module for inspecting Perl's symbol table. Group: Development/Libraries
Name: perl-Devel-Symdump License: GPL or Artistic
Version: 2.03 Url: http://search.cpan.org/dist/Devel-Symdump/
Release: 20 Source0: http://www.cpan.org/authors/id/A/AN/ANDK/Devel-Symdump-%{version}.tar.gz
License: distributable BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Group: Applications/CPAN
Source0: Devel-Symdump-%{version}.tar.gz BuildArch: noarch
Url: http://search.cpan.org/search?query=Devel%3A%3ASymdump BuildRequires: perl >= 1:5.6.1
BuildRoot: /var/tmp/perl-Devel-Symdump-buildroot/ Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
BuildRequires: perl >= 0:5.00503
Requires: perl >= 0:5.00503
Provides: perl(Devel::Symdump)
%description %description
The perl module Devel::Symdump provides a convenient way to inspect The perl module Devel::Symdump provides a convenient way to inspect
perl's symbol table and the class hierarchy within a running program. perl's symbol table and the class hierarchy within a running program.
# Provide perl-specific find-{provides,requires}.
%define __find_provides /usr/lib/rpm/find-provides.perl
%define __find_requires /usr/lib/rpm/find-requires.perl
%prep %prep
%setup -q -n Devel-Symdump-%{version} %setup -q -n Devel-Symdump-%{version}
%build %build
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT/usr INSTALLDIRS=vendor PREFIX=$RPM_BUILD_ROOT/usr INSTALLDIRS=vendor %{__perl} Makefile.PL INSTALLDIRS=vendor
make make %{?_smp_mflags}
make test
%clean
rm -rf $RPM_BUILD_ROOT
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
make install 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 d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/*
find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \; %check || :
make test
find $RPM_BUILD_ROOT/usr -type f -print | %clean
sed "s@^$RPM_BUILD_ROOT@@g" | rm -rf $RPM_BUILD_ROOT
grep -v perllocal.pod |
grep -v "\.packlist" > Devel-Symdump-%{version}-filelist
if [ "$(cat Devel-Symdump-%{version}-filelist)X" = "X" ] ; then %files
echo "ERROR: EMPTY FILE LIST" %defattr(-,root,root,-)
exit -1 %doc ChangeLog README
fi %{perl_vendorlib}/Devel/
%{_mandir}/man3/*.3*
%files -f Devel-Symdump-%{version}-filelist
%defattr(-,root,root)
%dir /usr/lib/perl5/vendor_perl/%(perl -MConfig -e 'print $Config{version}')/Devel/Symdump
%changelog %changelog
* Wed Mar 30 2005 Warren Togami <wtogami@redhat.com> * Wed Apr 20 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 2.03-20
- remove brp-compress - (#155463)
- BuildArch correction (noarch).
- Bring up to date with current Fedora.Extras perl spec template.
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com> * Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt - rebuilt