perl-Gtk2-Unique-vl.spec 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. Name: perl-Gtk2-Unique
  2. Version: 0.05
  3. Release: 3%{?_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
  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. Vendor: Project Vine
  18. Distribution: Vine Linux
  19. %description
  20. Perl bindings for the C library "libunique" that provides a mechanism for
  21. writing single instance applications. If you launch a single instance
  22. application twice, the second instance will either just quit or will send a
  23. message to the running instance.
  24. %prep
  25. %setup -q -n Gtk2-Unique-%{version}
  26. %build
  27. %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
  28. %{__make} %{?_smp_mflags}
  29. %install
  30. %{__rm} -rf $RPM_BUILD_ROOT
  31. %{__make} pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
  32. find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
  33. find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';'
  34. find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
  35. %{__chmod} -R u+w $RPM_BUILD_ROOT/*
  36. %clean
  37. %{__rm} -rf $RPM_BUILD_ROOT
  38. %files
  39. %defattr(-,root,root,-)
  40. %doc Changes README
  41. %{perl_vendorarch}/auto/Gtk2/Unique/
  42. %{perl_vendorarch}/Gtk2/Unique*
  43. %{_mandir}/man3/*.3pm*
  44. %changelog
  45. * Sun Dec 07 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.05-3
  46. - rebuilt with perl 5.16.3
  47. * Fri Apr 01 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 0.05-2
  48. - build with perl 5.12.3
  49. - add Vendor and Distribution tags
  50. * Sat Feb 12 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 0.05-1
  51. - initial build for Vine Linux