Name: perl-X11-Protocol Version: 0.56 Release: 2%{?_dist_release} Summary: X11-Protocol - Raw interface to X Window System servers Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/X11-Protocol/ Source0: http://search.cpan.org/CPAN/authors/id/S/SM/SMCCAM/X11-Protocol-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl(ExtUtils::MakeMaker) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Vendor: Project Vine Distribution: Vine Linux %description X11::Protocol is a client-side interface to the X11 Protocol (see X(1) for information about X11), allowing perl programs to display windows and graphics on X11 servers. A full description of the protocol is beyond the scope of this documentation; for complete information, see the I, available as Postscript or *roff source from C, or I of O'Reilly & Associates's series of books about X (ISBN 1-56592-083-X, C), which contains most of the same information. %prep %setup -q -n X11-Protocol-%{version} # Testing requires X - use "rpmbuild --with X" %if 0%{!?_with_X:1} %{__perl} -pi -e 'print "print \"Remaining tests require X\n\"; exit 0;" if /Insert your test code below/;' test.pl %endif perldoc -t perlartistic > Artistic perldoc -t perlgpl > COPYING # Remove shebangs from module code find . -name '*.pm' -exec sed -i -e '/^#!\/usr\/bin\/perl$/d' {} ';' %build %{__perl} Makefile.PL INSTALLDIRS=vendor %{__make} %{?_smp_mflags} %install %{__rm} -rf $RPM_BUILD_ROOT %{__make} pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' %{__chmod} -R u+w $RPM_BUILD_ROOT/* %check %{__make} test %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc README Changes Todo eg COPYING Artistic %{perl_vendorlib}/X11/ %{_mandir}/man3/*.3* %changelog * Fri Apr 01 2011 Kazutaka HARADA 0.56-2 - build with perl 5.12.3 - add Vendor and Distribution tags * Thu Nov 05 2009 Kazutaka HARADA 0.56-1 - initial build for Vine Linux based on fedora development * Sun Jul 26 2009 Fedora Release Engineering - 0.56-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Feb 26 2009 Fedora Release Engineering - 0.56-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Thu Mar 06 2008 Tom "spot" Callaway - 0.56-2 Rebuild for new perl * Tue Sep 18 2007 Patrick "Jima" Laughton 0.56-1 - New upstream release (bugfix) - Added BR for perl(ExtUtils::MakeMaker) - License clarification - Minor spec cleanup, mainly to suppress rpmlint warnings * Fri Sep 15 2006 Duncan Ferguson 0.55-5 - FC-6 rebuild requests * Tue Jun 20 2006 Duncan Ferguson 0.55-4 - Update due to bug 195879 * Sun Apr 02 2006 Duncan Ferguson 0.55-3 - Change tests for X environment * Sat Apr 01 2006 Duncan Ferguson 0.55-2 - Specfile bugfile * Fri Mar 31 2006 Duncan Ferguson 0.55-1 - Update to new version of X11::Protocol * Fri Aug 26 2005 Paul Howarth 0.54-2 - remove redundant BR: perl - remove compiler optimization flags, redundant for noarch package - require "rpmbuild --with X" to run tests requiring X - include examples as %%doc - include license text * Thu Aug 18 2005 Duncan Ferguson 0.54-1 - Initial build