From 632c46aaf7e2ab6636b79d7924543608f6bb9fc9 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Sat, 18 Mar 2023 11:14:30 +0000 Subject: automatic import of perl-AnyEvent-I3 --- .gitignore | 1 + perl-AnyEvent-I3.spec | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 69 insertions(+) create mode 100644 perl-AnyEvent-I3.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..910e4e0 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/AnyEvent-I3-0.17.tar.gz diff --git a/perl-AnyEvent-I3.spec b/perl-AnyEvent-I3.spec new file mode 100644 index 0000000..ce54d4c --- /dev/null +++ b/perl-AnyEvent-I3.spec @@ -0,0 +1,67 @@ +Name: perl-AnyEvent-I3 +Version: 0.17 +Release: 1 +Summary: Communicate with the i3 window manager +License: GPL+ or Artistic +URL: https://metacpan.org/pod/AnyEvent::I3 +Source0: https://cpan.metacpan.org/authors/id/M/MS/MSTPLBG/AnyEvent-I3-%{version}.tar.gz +BuildArch: noarch +# Build +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: make +BuildRequires: perl-interpreter +BuildRequires: perl-generators +BuildRequires: perl(lib) +BuildRequires: perl(inc::Module::Install) +BuildRequires: perl(Module::Install::Metadata) +BuildRequires: perl(Module::Install::WriteAll) +BuildRequires: sed +# Run-time +BuildRequires: perl(AnyEvent) +BuildRequires: perl(AnyEvent::Handle) +BuildRequires: perl(AnyEvent::Socket) +BuildRequires: perl(base) +BuildRequires: perl(constant) +BuildRequires: perl(Encode) +BuildRequires: perl(Exporter) +BuildRequires: perl(JSON::XS) +BuildRequires: perl(Scalar::Util) +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Tests +BuildRequires: perl(Test::More) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + +%{?perl_default_filter} + +%description +This module connects to the i3 window manager using the UNIX socket based +IPC interface it provides (if enabled in the configuration file). You can +then subscribe to events or send messages and receive their replies. + +%prep +%setup -qn AnyEvent-I3-%{version} +rm -rf inc +sed -i -e '/^inc\//d' MANIFEST + +%build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=%{buildroot} +find %{buildroot} -type f -name .packlist -delete +%{_fixperms} %{buildroot}/* + +%check +make test + +%files +%doc Changes README +%{perl_vendorlib}/AnyEvent/I3.pm +%{_mandir}/man3/*.3* + +%changelog +* Wed Sep 14 2022 lichaoran - 0.17-1 +- init package diff --git a/sources b/sources new file mode 100644 index 0000000..8e86b5d --- /dev/null +++ b/sources @@ -0,0 +1 @@ +907b6ed7fe6bea5914b878cdd73aba3f AnyEvent-I3-0.17.tar.gz -- cgit v1.2.3