[perl-X11-Protocol-Other] 21 bump

Petr Šabata psabata at fedoraproject.org
Mon Nov 5 09:45:54 UTC 2012


commit 24ae61d9bdaa1f7fe103e4e78252040f932c6a99
Author: Petr Šabata <contyk at redhat.com>
Date:   Mon Nov 5 10:39:13 2012 +0100

    21 bump

 .gitignore                   |    1 +
 perl-X11-Protocol-Other.spec |   38 ++++++++++++++++++++++++--------------
 sources                      |    2 +-
 3 files changed, 26 insertions(+), 15 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 9c5552a..e357e9b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 X11-Protocol-Other-18.tar.gz
+/X11-Protocol-Other-21.tar.gz
diff --git a/perl-X11-Protocol-Other.spec b/perl-X11-Protocol-Other.spec
index 303c769..a7d28d8 100644
--- a/perl-X11-Protocol-Other.spec
+++ b/perl-X11-Protocol-Other.spec
@@ -1,5 +1,5 @@
 Name:           perl-X11-Protocol-Other
-Version:        18
+Version:        21
 Release:        1%{?dist}
 Summary:        Miscellaneous X11::Protocol helpers
 License:        GPLv3+
@@ -7,40 +7,50 @@ Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/X11-Protocol-Other/
 Source0:        http://www.cpan.org/modules/by-module/X11/X11-Protocol-Other-%{version}.tar.gz
 BuildArch:      noarch
-BuildRequires:  perl >= 0:5.004
+BuildRequires:  perl(constant)
+BuildRequires:  perl(lib)
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(Encode)
+BuildRequires:  perl(Encode::Encoding)
+BuildRequires:  perl(Encode::HanExtra)
+BuildRequires:  perl(Exporter)
 BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(IO::Select)
 BuildRequires:  perl(X11::Protocol)
-BuildRequires:  perl(Encode::HanExtra)
-Requires:       perl(X11::Protocol)
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 
 %description
 These are some helper functions for X11::Protocol.
 
 %prep
 %setup -q -n X11-Protocol-Other-%{version}
+chmod a-x examples/*
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
+perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
 make %{?_smp_mflags}
 
 %install
-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 f -name '*.bs' -size 0 -exec rm -f {} \;
-find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
-
-%{_fixperms} $RPM_BUILD_ROOT/*
+make pure_install PERL_INSTALL_ROOT=%{buildroot}
+find %{buildroot} -type f -name .packlist -exec rm -f {} \;
+find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \;
+find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
+%{_fixperms} %{buildroot}/*
 
 %check
 make test
 
 %files
-%doc Changes COPYING
+%doc Changes COPYING examples
 %{perl_vendorlib}/*
 %{_mandir}/man3/*
 
 %changelog
+* Mon Nov 05 2012 Petr Šabata <contyk at redhat.com> - 21-1
+- 21 bump
+- Fix the deps
+- Modernize the spec a bit
+- Package the examples
+
 * Sat Aug 11 2012 Robin Lee <cheeselee at fedoraproject.org> 18-1
 - Specfile autogenerated by cpanspec 1.78.
diff --git a/sources b/sources
index d3532c7..562bbbc 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-cbbe7338df08642d6bf01f3c66f65d27  X11-Protocol-Other-18.tar.gz
+06c1a9df4ccad8c42b0123890063af96  X11-Protocol-Other-21.tar.gz



More information about the perl-devel mailing list