[perl-IO-Prompt] Modernize spec file
by Petr Pisar
commit 6e4a47faf6a38ecc6cf862e05283195729e05071
Author: Petr Písař <ppisar(a)redhat.com>
Date: Wed Nov 7 11:17:47 2012 +0100
Modernize spec file
perl-IO-Prompt.spec | 29 ++++++-----------------------
1 files changed, 6 insertions(+), 23 deletions(-)
---
diff --git a/perl-IO-Prompt.spec b/perl-IO-Prompt.spec
index bb98340..cd7a937 100644
--- a/perl-IO-Prompt.spec
+++ b/perl-IO-Prompt.spec
@@ -1,3 +1,7 @@
+# tests require working /dev/tty - disabled by default for koji
+# see https://rt.cpan.org/Public/Bug/Display.html?id=54807
+%bcond_with check
+
Name: perl-IO-Prompt
Summary: Interactively prompt for user input
%global cpanver 0.997002
@@ -7,14 +11,7 @@ License: GPL+ or Artistic
Group: Development/Libraries
Source0: http://search.cpan.org/CPAN/authors/id/D/DC/DCONWAY/IO-Prompt-%{cpanver}....
URL: http://search.cpan.org/dist/IO-Prompt
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
BuildArch: noarch
-
-# tests require working /dev/tty - disabled by default for koji
-# see https://rt.cpan.org/Public/Bug/Display.html?id=54807
-%bcond_with check
-
BuildRequires: perl(IO::Handle)
BuildRequires: perl(POSIX)
BuildRequires: perl(Term::ReadKey)
@@ -23,7 +20,7 @@ BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl(version)
BuildRequires: perl(Want)
-
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%{?perl_default_filter}
@@ -31,28 +28,20 @@ BuildRequires: perl(Want)
An object-oriented way to prompt for user input -- and control how the user is
prompted.
-
%prep
%setup -q -n IO-Prompt-%{cpanver}
-
-sed -i 's/\r//' t/*.t
-
-find . -type f -exec chmod -c -x {} ';'
+find examples -type f -exec chmod -x {} +
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
-
%install
-rm -rf %{buildroot}
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
-find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
%{_fixperms} %{buildroot}/*
-
%check
%if %{with check}
make test
@@ -60,13 +49,7 @@ find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
echo "Not running tests unless --with check is specified"
%endif
-
-%clean
-rm -rf %{buildroot}
-
-
%files
-%defattr(-,root,root,-)
%doc Changes README examples/
%{perl_vendorlib}/*
%{_mandir}/man3/*.3*
11 years, 7 months
[perl-IO-Prompt] Drop tests sub-package
by Petr Pisar
commit da137b216fd792e542f08095c144998e83047451
Author: Petr Písař <ppisar(a)redhat.com>
Date: Wed Nov 7 11:14:57 2012 +0100
Drop tests sub-package
perl-IO-Prompt.spec | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/perl-IO-Prompt.spec b/perl-IO-Prompt.spec
index 8a62a23..bb98340 100644
--- a/perl-IO-Prompt.spec
+++ b/perl-IO-Prompt.spec
@@ -26,7 +26,6 @@ BuildRequires: perl(Want)
%{?perl_default_filter}
-%{?perl_default_subpackage_tests}
%description
An object-oriented way to prompt for user input -- and control how the user is
@@ -76,6 +75,7 @@ rm -rf %{buildroot}
%changelog
* Wed Nov 07 2012 Petr Pisar <ppisar(a)redhat.com> - 0.997.002-1
- 0.997002 bump
+- Drop tests sub-package
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> - 0.997.001-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
11 years, 7 months
[perl-IO-Prompt] 0.997002 bump
by Petr Pisar
commit 323014bad8aa560668612a1d6ff00e253c02c800
Author: Petr Písař <ppisar(a)redhat.com>
Date: Wed Nov 7 11:12:54 2012 +0100
0.997002 bump
.gitignore | 1 +
perl-IO-Prompt-rt69084.patch | 33 ---------------------------------
perl-IO-Prompt.spec | 14 ++++++--------
sources | 2 +-
4 files changed, 8 insertions(+), 42 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 17ebb00..ef866f1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
IO-Prompt-0.997.tar.gz
/IO-Prompt-0.997001.tar.gz
+/IO-Prompt-0.997002.tar.gz
diff --git a/perl-IO-Prompt.spec b/perl-IO-Prompt.spec
index 454e9a8..8a62a23 100644
--- a/perl-IO-Prompt.spec
+++ b/perl-IO-Prompt.spec
@@ -1,15 +1,11 @@
Name: perl-IO-Prompt
Summary: Interactively prompt for user input
-%global cpanver 0.997001
-Version: 0.997.001
-Release: 4%{?dist}
+%global cpanver 0.997002
+Version: 0.997.002
+Release: 1%{?dist}
License: GPL+ or Artistic
Group: Development/Libraries
Source0: http://search.cpan.org/CPAN/authors/id/D/DC/DCONWAY/IO-Prompt-%{cpanver}....
-# doesn't work on 5.14 if you call prompt() in non-"main" package
-# see https://rt.cpan.org/Public/Bug/Display.html?id=69084
-# and https://github.com/gfx/p5-IO-Prompt-patched/commit/8300962b0235803287777f...
-Patch0: perl-IO-Prompt-rt69084.patch
URL: http://search.cpan.org/dist/IO-Prompt
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
@@ -39,7 +35,6 @@ prompted.
%prep
%setup -q -n IO-Prompt-%{cpanver}
-%patch0 -p1
sed -i 's/\r//' t/*.t
@@ -79,6 +74,9 @@ rm -rf %{buildroot}
%changelog
+* Wed Nov 07 2012 Petr Pisar <ppisar(a)redhat.com> - 0.997.002-1
+- 0.997002 bump
+
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> - 0.997.001-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
diff --git a/sources b/sources
index c23d694..55854a9 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-c1311dd2122cca28426394acf2aed2ba IO-Prompt-0.997001.tar.gz
+292048668ee6c489c61da6665bdc1c1f IO-Prompt-0.997002.tar.gz
11 years, 7 months
[perl-Unix-Syslog] Conditionalize test dependencies
by Petr Pisar
commit 4b323504c21849269ac06103dee5dce3a0c8452e
Author: Petr Písař <ppisar(a)redhat.com>
Date: Wed Nov 7 09:47:27 2012 +0100
Conditionalize test dependencies
perl-Unix-Syslog.spec | 18 +++++++++++++++---
1 files changed, 15 insertions(+), 3 deletions(-)
---
diff --git a/perl-Unix-Syslog.spec b/perl-Unix-Syslog.spec
index 455ee17..1e51d0e 100644
--- a/perl-Unix-Syslog.spec
+++ b/perl-Unix-Syslog.spec
@@ -1,16 +1,24 @@
+# Tests require accessible syslog
+%bcond_with test
+
Name: perl-Unix-Syslog
Version: 1.1
-Release: 12%{?dist}
+Release: 13%{?dist}
Summary: Perl interface to the UNIX syslog(3) calls
License: Artistic 2.0
Group: Development/Libraries
URL: http://search.cpan.org/dist/Unix-Syslog/
Source0: http://www.cpan.org/authors/id/M/MH/MHARNISCH/Unix-Syslog-%{version}.tar.gz
BuildRequires: perl(ExtUtils::MakeMaker)
+%if %{with test}
# Run-requires:
BuildRequires: perl(DynaLoader)
BuildRequires: perl(Exporter)
+# Tests:
+BuildRequires: syslog
+%endif
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires: syslog
%{?perl_default_filter}
@@ -34,8 +42,9 @@ find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
-# Tests require accessible syslog
-%{?_with_check:make test}
+%if %{with test}
+make test
+%endif
%files
%doc Artistic Changes README
@@ -44,6 +53,9 @@ find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
%{_mandir}/man3/*
%changelog
+* Wed Nov 07 2012 Petr Pisar <ppisar(a)redhat.com> - 1.1-13
+- Conditionalize test dependencies
+
* Wed Nov 07 2012 Petr Pisar <ppisar(a)redhat.com> - 1.1-12
- Specify all dependencies
- Do not export private library
11 years, 7 months
[perl-Unix-Syslog] Document reason for disabling tests
by Petr Pisar
commit da5f78dde705b631ff7ce457f9b4281764bffb2d
Author: Petr Písař <ppisar(a)redhat.com>
Date: Wed Nov 7 09:35:29 2012 +0100
Document reason for disabling tests
perl-Unix-Syslog.spec | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/perl-Unix-Syslog.spec b/perl-Unix-Syslog.spec
index 28ce94d..455ee17 100644
--- a/perl-Unix-Syslog.spec
+++ b/perl-Unix-Syslog.spec
@@ -34,6 +34,7 @@ find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
+# Tests require accessible syslog
%{?_with_check:make test}
%files
11 years, 7 months
[perl-Unix-Syslog] Modernize spec file
by Petr Pisar
commit e6d0e82f9f44ac6cdd176e1d813c829c1733c92a
Author: Petr Písař <ppisar(a)redhat.com>
Date: Wed Nov 7 09:34:13 2012 +0100
Modernize spec file
perl-Unix-Syslog.spec | 12 +-----------
1 files changed, 1 insertions(+), 11 deletions(-)
---
diff --git a/perl-Unix-Syslog.spec b/perl-Unix-Syslog.spec
index ee8be54..28ce94d 100644
--- a/perl-Unix-Syslog.spec
+++ b/perl-Unix-Syslog.spec
@@ -6,7 +6,6 @@ License: Artistic 2.0
Group: Development/Libraries
URL: http://search.cpan.org/dist/Unix-Syslog/
Source0: http://www.cpan.org/authors/id/M/MH/MHARNISCH/Unix-Syslog-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: perl(ExtUtils::MakeMaker)
# Run-requires:
BuildRequires: perl(DynaLoader)
@@ -29,24 +28,15 @@ should be able to use this module right away.
make %{?_smp_mflags}
%install
-rm -rf $RPM_BUILD_ROOT
-
-make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
-
+make pure_install DESTDIR=$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/*
%check
%{?_with_check:make test}
-%clean
-rm -rf $RPM_BUILD_ROOT
-
%files
-%defattr(-,root,root,-)
%doc Artistic Changes README
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/Unix*
11 years, 7 months
[perl-Unix-Syslog] Teach rpmlint
by Petr Pisar
commit 5841467c4ed504c4e19da888c6f0927646948d1d
Author: Petr Písař <ppisar(a)redhat.com>
Date: Wed Nov 7 09:33:35 2012 +0100
Teach rpmlint
.rpmlint | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/.rpmlint b/.rpmlint
new file mode 100644
index 0000000..3f3998a
--- /dev/null
+++ b/.rpmlint
@@ -0,0 +1,2 @@
+from Config import *
+addFilter("spelling-error .* (libc|syslogd)");
11 years, 7 months
[perl-Unix-Syslog] Do not export private library
by Petr Pisar
commit 330c92090370839e2e0c92522f93a7a043a7fac3
Author: Petr Písař <ppisar(a)redhat.com>
Date: Wed Nov 7 09:27:22 2012 +0100
Do not export private library
perl-Unix-Syslog.spec | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/perl-Unix-Syslog.spec b/perl-Unix-Syslog.spec
index 883ec71..ee8be54 100644
--- a/perl-Unix-Syslog.spec
+++ b/perl-Unix-Syslog.spec
@@ -13,6 +13,8 @@ BuildRequires: perl(DynaLoader)
BuildRequires: perl(Exporter)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+%{?perl_default_filter}
+
%description
This module provides an interface to the system logger syslogd(8) via
Perl's XSUBs. The implementation attempts to resemble the native libc-
@@ -53,6 +55,7 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Wed Nov 07 2012 Petr Pisar <ppisar(a)redhat.com> - 1.1-12
- Specify all dependencies
+- Do not export private library
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> - 1.1-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
11 years, 7 months
[perl-Unix-Syslog] Specify all dependencies
by Petr Pisar
commit 469858bd79f110f6a1daee028b021e7151cfc01a
Author: Petr Písař <ppisar(a)redhat.com>
Date: Wed Nov 7 09:25:50 2012 +0100
Specify all dependencies
perl-Unix-Syslog.spec | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/perl-Unix-Syslog.spec b/perl-Unix-Syslog.spec
index 75d6279..883ec71 100644
--- a/perl-Unix-Syslog.spec
+++ b/perl-Unix-Syslog.spec
@@ -1,6 +1,6 @@
Name: perl-Unix-Syslog
Version: 1.1
-Release: 11%{?dist}
+Release: 12%{?dist}
Summary: Perl interface to the UNIX syslog(3) calls
License: Artistic 2.0
Group: Development/Libraries
@@ -8,6 +8,9 @@ URL: http://search.cpan.org/dist/Unix-Syslog/
Source0: http://www.cpan.org/authors/id/M/MH/MHARNISCH/Unix-Syslog-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: perl(ExtUtils::MakeMaker)
+# Run-requires:
+BuildRequires: perl(DynaLoader)
+BuildRequires: perl(Exporter)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
@@ -48,6 +51,9 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man3/*
%changelog
+* Wed Nov 07 2012 Petr Pisar <ppisar(a)redhat.com> - 1.1-12
+- Specify all dependencies
+
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> - 1.1-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
11 years, 7 months