File perl-Gtk2-Unique.spec of Package perl-Gtk2-Unique

#
# spec file for package perl-Gtk2-Unique
#
# Copyright (c) 2021 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/
#


%define cpan_name Gtk2-Unique
Name:           perl-Gtk2-Unique
Version:        0.07
Release:        0
Summary:        (DEPRECATED) Use single instance applications
License:        Artistic-1.0 OR GPL-1.0-or-later
URL:            https://metacpan.org/release/%{cpan_name}
Source0:        https://cpan.metacpan.org/authors/id/X/XA/XAOC/%{cpan_name}-%{version}.tar.gz
Source1:        cpanspec.yml
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Gtk2) >= 1.161
Requires:       perl(Gtk2) >= 1.161
%{perl_requires}

%description
*NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE*

This module has been deprecated by the Gtk-Perl project. This means that
the module will no longer be updated with security patches, bug fixes, or
when changes are made in the Perl ABI. The Git repo for this module has
been archived (made read-only), it will no longer possible to submit new
commits to it. You are more than welcome to ask about this module on the
Gtk-Perl mailing list, but our priorities going forward will be maintaining
Gtk-Perl modules that are supported and maintained upstream; this module is
neither.

Since this module is licensed under the LGPL v2.1, you may also fork this
module, if you wish, but you will need to use a different name for it on
CPAN, and the Gtk-Perl team requests that you use your own resources
(mailing list, Git repos, bug trackers, etc.) to maintain your fork going
forward.

  * Perl URL: https://gitlab.gnome.org/GNOME/perl-gtk2-unique

  * Upstream URL: https://gitlab.gnome.org/Archive/unique

  * Last upstream version: 1.1.6

  * Last upstream release date: 2009-11-12

  * Migration path for this module: Gtk3::Application

  * Migration module URL: https://metacpan.org/pod/Gtk3

Gtk2::Unique is a Perl binding for the C library libunique which provides a
way for writing single instance application. If you launch a single
instance application twice, the second instance will either just quit or
will send a message to the running instance.

For more information about libunique see: http://live.gnome.org/LibUnique.

%prep
%autosetup  -n %{cpan_name}-%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%make_build

%check
make test

%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist

%files -f %{name}.files
%doc Changes examples maps README

%changelog
openSUSE Build Service is sponsored by