# # spec file for package perl-Gtk2-Notify # # Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: perl-Gtk2-Notify Version: 0.05 Release: 0 %define cpan_name Gtk2-Notify Summary: Perl interface to libnotify License: LGPL-2.1-or-later Group: Development/Libraries/Perl URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/F/FL/FLORA/%{cpan_name}-%{version}.tar.gz Source1: cpanspec.yml Source100: README.md Patch0: Gtk2-Notify-libnotify-0.7.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(ExtUtils::Depends) BuildRequires: perl(ExtUtils::PkgConfig) BuildRequires: perl(Glib::MakeHelper) BuildRequires: perl(Gtk2) BuildRequires: perl(Gtk2::CodeGen) Requires: perl(Gtk2) %{perl_requires} # MANUAL BEGIN BuildRequires: cairo-devel BuildRequires: gtk2-devel BuildRequires: libnotify-devel BuildRequires: pango-devel BuildRequires: perl(Test::Exception) BuildRequires: perl(Test::Pod) # MANUAL END %description Perl interface to libnotify %prep %autosetup -n %{cpan_name}-%{version} -p0 %build PERL_USE_UNSAFE_INC=1 perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" make %{?_smp_mflags} %check # tests fail - unable to open display # make test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %files -f %{name}.files %defattr(-,root,root,755) %doc Changes examples maps README %changelog