perl-Net-DBus-GLib-vl.spec 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. Name: perl-Net-DBus-GLib
  2. Version: 0.33.0
  3. Release: 1%{?_dist_release}
  4. Summary: Perl extension for the DBus GLib bindings
  5. License: GPLv2+ or Artistic
  6. Group: Development/Libraries
  7. URL: http://search.cpan.org/dist/Net-DBus-GLib/
  8. Source0: http://www.cpan.org/authors/id/D/DA/DANBERR/Net-DBus-GLib-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  10. BuildRequires: perl(ExtUtils::MakeMaker)
  11. BuildRequires: perl(Glib)
  12. BuildRequires: perl(Net::DBus) >= 0.33.0
  13. BuildRequires: perl(Test::More)
  14. BuildRequires: perl(Test::Pod)
  15. BuildRequires: perl(Test::Pod::Coverage)
  16. BuildRequires: dbus-glib-devel
  17. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  18. %description
  19. Net::DBus::GLib provides an extension to the Net::DBus module allowing
  20. integration with the GLib mainloop. To integrate with the main loop, simply
  21. get a connection to the bus via the methods in Net::DBus::GLib rather than
  22. the usual Net::DBus module. That's it - every other API remains the same.
  23. %prep
  24. %setup -q -n Net-DBus-GLib-%{version}
  25. %build
  26. %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
  27. %{__make} %{?_smp_mflags}
  28. %install
  29. %{__rm} -rf $RPM_BUILD_ROOT
  30. %{__make} pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
  31. find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
  32. find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
  33. find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
  34. %{_fixperms} $RPM_BUILD_ROOT/*
  35. %check
  36. %{__make} test
  37. %clean
  38. %{__rm} -rf $RPM_BUILD_ROOT
  39. %files
  40. %defattr(-,root,root,-)
  41. %doc AUTHORS CHANGES LICENSE README examples/
  42. %{perl_vendorarch}/auto/*
  43. %{perl_vendorarch}/Net*
  44. %{_mandir}/man3/*
  45. %changelog
  46. * Sat Oct 16 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.33.0-1
  47. - initial build for Vine Linux
  48. * Tue May 04 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.33.0-5
  49. - Mass rebuild with perl-5.12.0
  50. * Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.33.0-4
  51. - rebuild against perl 5.10.1
  52. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.33.0-3
  53. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  54. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.33.0-2
  55. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  56. * Thu Feb 19 2009 Allisson Azevedo <allisson@gmail.com> 0.33.0-1
  57. - Initial rpm release.