perl-Gtk2-GladeXML-vl.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. Name: perl-Gtk2-GladeXML
  2. Version: 1.006
  3. Release: 2%{?_dist_release}
  4. Summary: Create user interfaces directly from Glade XML files
  5. Group: Development/Libraries
  6. License: GPLv2+
  7. URL: http://search.cpan.org/dist/Gtk2-GladeXML/
  8. Source0: http://search.cpan.org/CPAN/authors/id/T/TS/TSCH/Gtk2-GladeXML-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  10. BuildRequires: perl(ExtUtils::Depends), perl(ExtUtils::PkgConfig)
  11. BuildRequires: perl(Glib), perl(Gtk2)
  12. BuildRequires: libglade2-devel >= 2.0.0
  13. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  14. %description
  15. Glade is a free user interface builder for GTK+ and GNOME.
  16. After designing a user interface with glade-2 the layout
  17. and configuration are saved in an XML file. libglade is a
  18. library which knows how to build and hook up the user interface
  19. described in the Glade XML file at application run time.
  20. This extension module binds libglade to Perl so you can
  21. create and manipulate user interfaces in Perl code in
  22. conjunction with Gtk2 and even Gnome2. Better yet you can
  23. load a file's contents into a PERL scalar do a few magical
  24. regular expressions to customize things and the load up the app.
  25. It doesn't get any easier.
  26. %prep
  27. %setup -q -n Gtk2-GladeXML-%{version}
  28. chmod -x examples/*
  29. %build
  30. %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
  31. make %{?_smp_mflags}
  32. %install
  33. rm -rf $RPM_BUILD_ROOT
  34. make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
  35. find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
  36. find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
  37. find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';'
  38. chmod -R u+w $RPM_BUILD_ROOT/*
  39. %check
  40. make test
  41. %clean
  42. rm -rf $RPM_BUILD_ROOT
  43. %files
  44. %defattr(-,root,root,-)
  45. %doc AUTHORS ChangeLog LICENSE NEWS README
  46. %doc examples/
  47. %{perl_vendorarch}/auto/Gtk2/
  48. %{perl_vendorarch}/Gtk2*
  49. %{_mandir}/man3/*.3*
  50. %changelog
  51. * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.006-2
  52. - rebuild with perl-5.12.3
  53. * Mon Jul 07 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.006-1
  54. - initial build for Vine Linux
  55. * Thu Mar 6 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.006-4
  56. - rebuild for new perl
  57. * Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.006-3
  58. - Autorebuild for GCC 4.3
  59. * Tue Aug 21 2007 Chris Weyl <cweyl@alumni.drew.edu> 1.006-2
  60. - bump
  61. * Wed Sep 20 2006 Chris Weyl <cweyl@alumni.drew.edu> 1.006-1
  62. - update to 1.006
  63. * Tue Sep 19 2006 Chris Weyl <cweyl@alumni.drew.edu> 1.005-5
  64. - taking co-maintainership post-mass rebuild
  65. - fix certain rpmlint warnings
  66. * Wed Sep 14 2005 Gavin Henry <ghenry[AT]suretecsystems.com> - 1.005-4
  67. - Added OPTIMIZE="$RPM_OPT_FLAGS" and
  68. removed "find examples -type f -exec chmod -x {} ';'"
  69. * Thu Aug 18 2005 Gavin Henry <ghenry[AT]suretecsystems.com> - 1.005-3
  70. - Third build.
  71. * Thu Aug 18 2005 Gavin Henry <ghenry[AT]suretecsystems.com> - 1.005-2
  72. - Second build.
  73. * Sun Jul 3 2005 Gavin Henry <ghenry[AT]suretecsystems.com> - 1.002-1
  74. - First build.