summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-03-18 11:14:30 +0000
committerCoprDistGit <infra@openeuler.org>2023-03-18 11:14:30 +0000
commit632c46aaf7e2ab6636b79d7924543608f6bb9fc9 (patch)
treeb20f94255160abef1a98135eb325c97d082fd9ea
parenta07be065bd253820e962544261f322854bbd303f (diff)
automatic import of perl-AnyEvent-I3openeuler22.09
-rw-r--r--.gitignore1
-rw-r--r--perl-AnyEvent-I3.spec67
-rw-r--r--sources1
3 files changed, 69 insertions, 0 deletions
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 <pkwarcraft@hotmail.com> - 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