2014-02-01 13:37:01 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Tk-DirSelect
|
|
|
|
#
|
2024-08-04 18:17:45 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2014-02-01 13:37:01 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2024-08-04 18:17:45 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-02-01 13:37:01 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2024-08-04 18:17:45 +00:00
|
|
|
%define cpan_name Tk-DirSelect
|
2014-02-01 13:37:01 +00:00
|
|
|
Name: perl-Tk-DirSelect
|
2024-08-04 18:17:45 +00:00
|
|
|
Version: 1.120.0
|
2014-02-01 13:37:01 +00:00
|
|
|
Release: 0
|
2024-08-04 18:17:45 +00:00
|
|
|
# 1.12 -> normalize -> 1.120.0
|
|
|
|
%define cpan_version 1.12
|
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2014-02-01 13:37:01 +00:00
|
|
|
Summary: Cross-platform directory selection widget
|
2024-08-04 18:17:45 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
|
|
Source0: https://cpan.metacpan.org/authors/id/M/MJ/MJCARMAN/%{cpan_name}-%{cpan_version}.tar.gz
|
2025-08-12 18:18:15 +02:00
|
|
|
Source100: README.md
|
2024-08-04 18:17:45 +00:00
|
|
|
BuildArch: noarch
|
2014-02-01 13:37:01 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2024-08-04 18:17:45 +00:00
|
|
|
BuildRequires: perl(Module::Build) >= 0.36
|
2014-02-01 13:37:01 +00:00
|
|
|
BuildRequires: perl(Tk)
|
|
|
|
Requires: perl(Tk)
|
2024-08-04 18:17:45 +00:00
|
|
|
Provides: perl(Tk::DirSelect) = %{version}
|
|
|
|
%undefine __perllib_provides
|
2014-02-01 13:37:01 +00:00
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
|
|
|
This module provides a cross-platform directory selection widget. For
|
|
|
|
systems running Microsoft Windows, this includes selection of local and
|
|
|
|
mapped network drives. A context menu (right-click or <Button3>) allows the
|
|
|
|
creation, renaming, and deletion of directories while browsing.
|
|
|
|
|
|
|
|
Note: Perl/Tk 804 added the 'chooseDirectory' method which uses native
|
|
|
|
system dialogs where available. (i.e. Windows) If you want a native feel
|
|
|
|
for your program, you probably want to use that method instead -- possibly
|
|
|
|
using this module as a fallback for systems with older versions of Tk
|
|
|
|
installed.
|
|
|
|
|
|
|
|
%prep
|
2024-08-04 18:17:45 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
2014-02-01 13:37:01 +00:00
|
|
|
|
|
|
|
%build
|
2024-08-04 18:17:45 +00:00
|
|
|
perl Build.PL --installdirs=vendor
|
|
|
|
./Build build --flags=%{?_smp_mflags}
|
2014-02-01 13:37:01 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
./Build test
|
|
|
|
|
|
|
|
%install
|
2024-08-04 18:17:45 +00:00
|
|
|
./Build install --destdir=%{buildroot} --create_packlist=0
|
2014-02-01 13:37:01 +00:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
%doc Changes README
|
|
|
|
|
|
|
|
%changelog
|