%global use_x11_tests 1 Name: perl-Gtk2-Notify Version: 0.05 Release: 47%{?dist} Summary: Perl interface to libnotify License: LGPLv2+ URL: https://metacpan.org/release/Gtk2-Notify Source0: https://cpan.metacpan.org/authors/id/F/FL/FLORA/Gtk2-Notify-%{version}.tar.gz Patch0: libnotify.patch BuildRequires: coreutils BuildRequires: findutils BuildRequires: gcc # gtk2-devel needed for from perl-Gtk2 BuildRequires: gtk2-devel BuildRequires: libnotify-devel BuildRequires: make BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(base) BuildRequires: perl(ExtUtils::Depends) BuildRequires: perl(ExtUtils::PkgConfig) BuildRequires: perl(File::Spec::Functions) BuildRequires: perl(Glib::MakeHelper) BuildRequires: perl(Gtk2::CodeGen) BuildRequires: perl(inc::Module::Install) BuildRequires: perl(lib) BuildRequires: perl(strict) BuildRequires: perl(warnings) # Run-time: BuildRequires: perl(Carp) BuildRequires: perl(DynaLoader) BuildRequires: perl(Gtk2) # Tests: BuildRequires: perl(Glib) >= 1.093 BuildRequires: perl(Gtk2::TestHelper) BuildRequires: perl(Test::Exception) BuildRequires: perl(Test::More) # Optional tests: BuildRequires: perl(Test::Pod) >= 1.14 %if %{use_x11_tests} # X11 tests: # Some tests invoke glib functions which try dbus-launch. Without # dbus-launch, an warning is emmitted which causes Test::Exception to raise an # error. BuildRequires: dbus-x11 # And the dbus is used to talk to org.freedesktop.Notifications server which # can be requested by desktop-notification-daemon RPM symbol. However it can # pull whole Gnome or KDE. So we use mimalistic `dunst' instead. BuildRequires: dunst BuildRequires: font(:lang=en) BuildRequires: xorg-x11-server-Xvfb BuildRequires: xorg-x11-xinit %endif Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(Carp) %description Perl bindings to libnotify. This module will allow one to use the notify functionality from within a perl application. %prep %setup -q -n Gtk2-Notify-%{version} %patch0 -p1 # Remove bundled module rm -r ./inc/* sed -i -e '/^inc\//d' MANIFEST %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="%{optflags}" make %{?_smp_mflags} %install make pure_install DESTDIR=%{buildroot} find %{buildroot} -type f -name '*.bs' -size 0 -delete %{_fixperms} %{buildroot}/* %check # tests mostly bomb under mock, unfortunately %if %{use_x11_tests} xvfb-run -a make test %else make test %endif %files %doc Changes examples README %{perl_vendorarch}/auto/* %{perl_vendorarch}/Gtk2* %{_mandir}/man3/* %changelog * Fri Jul 22 2022 Fedora Release Engineering - 0.05-47 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jun 01 2022 Jitka Plesnikova - 0.05-46 - Perl 5.36 rebuild * Fri Jan 21 2022 Fedora Release Engineering - 0.05-45 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 0.05-44 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Sun May 23 2021 Jitka Plesnikova - 0.05-43 - Perl 5.34 rebuild * Wed Jan 27 2021 Fedora Release Engineering - 0.05-42 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 0.05-41 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jun 23 2020 Jitka Plesnikova - 0.05-40 - Perl 5.32 rebuild * Thu Jan 30 2020 Fedora Release Engineering - 0.05-39 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 0.05-38 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri May 31 2019 Jitka Plesnikova - 0.05-37 - Perl 5.30 rebuild * Fri Feb 01 2019 Fedora Release Engineering - 0.05-36 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 0.05-35 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Sat Jun 30 2018 Jitka Plesnikova - 0.05-34 - Perl 5.28 rebuild * Tue Mar 06 2018 Petr Pisar - 0.05-33 - Modernize spec file * Thu Feb 08 2018 Fedora Release Engineering - 0.05-32 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 0.05-31 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.05-30 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Wed Jun 07 2017 Jitka Plesnikova - 0.05-29 - Perl 5.26 rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.05-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon May 16 2016 Jitka Plesnikova - 0.05-27 - Perl 5.24 rebuild * Thu Feb 04 2016 Fedora Release Engineering - 0.05-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 0.05-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Jun 08 2015 Jitka Plesnikova - 0.05-24 - Perl 5.22 rebuild * Mon Sep 01 2014 Jitka Plesnikova - 0.05-23 - Perl 5.20 rebuild * Wed Aug 20 2014 Petr Pisar - 0.05-22 - Modernize spec file - Enable X11 tests * Sun Aug 17 2014 Fedora Release Engineering - 0.05-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.05-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Fedora Release Engineering - 0.05-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Mon Jul 22 2013 Petr Pisar - 0.05-18 - Perl 5.18 rebuild * Thu Feb 14 2013 Fedora Release Engineering - 0.05-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Jul 20 2012 Fedora Release Engineering - 0.05-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Thu Jun 14 2012 Petr Pisar - 0.05-15 - Perl 5.16 rebuild * Fri Jan 13 2012 Fedora Release Engineering - 0.05-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Nov 09 2011 Iain Arnell 0.05-13 - Rebuild for libpng 1.5 * Tue Jun 21 2011 Marcela Mašláňová - 0.05-12 - Perl mass rebuild * Fri Apr 15 2011 Iain Arnell 0.05-11 - fix libnotify patch for notify_notification_new and update to remove obsolete methods - explicitly set DISPLAY for conditional tests * Tue Feb 08 2011 Fedora Release Engineering - 0.05-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Fri Nov 5 2010 Marcela Mašláňová - 0.05-9 - fix function according to new libnotify * Sun May 02 2010 Marcela Maslanova - 0.05-8 - Mass rebuild with perl-5.12.0 * Mon Dec 7 2009 Stepan Kasal - 0.05-7 - rebuild against perl 5.10.1 * Tue Aug 04 2009 Ralf Corsépius - 0.05-6 - Fix mass rebuild breakdown: Add BR: perl(Glib::MakeHelper). * Sat Jul 25 2009 Fedora Release Engineering - 0.05-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Sat Feb 28 2009 Chris Weyl - 0.05-4 - Stripping bad provides of private Perl extension libs * Thu Feb 26 2009 Fedora Release Engineering - 0.05-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Thu Feb 26 2009 Fedora Release Engineering - 0.05-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sun Jan 25 2009 Chris Weyl 0.05-1 - update to 0.05 * Thu Mar 06 2008 Tom "spot" Callaway - 0.04-3 Rebuild for new perl * Mon Feb 18 2008 Fedora Release Engineering - 0.04-2 - Autorebuild for GCC 4.3 * Mon Nov 05 2007 Chris Weyl 0.04-1 - update to 0.04 * Tue Aug 21 2007 Chris Weyl 0.03-2 - bump * Thu May 31 2007 Chris Weyl 0.03-1 - update to 0.03 - add t/ to doc - spec updates to deal with the once and future perl split * Mon Nov 27 2006 Chris Weyl 0.02-4 - bump * Mon Nov 27 2006 Chris Weyl - change source0 to pull from an alternate CPAN location * Wed Nov 22 2006 Chris Weyl 0.02-2 - conditionalize tests as they tend to die horribly under mock * Wed Nov 22 2006 Chris Weyl 0.02-1 - Specfile autogenerated by cpanspec 1.69.1.