summaryrefslogtreecommitdiff
path: root/perl-AnyEvent-I3.spec
diff options
context:
space:
mode:
Diffstat (limited to 'perl-AnyEvent-I3.spec')
-rw-r--r--perl-AnyEvent-I3.spec71
1 files changed, 71 insertions, 0 deletions
diff --git a/perl-AnyEvent-I3.spec b/perl-AnyEvent-I3.spec
new file mode 100644
index 0000000..268f4d7
--- /dev/null
+++ b/perl-AnyEvent-I3.spec
@@ -0,0 +1,71 @@
+Name: perl-AnyEvent-I3
+Version: 0.19
+Release: 2
+Summary: Communicate with the i3 window manager
+License: GPL-1.0-or-later OR Artistic-1.0-Perl
+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)
+
+%{?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_build
+
+%install
+make pure_install DESTDIR=%{buildroot}
+%{_fixperms} %{buildroot}/*
+
+%check
+make test
+
+%files
+%doc Changes README
+%{perl_vendorlib}/AnyEvent/I3.pm
+%{_mandir}/man3/*.3*
+
+%changelog
+* Sun Jan 19 2025 Funda Wang <fundawang@yeah.net> - 0.19-2
+- drop useless perl(:MODULE_COMPAT) requirement
+
+* Thu Sep 12 2024 Ge Wang <wang__ge@126.com> - 0.19-1
+- Update to version 0.19
+
+* Wed Sep 14 2022 lichaoran <pkwarcraft@hotmail.com> - 0.17-1
+- init package