[libnet-dbus-perl] 320/335: Import latest RPM spec from Fedora

Intrigeri intrigeri at moszumanska.debian.org
Sat Mar 21 01:08:15 UTC 2015


This is an automated email from the git hooks/post-receive script.

intrigeri pushed a commit to branch experimental
in repository libnet-dbus-perl.

commit fc5e71cf4f47457b0a02b8df089ad2e18584c4e1
Author: Daniel P. Berrange <berrange at redhat.com>
Date:   Mon Mar 16 18:37:57 2015 +0000

    Import latest RPM spec from Fedora
---
 .gitignore            |  2 +-
 Makefile.PL           |  4 +--
 Net-DBus.spec.PL      | 93 ---------------------------------------------------
 perl-Net-DBus.spec.PL | 84 ++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 87 insertions(+), 96 deletions(-)

diff --git a/.gitignore b/.gitignore
index d102f73..81359b3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,7 +7,7 @@ MYMETA\.json
 MYMETA\.yml
 Makefile
 Net-DBus-*\.tar\.gz
-Net-DBus.spec
+perl-Net-DBus.spec
 blib/
 pm_to_blib
 *~
diff --git a/Makefile.PL b/Makefile.PL
index b6a8fe1..81a480d 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -40,11 +40,11 @@ WriteMakefile(
 	      'INC' => "$wall $DBUS_CFLAGS",
               'NO_META' => 1,
 	      'depend' => {
-		  Net-DBus.spec => '$(VERSION_FROM)',
+		  perl-Net-DBus.spec => '$(VERSION_FROM)',
 		  Makefile => '$(VERSION_FROM)',
 	      },
 	      'realclean' => {
-		  FILES => 'Net-DBus.spec',
+		  FILES => 'perl-Net-DBus.spec',
 	      },
 );
 
diff --git a/Net-DBus.spec.PL b/Net-DBus.spec.PL
deleted file mode 100644
index ff2b86e..0000000
--- a/Net-DBus.spec.PL
+++ /dev/null
@@ -1,93 +0,0 @@
-# -*- rpm-spec -*-
-# Copyright (C) 2004-2006 Daniel Berrange <dan at berrange.com>
-#
-# $Id: Net-DBus.spec.PL,v 1.8 2006/01/06 16:21:04 dan Exp $
-
-use strict;
-
-die unless (scalar @ARGV == 1);
-
-open SRC, "lib/Net/DBus.pm"
-    or die "lib/Net/DBus.pm: $!";
-
-our $VERSION;
-while (<SRC>) {
-    if (/\$VERSION\s*=\s*'(.*)'/) {
-	$VERSION=$1;
-    }
-}
-close SRC;
-
-local $/ = undef;
-$_ = <DATA>;
-s/\@VERSION\@/$VERSION/g;
-
-open SPEC, ">$ARGV[0]" or die "$!";
-print SPEC $_;
-close SPEC;
-__DATA__
-# Automatically generated by DBus.spec.PL
-
-%define appname Net-DBus
-
-%define _extra_release %{?extra_release:%{extra_release}}
-
-Summary: Perl API to the DBus message system
-Name: perl-%{appname}
-Version: @VERSION@
-Release: 1%{_extra_release}
-License: GPLv2+ or Artistic
-Group: Development/Libraries
-URL:            http://search.cpan.org/dist/%{appname}
-Source0:        http://www.cpan.org/modules/by-module/Net/%{appname}-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
-Requires: dbus >= 1.0.0
-BuildRequires: dbus-devel > 1.0.0
-BuildRequires: perl(XML::Twig)
-BuildRequires: perl(Time::HiRes)
-BuildRequires: perl(Test::More)
-BuildRequires: perl(Test::Pod)
-BuildRequires: perl(Test::Pod::Coverage)
-BuildRequires: perl(Test::CPAN::Changes)
-
-%description
-Provides a Perl API to the DBus message system
-
-%prep
-%setup -q -n %{appname}-%{version}
-
-
-%build
-if [ -z "$DBUS_HOME" ]; then
-  %{__perl} Makefile.PL INSTALLDIRS=vendor
-else
-  %{__perl} Makefile.PL INSTALLDIRS=vendor DBUS_HOME=$DBUS_HOME
-fi
-make %{?_smp_mflags}
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
-
-find $RPM_BUILD_ROOT -name perllocal.pod -exec rm -f {} \;
-find $RPM_BUILD_ROOT -name .packlist -exec rm -f {} \;
-
-%{_fixperms} $RPM_BUILD_ROOT/*
-
-%check
-make test
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%files
-%defattr(-,root,root)
-%doc README Changes AUTHORS LICENSE examples/*.pl
-%{_mandir}/man3/*
-%{perl_vendorarch}/Net/DBus.pm
-%{perl_vendorarch}/Net/DBus/
-%{perl_vendorarch}/auto/Net/DBus
-
-%changelog
diff --git a/perl-Net-DBus.spec.PL b/perl-Net-DBus.spec.PL
new file mode 100644
index 0000000..9a1a485
--- /dev/null
+++ b/perl-Net-DBus.spec.PL
@@ -0,0 +1,84 @@
+# -*- rpm-spec -*-
+# Copyright (C) 2004-2015 Daniel Berrange <dan at berrange.com>
+#
+
+use strict;
+
+die unless (scalar @ARGV == 1);
+
+open SRC, "lib/Net/DBus.pm"
+    or die "lib/Net/DBus.pm: $!";
+
+our $VERSION;
+while (<SRC>) {
+    if (/\$VERSION\s*=\s*'(.*)'/) {
+       $VERSION=$1;
+    }
+}
+close SRC;
+
+local $/ = undef;
+$_ = <DATA>;
+s/\@VERSION\@/$VERSION/g;
+
+open SPEC, ">$ARGV[0]" or die "$!";
+print SPEC $_;
+close SPEC;
+__DATA__
+
+Name:           perl-Net-DBus
+Version:        @VERSION@
+Release:        1%{?dist}
+Summary:        Use and provide DBus services
+License:        GPLv2+ or Artistic
+Group:          Development/Libraries
+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:  perl(Exporter)
+BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(Time::HiRes)
+BuildRequires:  perl(XML::Grove)
+BuildRequires:  perl(XML::Parser)
+BuildRequires:  perl(XML::Twig)
+BuildRequires:  perl(XSLoader)
+# test
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(Test::More)
+BuildRequires:  perl(Test::Pod) >= 1.00
+BuildRequires:  perl(Test::Pod::Coverage) >= 1.00
+Requires:       perl(XSLoader)
+
+%{?perl_default_filter}
+
+%description
+Net::DBus provides a Perl API for the DBus message system. The DBus Perl
+interface is currently operating against the 0.33 development version of
+DBus, but should work with later versions too, providing the API changes
+have not been too drastic.
+
+%prep
+%setup -q -n Net-DBus-%{version}
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
+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 \;
+%{_fixperms} %{buildroot}/*
+
+%check
+make test
+
+%files
+%doc AUTHORS Changes README LICENSE examples/
+%{perl_vendorarch}/auto/*
+%{perl_vendorarch}/Net*
+%{_mandir}/man3/*
+
+%changelog

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libnet-dbus-perl.git



More information about the Pkg-perl-cvs-commits mailing list