commit e5a05d649d9729aea22fdafbb7d4e439e8484f23 Author: Mathieu Bridon <bochecha@xxxxxxxxxxxxxxxxx> Date: Thu Feb 10 12:21:07 2011 +0800 Initial packaging of perl-AnyEvent-DBus. This package was submitted for review in Fedora on Fri Jan 21 2011: https://bugzilla.redhat.com/show_bug.cgi?id=672455#c0 perl-AnyEvent-DBus.spec | 62 +++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 62 insertions(+), 0 deletions(-) --- diff --git a/perl-AnyEvent-DBus.spec b/perl-AnyEvent-DBus.spec new file mode 100644 index 0000000..96a12b6 --- /dev/null +++ b/perl-AnyEvent-DBus.spec @@ -0,0 +1,62 @@ +Name: perl-AnyEvent-DBus +Version: 0.31 +Release: 1%{?dist} +Summary: Adapt Net::DBus to AnyEvent +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/AnyEvent-DBus/ +Source0: http://www.cpan.org/authors/id/M/ML/MLEHMANN/AnyEvent-DBus-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(AnyEvent) +BuildRequires: perl(Net::DBus) +BuildRequires: perl(common::sense) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + + +%description +Loading this module will install the necessary magic to seamlessly integrate +Net::DBus into AnyEvent. + + +%prep +%setup -q -n AnyEvent-DBus-%{version} + + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + + +%install +rm -rf %{buildroot} + +make pure_install PERL_INSTALL_ROOT=%{buildroot} + +find %{buildroot} -type f -name .packlist -exec rm -f {} \; +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} %{buildroot}/* + + +%check +make test + + +%clean +rm -rf %{buildroot} + + +%files +%defattr(-,root,root,-) +%doc Changes COPYING META.json README +%{perl_vendorlib}/* +%{_mandir}/man3/* + + +%changelog +* Tue Jan 25 2011 Mathieu Bridon <bochecha@xxxxxxxxxxxxxxxxx> 0.31-1 +- Specfile autogenerated by cpanspec 1.78. +- Fixed description and license. +- Added missing BRs -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel