diff --git a/perl-Net-DBus.spec b/perl-Net-DBus.spec index fd234f1..2b74324 100644 --- a/perl-Net-DBus.spec +++ b/perl-Net-DBus.spec @@ -15,55 +15,58 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild Name: perl-Net-DBus +Version: 1.0.0 +Release: 1 +License: GPL-2.0+ %define cpan_name Net-DBus Summary: Perl extension for the DBus message system -Version: 1.0.0 -Release: 4 -License: GPLv2+ or Artistic -Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Net-DBus/ -Source: %{cpan_name}-%{version}.tar.gz +Group: Development/Libraries/Perl +Source: http://www.cpan.org/authors/id/D/DA/DANBERR/%{cpan_name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{perl_requires} -BuildRequires: dbus-1-devel pkg-config BuildRequires: perl BuildRequires: perl-macros -BuildRequires: perl(Test::More) BuildRequires: perl(Test::Pod) BuildRequires: perl(Test::Pod::Coverage) -BuildRequires: perl(Time::HiRes) BuildRequires: perl(XML::Twig) -Requires: perl(Time::HiRes) Requires: perl(XML::Twig) -Provides: %{cpan_name} +# MANUAL +BuildRequires: dbus-1-devel pkg-config +%{perl_requires} %description -Net::DBus provides a Perl API for the DBus message system. +Net::DBus provides a Perl API for the DBus message system. The DBus Perl +interface is currently operating against the 0.32 development version of +DBus, but should work with later versions too, providing the API changes +have not been too drastic. + +Users of this package are either typically, service providers in which case +the the Net::DBus::Service manpage and the Net::DBus::Object manpage +modules are of most relevance, or are client consumers, in which case the +Net::DBus::RemoteService manpage and the Net::DBus::RemoteObject manpage +are of most relevance. %prep %setup -q -n %{cpan_name}-%{version} +find . -type f -print0 | xargs -0 chmod 644 %build -%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" -make %{?_smp_mflags} +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" +%{__make} %{?_smp_mflags} + +%check +%{__make} test %install %perl_make_install %perl_process_packlist %perl_gen_filelist -%check -make test - -%clean -rm -rf $RPM_BUILD_ROOT - -%files -f %name.files -%defattr(-,root,root,-) -%doc AUTHORS CHANGES LICENSE README +%files -f %{name}.files +%defattr(-,root,root,755) +%doc AUTHORS CHANGES examples LICENSE Net-DBus.spec README %changelog