perl-X11-Protocol-vl.spec 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. Name: perl-X11-Protocol
  2. Version: 0.56
  3. Release: 3%{?_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
  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. * Sun Dec 14 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.56-3
  56. - rebuilt with perl 5.16.3
  57. * Fri Apr 01 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 0.56-2
  58. - build with perl 5.12.3
  59. - add Vendor and Distribution tags
  60. * Thu Nov 05 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.56-1
  61. - initial build for Vine Linux based on fedora development
  62. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.56-4
  63. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  64. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.56-3
  65. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  66. * Thu Mar 06 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.56-2
  67. Rebuild for new perl
  68. * Tue Sep 18 2007 Patrick "Jima" Laughton <jima@beer.tclug.org> 0.56-1
  69. - New upstream release (bugfix)
  70. - Added BR for perl(ExtUtils::MakeMaker)
  71. - License clarification
  72. - Minor spec cleanup, mainly to suppress rpmlint warnings
  73. * Fri Sep 15 2006 Duncan Ferguson <duncan_j_ferguson@yahoo.co.uk> 0.55-5
  74. - FC-6 rebuild requests
  75. * Tue Jun 20 2006 Duncan Ferguson <duncan_j_ferguson@yahoo.co.uk> 0.55-4
  76. - Update due to bug 195879
  77. * Sun Apr 02 2006 Duncan Ferguson <duncan_j_ferguson@yahoo.co.uk> 0.55-3
  78. - Change tests for X environment
  79. * Sat Apr 01 2006 Duncan Ferguson <duncan_j_ferguson@yahoo.co.uk> 0.55-2
  80. - Specfile bugfile
  81. * Fri Mar 31 2006 Duncan Ferguson <duncan_j_ferguson@yahoo.co.uk> 0.55-1
  82. - Update to new version of X11::Protocol
  83. * Fri Aug 26 2005 Paul Howarth <paul@city-fan.org> 0.54-2
  84. - remove redundant BR: perl
  85. - remove compiler optimization flags, redundant for noarch package
  86. - require "rpmbuild --with X" to run tests requiring X
  87. - include examples as %%doc
  88. - include license text
  89. * Thu Aug 18 2005 Duncan Ferguson <duncan_j_ferguson@yahoo.co.uk> 0.54-1
  90. - Initial build