738d163
Name:		perl-IO-FDPass
7c37280
Version:	1.2
7b10d83
Release:	12%{?dist}
738d163
Summary:	Pass a file descriptor over a socket
738d163
License:	GPL+ or Artistic
983689d
URL:		https://metacpan.org/release/IO-FDPass
7b10d83
Source0:	https://cpan.metacpan.org/modules/by-module/IO/IO-FDPass-%{version}.tar.gz
738d163
# Module Build
738d163
BuildRequires:	coreutils
738d163
BuildRequires:	findutils
738d163
BuildRequires:	gcc
738d163
BuildRequires:	make
738d163
BuildRequires:	perl-devel
738d163
BuildRequires:	perl-generators
7b10d83
BuildRequires:	perl-interpreter
738d163
BuildRequires:	perl(Canary::Stability)
738d163
BuildRequires:	perl(ExtUtils::MakeMaker)
738d163
# Module Runtime
738d163
BuildRequires:	perl(XSLoader)
738d163
# Test Suite
738d163
BuildRequires:	perl(Socket)
738d163
# Dependencies
738d163
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
738d163
Requires:	perl(XSLoader)
738d163
738d163
# Avoid provides from private shared objects
738d163
%{?perl_default_filter}
738d163
738d163
%description
738d163
This small low-level module only has one purpose: pass a file descriptor to
738d163
another process, using a (streaming) UNIX domain socket (on POSIX systems) or
738d163
any (streaming) socket (on WIN32 systems). The ability to pass file descriptors
738d163
on Windows is currently the unique selling point of this module. Have I
738d163
mentioned that it is really small, too?
738d163
738d163
%prep
738d163
%setup -q -n IO-FDPass-%{version}
738d163
738d163
%build
738d163
PERL_CANARY_STABILITY_NOPROMPT=1 perl Makefile.PL \
738d163
	INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
738d163
make %{?_smp_mflags}
738d163
738d163
%install
738d163
make pure_install DESTDIR=%{buildroot}
738d163
find %{buildroot} -type f -name .packlist -delete
738d163
find %{buildroot} -type f -name '*.bs' -empty -delete
7b10d83
%{_fixperms} -c %{buildroot}
738d163
738d163
%check
738d163
make test
738d163
738d163
%files
738d163
%if 0%{?_licensedir:1}
738d163
%license COPYING
738d163
%else
738d163
%doc COPYING
738d163
%endif
738d163
%doc Changes README
738d163
%{perl_vendorarch}/auto/IO/
738d163
%{perl_vendorarch}/IO/
738d163
%{_mandir}/man3/IO::FDPass.3*
738d163
738d163
%changelog
7b10d83
* Sat Sep 28 2019 Paul Howarth <paul@city-fan.org> - 1.2-12
7b10d83
- Use author-independent source URL
7b10d83
7c37280
* Sun Sep 25 2016 Paul Howarth <paul@city-fan.org> - 1.2-1
7c37280
- Update to 1.2
7c37280
  - Compatibility macros were still using C++ syntax, fortunately only
7c37280
    affecting the Solaris platform
7c37280
738d163
* Thu Sep 22 2016 Paul Howarth <paul@city-fan.org> - 1.1-3
738d163
- Incorporate package review feedback (#1378014)
738d163
  - Silence rpmlint warning about capitalization of UNIX in %%description
738d163
  - Quieten interaction with Canary::Stability during build process
738d163
738d163
* Wed Sep 21 2016 Paul Howarth <paul@city-fan.org> - 1.1-2
738d163
- Sanitize for Fedora submission
738d163
738d163
* Sat Sep 10 2016 Paul Howarth <paul@city-fan.org> - 1.1-1
738d163
- Initial RPM build