X-Git-Url: https://git.pld-linux.org/?p=packages%2Fperl-Net-DBus.git;a=blobdiff_plain;f=perl-Net-DBus.spec;h=d77cba2514401ca0e49a24130628662092186ad3;hp=950454911e64a7a9d1ce953174e337a5656827e4;hb=HEAD;hpb=f1aee51c4d18f908c8fd0053785c44b9868f88fb diff --git a/perl-Net-DBus.spec b/perl-Net-DBus.spec index 9504549..e73fa6c 100644 --- a/perl-Net-DBus.spec +++ b/perl-Net-DBus.spec @@ -2,26 +2,33 @@ # Conditional build: %bcond_without tests # do perform "make test" # -%include /usr/lib/rpm/macros.perl %define pdir Net %define pnam DBus -Summary: Net::ACL - Perl extension for the DBus message system -Summary(pl.UTF-8): Net::ACL - Rozszerzenie Perla dla systemu komunikacji DBus +Summary: Net::DBus - Perl extension for the DBus message system +Summary(pl.UTF-8): Net::DBus - Rozszerzenie Perla dla systemu komunikacji DBus Name: perl-Net-DBus -Version: 0.33.4 -Release: 2 -# same as perl -License: GPL v1+ or Artistic +Version: 1.2.0 +Release: 4 +# "same as perl", but GPL v2+ is specified +License: GPL v2+ or Artistic Group: Development/Languages/Perl -Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz -# Source0-md5: 7138571b3d8df29faa65d1db509f9d32 -URL: http://search.cpan.org/dist/Net-DBus/ -BuildRequires: dbus-devel +Source0: http://www.cpan.org/modules/by-module/Net/%{pdir}-%{pnam}-%{version}.tar.gz +# Source0-md5: a260e9ae037981a3519ffd5f2e9f2906 +URL: https://metacpan.org/dist/Net-DBus +BuildRequires: dbus-devel >= 1.3.0 BuildRequires: perl-Time-HiRes -BuildRequires: perl-XML-Parser BuildRequires: perl-XML-Twig BuildRequires: perl-devel >= 1:5.8.0 +%if %{with tests} +BuildRequires: perl(Test::CPAN::Changes) +BuildRequires: perl-Test-Pod +BuildRequires: perl-Test-Pod-Coverage +BuildRequires: perl-Test-Simple +%endif +BuildRequires: pkgconfig BuildRequires: rpm-perlprov >= 4.1-13 +BuildRequires: rpmbuild(macros) >= 1.745 +Requires: dbus-libs >= 1.3.0 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -44,25 +51,27 @@ informacji na temat dbusa można znaleźć na stronie projektu: %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor -%{__make} +%{__make} \ + CC="%{__cc}" \ + OPTIMIZE="%{rpmcflags}" %{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT -%{__make} install \ +%{__make} pure_install \ DESTDIR=$RPM_BUILD_ROOT -rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/Net/DBus/*.pod -rm -rf $RPM_BUILD_ROOT%{perl_vendorarch}/Net/DBus/Tutorial +%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Net/DBus/*.pod +%{__rm} -r $RPM_BUILD_ROOT%{perl_vendorarch}/Net/DBus/Tutorial %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%doc AUTHORS CHANGES README +%doc AUTHORS Changes README %{perl_vendorarch}/Net/DBus.pm %dir %{perl_vendorarch}/Net/DBus %{perl_vendorarch}/Net/DBus/*.pm @@ -73,6 +82,5 @@ rm -rf $RPM_BUILD_ROOT %dir %{perl_vendorarch}/Net/DBus/Test %{perl_vendorarch}/Net/DBus/Test/*.pm %dir %{perl_vendorarch}/auto/Net/DBus -%{perl_vendorarch}/auto/Net/DBus/DBus.bs %attr(755,root,root) %{perl_vendorarch}/auto/Net/DBus/DBus.so -%{_mandir}/man3/* +%{_mandir}/man3/Net::DBus*.3pm*