perl-X11-Protocol-vl.spec 3.6 KB

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