perl-X11-Protocol-vl.spec 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. Name: perl-X11-Protocol
  2. Version: 0.56
  3. Release: 2%{?_dist_release}
  4. Summary: X11-Protocol - Raw interface to X Window System servers
  5. Group: Development/Libraries
  6. License: GPL+ or Artistic
  7. URL: http://search.cpan.org/dist/X11-Protocol/
  8. Source0: http://search.cpan.org/CPAN/authors/id/S/SM/SMCCAM/X11-Protocol-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  10. BuildArch: noarch
  11. BuildRequires: perl(ExtUtils::MakeMaker)
  12. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  13. Vendor: Project Vine
  14. Distribution: Vine Linux
  15. %description
  16. X11::Protocol is a client-side interface to the X11 Protocol (see X(1) for
  17. information about X11), allowing perl programs to display windows and
  18. graphics on X11 servers.
  19. A full description of the protocol is beyond the scope of this documentation;
  20. for complete information, see the I<X Window System Protocol, X Version 11>,
  21. available as Postscript or *roff source from C<ftp://ftp.x.org>, or
  22. I<Volume 0: X Protocol Reference Manual> of O'Reilly & Associates's series of
  23. books about X (ISBN 1-56592-083-X, C<http://www.oreilly.com>), which contains
  24. most of the same information.
  25. %prep
  26. %setup -q -n X11-Protocol-%{version}
  27. # Testing requires X - use "rpmbuild --with X"
  28. %if 0%{!?_with_X:1}
  29. %{__perl} -pi -e 'print "print \"Remaining tests require X\n\"; exit 0;"
  30. if /Insert your test code below/;' test.pl
  31. %endif
  32. perldoc -t perlartistic > Artistic
  33. perldoc -t perlgpl > COPYING
  34. # Remove shebangs from module code
  35. find . -name '*.pm' -exec sed -i -e '/^#!\/usr\/bin\/perl$/d' {} ';'
  36. %build
  37. %{__perl} Makefile.PL INSTALLDIRS=vendor
  38. %{__make} %{?_smp_mflags}
  39. %install
  40. %{__rm} -rf $RPM_BUILD_ROOT
  41. %{__make} pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
  42. find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
  43. find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
  44. %{__chmod} -R u+w $RPM_BUILD_ROOT/*
  45. %check
  46. %{__make} test
  47. %clean
  48. %{__rm} -rf $RPM_BUILD_ROOT
  49. %files
  50. %defattr(-,root,root,-)
  51. %doc README Changes Todo eg COPYING Artistic
  52. %{perl_vendorlib}/X11/
  53. %{_mandir}/man3/*.3*
  54. %changelog
  55. * Fri Apr 01 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 0.56-2
  56. - build with perl 5.12.3
  57. - add Vendor and Distribution tags
  58. * Thu Nov 05 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.56-1
  59. - initial build for Vine Linux based on fedora development
  60. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.56-4
  61. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  62. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.56-3
  63. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  64. * Thu Mar 06 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.56-2
  65. Rebuild for new perl
  66. * Tue Sep 18 2007 Patrick "Jima" Laughton <jima@beer.tclug.org> 0.56-1
  67. - New upstream release (bugfix)
  68. - Added BR for perl(ExtUtils::MakeMaker)
  69. - License clarification
  70. - Minor spec cleanup, mainly to suppress rpmlint warnings
  71. * Fri Sep 15 2006 Duncan Ferguson <duncan_j_ferguson@yahoo.co.uk> 0.55-5
  72. - FC-6 rebuild requests
  73. * Tue Jun 20 2006 Duncan Ferguson <duncan_j_ferguson@yahoo.co.uk> 0.55-4
  74. - Update due to bug 195879
  75. * Sun Apr 02 2006 Duncan Ferguson <duncan_j_ferguson@yahoo.co.uk> 0.55-3
  76. - Change tests for X environment
  77. * Sat Apr 01 2006 Duncan Ferguson <duncan_j_ferguson@yahoo.co.uk> 0.55-2
  78. - Specfile bugfile
  79. * Fri Mar 31 2006 Duncan Ferguson <duncan_j_ferguson@yahoo.co.uk> 0.55-1
  80. - Update to new version of X11::Protocol
  81. * Fri Aug 26 2005 Paul Howarth <paul@city-fan.org> 0.54-2
  82. - remove redundant BR: perl
  83. - remove compiler optimization flags, redundant for noarch package
  84. - require "rpmbuild --with X" to run tests requiring X
  85. - include examples as %%doc
  86. - include license text
  87. * Thu Aug 18 2005 Duncan Ferguson <duncan_j_ferguson@yahoo.co.uk> 0.54-1
  88. - Initial build