perl-Gtk2-vl.spec 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. #
  2. # Rebuild option:
  3. #
  4. # --with testsuite - run the test suite (requires X)
  5. #
  6. Name: perl-Gtk2
  7. Version: 1.202
  8. Release: 1%{?_dist_release}
  9. Summary: Perl interface to the GTK+2
  10. Summary(ja): GTK+2 用の Perl インタフェース
  11. Group: Development/Libraries
  12. License: LGPLv2+
  13. URL: http://search.cpan.org/dist/Gtk2/
  14. Source0: http://www.cpan.org/authors/id/T/TS/TSCH/Gtk2-%{version}.tar.gz
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  16. BuildRequires: perl >= 5.8.0
  17. BuildRequires: gtk2-devel
  18. BuildRequires: perl(ExtUtils::Depends), perl(ExtUtils::PkgConfig)
  19. BuildRequires: perl(Glib) >= 1.160
  20. BuildRequires: perl(Cairo) >= 1.00
  21. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  22. Requires: perl(Glib)
  23. Requires: perl(Cairo)
  24. %description
  25. This module allows you to write Gtk+ graphical user interfaces in a
  26. perlish and object-oriented way, freeing you from the casting and
  27. memory management in C, yet remaining very close in spirit to original
  28. API. Find out more about Gtk+ at http://www.gtk.org.
  29. %prep
  30. %setup -q -n Gtk2-%{version}
  31. iconv -f iso-8859-1 -t utf-8 -o pm/Helper.pm{.utf8,}
  32. mv pm/Helper.pm{.utf8,}
  33. # Provides: exclude perl(main)
  34. cat <<__EOF__ > %{name}-perl.prov
  35. #!/bin/sh
  36. /usr/lib/rpm/perl.prov \$* | grep -v '^perl(main)$'
  37. __EOF__
  38. %define __perl_provides %{_builddir}/Gtk2-%{version}/%{name}-perl.prov
  39. chmod +x %{__perl_provides}
  40. # Requires: exclude unversioned perl(Glib)
  41. cat <<__EOF__ > %{name}-perl.req
  42. #!/bin/sh
  43. /usr/lib/rpm/perl.req \$* | grep -v '^perl(Glib)$'
  44. __EOF__
  45. %define __perl_requires %{_builddir}/Gtk2-%{version}/%{name}-perl.req
  46. chmod +x %{__perl_requires}
  47. %build
  48. %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
  49. make %{?_smp_mflags}
  50. %install
  51. rm -rf $RPM_BUILD_ROOT
  52. make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
  53. find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
  54. find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';'
  55. find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
  56. chmod -R u+w $RPM_BUILD_ROOT/*
  57. %check
  58. %{?_with_testsuite:make test}
  59. %clean
  60. rm -rf $RPM_BUILD_ROOT
  61. %files
  62. %defattr(-,root,root,-)
  63. %doc AUTHORS ChangeLog LICENSE NEWS README TODO
  64. %doc examples/ gtk-demo/
  65. %{perl_vendorarch}/auto/Gtk2/
  66. %{perl_vendorarch}/Gtk2*
  67. %{_mandir}/man3/*.3pm*
  68. %changelog
  69. * Tue Nov 04 2008 Ryoichi INAGAKI <ryo1@bc.wakwa.com> 1.202-1
  70. - new upstream release
  71. * Mon Jul 07 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.162-1
  72. - initial build for Vine Linux
  73. * Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.162-4
  74. - Rebuild for perl 5.10 (again)
  75. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.162-3
  76. - Autorebuild for GCC 4.3
  77. * Tue Feb 5 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.162-2
  78. - rebuild for new perl
  79. * Wed Dec 19 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 1.162-1
  80. - Update to 1.162
  81. * Sun Mar 18 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.144-1
  82. - Update to 1.144.
  83. * Mon Feb 26 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.143-1
  84. - Update to 1.143.
  85. * Sun Jan 21 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.142-1
  86. - Update to 1.142.
  87. * Wed Nov 22 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.141-1
  88. - Update to 1.141.
  89. * Wed Sep 6 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.140-1
  90. - Update to 1.140.
  91. * Mon May 29 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.122-1
  92. - Update to 1.122.
  93. * Mon May 1 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.121-2
  94. - Requires perl(Cairo) (distro >= FC-5).
  95. * Tue Apr 11 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.121-1
  96. - Update to 1.121.
  97. * Tue Mar 14 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.120-1
  98. - Update to 1.120.
  99. * Mon Feb 20 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.104-1
  100. - Update to 1.104.
  101. - Requires perl(Glib) >= 1.105 (1.104 had problems with perl 5.8.8).
  102. * Thu Jan 19 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.103-1
  103. - Update to 1.103.
  104. - Converted the Gtk2::Helper man page to utf8 (#177802).
  105. - Provides list: filtered out perl(main) (#177802).
  106. * Wed Nov 30 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.102-1
  107. - Update to 1.102.
  108. * Thu Oct 6 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.101-1
  109. - Update to 1.101.
  110. * Thu Sep 8 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.100-1
  111. - Update to 1.100.
  112. * Fri Jul 29 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.083-1
  113. - Update to 1.083.
  114. * Mon Jun 27 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.082-1
  115. - Update to 1.082.
  116. * Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
  117. - rebuilt
  118. * Thu Mar 10 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.080-2
  119. - Use perl-Glib for versioning control (patch by Ville Skyttä).
  120. * Tue Mar 8 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1.080-1
  121. - Update to 1.080.
  122. * Tue Feb 15 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:1.062-1
  123. - Update to 1.062.
  124. * Mon Oct 25 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:1.061-0.fdr.2
  125. - Removed irrelevant or duplicated documentation files.
  126. - Description simplified (as suggested by Ville Skyttä).
  127. * Tue Oct 5 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:1.061-0.fdr.1
  128. - Update to 1.061.
  129. * Tue Oct 5 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:1.043-0.fdr.2
  130. - make test commented: needs X.
  131. * Sun Jul 18 2004 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0:1.043-0.fdr.1
  132. - First build.