Package clean-up
- Hide package declaration for JSON::PP::Boolean from rpm to avoid need for provides filtering - Classify buildreqs by usage - Use %license where possible
This commit is contained in:
parent
51c90d9390
commit
e7b9601185
12
Types-Serialiser-1.0-provides.patch
Normal file
12
Types-Serialiser-1.0-provides.patch
Normal file
@ -0,0 +1,12 @@
|
||||
--- Serialiser.pm
|
||||
+++ Serialiser.pm
|
||||
@@ -102,7 +102,8 @@ Returns false iff C<$value> is C<$Types:
|
||||
BEGIN {
|
||||
# for historical reasons, and to avoid extra dependencies in JSON::PP,
|
||||
# we alias *Types::Serialiser::Boolean with JSON::PP::Boolean.
|
||||
- package JSON::PP::Boolean;
|
||||
+ package # hide from rpm
|
||||
+ JSON::PP::Boolean;
|
||||
|
||||
*Types::Serialiser::Boolean:: = *JSON::PP::Boolean::;
|
||||
}
|
@ -1,23 +1,30 @@
|
||||
Name: perl-Types-Serialiser
|
||||
Summary: Simple data types for common serialization formats
|
||||
Version: 1.0
|
||||
Release: 5%{?dist}
|
||||
Release: 6%{?dist}
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries
|
||||
URL: http://search.cpan.org/dist/Types-Serialiser/
|
||||
Source0: http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/Types-Serialiser-%{version}.tar.gz
|
||||
Patch0: Types-Serialiser-1.0-provides.patch
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
|
||||
# Module Build
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: findutils
|
||||
BuildRequires: make
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
# Module Runtime
|
||||
BuildRequires: perl(Carp)
|
||||
BuildRequires: perl(common::sense)
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(overload)
|
||||
# Test Suite
|
||||
# (no dependencies)
|
||||
# Runtime
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
Requires: perl(Carp)
|
||||
|
||||
# Filter bogus provide of JSON::PP::Boolean (for rpm ≥ 4.9)
|
||||
%global __provides_exclude ^perl\\(JSON::PP::Boolean\\)
|
||||
|
||||
%description
|
||||
This module provides some extra data types that are used by common
|
||||
serialization formats such as JSON or CBOR. The idea is to have a repository of
|
||||
@ -27,9 +34,8 @@ implementations so they become interoperable between each other.
|
||||
%prep
|
||||
%setup -q -n Types-Serialiser-%{version}
|
||||
|
||||
# Filter bogus provide of JSON::PP::Boolean (for rpm < 4.9)
|
||||
%global provfilt /bin/sh -c "%{__perl_provides} | grep -v '^perl(JSON::PP::Boolean)'"
|
||||
%define __perl_provides %{provfilt}
|
||||
# Hide package declaration of JSON::PP::Boolean from rpm
|
||||
%patch0
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
@ -48,12 +54,23 @@ make test
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%doc Changes COPYING README
|
||||
%if 0%{?_licensedir:1}
|
||||
%license COPYING
|
||||
%else
|
||||
%doc COPYING
|
||||
%endif
|
||||
%doc Changes README
|
||||
%{perl_vendorlib}/Types/
|
||||
%{_mandir}/man3/Types::Serialiser.3pm*
|
||||
%{_mandir}/man3/Types::Serialiser::Error.3pm*
|
||||
%{_mandir}/man3/Types::Serialiser.3*
|
||||
%{_mandir}/man3/Types::Serialiser::Error.3*
|
||||
|
||||
%changelog
|
||||
* Wed Jan 6 2016 Paul Howarth <paul@city-fan.org> - 1.0-6
|
||||
- Hide package declaration for JSON::PP::Boolean from rpm to avoid need for
|
||||
provides filtering
|
||||
- Classify buildreqs by usage
|
||||
- Use %%license where possible
|
||||
|
||||
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user