perl-Gtk2-Unique-vl.spec 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. Name: perl-Gtk2-Unique
  2. Version: 0.05
  3. Release: 1%{?_dist_release}
  4. Summary: Perl bindings for the C library "libunique"
  5. Group: Development/Libraries
  6. License: Artistic or GPL (same terms as Perl)
  7. URL: http://search.cpan.org/dist/Gtk2-Unique/
  8. Source0: http://search.cpan.org/CPAN/authors/id/P/PO/POTYL/Gtk2-Unique-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  10. BuildRequires: perl(Gtk2)
  11. BuildRequires: perl(ExtUtils::MakeMaker)
  12. BuildRequires: perl(ExtUtils::Depends)
  13. BuildRequires: perl(ExtUtils::PkgConfig)
  14. BuildRequires: unique-devel
  15. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  16. Requires: unique
  17. %description
  18. Perl bindings for the C library "libunique" that provides a mechanism for
  19. writing single instance applications. If you launch a single instance
  20. application twice, the second instance will either just quit or will send a
  21. message to the running instance.
  22. %prep
  23. %setup -q -n Gtk2-Unique-%{version}
  24. %build
  25. %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
  26. %{__make} %{?_smp_mflags}
  27. %install
  28. %{__rm} -rf $RPM_BUILD_ROOT
  29. %{__make} pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
  30. find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
  31. find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';'
  32. find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
  33. %{__chmod} -R u+w $RPM_BUILD_ROOT/*
  34. %clean
  35. %{__rm} -rf $RPM_BUILD_ROOT
  36. %files
  37. %defattr(-,root,root,-)
  38. %doc Changes README
  39. %{perl_vendorarch}/auto/Gtk2/Unique/
  40. %{perl_vendorarch}/Gtk2/Unique*
  41. %{_mandir}/man3/*.3pm*
  42. %changelog
  43. * Sat Feb 12 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 0.05-1
  44. - initial build for Vine Linux