Add build-require gcc

f38
Jitka Plesnikova 7 years ago
parent 03a9ab80ca
commit 6fd36b03e3

@ -1,6 +1,6 @@
Name: perl-Net-DBus
Version: 1.1.0
Release: 10%{?dist}
Release: 11%{?dist}
Summary: Use and provide DBus services
License: GPLv2+ or Artistic
Group: Development/Libraries
@ -8,10 +8,14 @@ URL: http://search.cpan.org/dist/Net-DBus/
Source0: http://search.cpan.org/CPAN/authors/id/D/DA/DANBERR/Net-DBus-%{version}.tar.gz
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
BuildRequires: dbus-devel >= 1.00, pkgconfig
BuildRequires: findutils
BuildRequires: gcc
BuildRequires: make
BuildRequires: perl-devel
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(Time::HiRes)
BuildRequires: perl(XML::Parser)
BuildRequires: perl(XML::Twig)
@ -36,26 +40,28 @@ have not been too drastic.
%setup -q -n Net-DBus-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST=1
make %{?_smp_mflags}
%install
make pure_install PERL_INSTALL_ROOT=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} +
find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} +
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name '*.bs' -size 0 -delete
%{_fixperms} %{buildroot}/*
%check
make test
%files
%doc AUTHORS Changes README LICENSE examples/
%license LICENSE
%doc AUTHORS Changes README examples/
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/Net*
%{_mandir}/man3/*
%changelog
* Mon Feb 19 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.1.0-11
- Add build-require gcc
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

Loading…
Cancel
Save