96 lines
3.1 KiB
RPMSpec
96 lines
3.1 KiB
RPMSpec
|
|
#
|
||
|
|
# spec file for package perl-Config-Model-TkUI
|
||
|
|
#
|
||
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||
|
|
#
|
||
|
|
# 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 http://bugs.opensuse.org/
|
||
|
|
#
|
||
|
|
|
||
|
|
|
||
|
|
Name: perl-Config-Model-TkUI
|
||
|
|
Version: 1.340
|
||
|
|
Release: 0
|
||
|
|
%define cpan_name Config-Model-TkUI
|
||
|
|
Summary: Tk GUI to edit config data through Config::Model
|
||
|
|
License: LGPL-2.0+
|
||
|
|
Group: Development/Libraries/Perl
|
||
|
|
Url: http://search.cpan.org/dist/Config-Model-TkUI/
|
||
|
|
#Source: http://www.cpan.org/authors/id/D/DD/DDUMONT/Config-Model-TkUI-%%{version}.tar.gz
|
||
|
|
Source0: %{cpan_name}-%{version}.tar.gz
|
||
|
|
BuildRequires: perl
|
||
|
|
BuildRequires: perl-macros
|
||
|
|
BuildRequires: perl(AnyEvent)
|
||
|
|
BuildRequires: perl(Config::Model) >= 2.030
|
||
|
|
BuildRequires: perl(Exception::Class)
|
||
|
|
BuildRequires: perl(File::Slurp)
|
||
|
|
BuildRequires: perl(Log::Log4perl) >= 1.11
|
||
|
|
BuildRequires: perl(Module::Build)
|
||
|
|
BuildRequires: perl(Pod::POM)
|
||
|
|
BuildRequires: perl(Test::Memory::Cycle)
|
||
|
|
BuildRequires: perl(Test::Pod)
|
||
|
|
BuildRequires: perl(Test::Warn) >= 0.11
|
||
|
|
BuildRequires: perl(Tk)
|
||
|
|
BuildRequires: perl(Tk::DirSelect)
|
||
|
|
BuildRequires: perl(Tk::ObjScanner)
|
||
|
|
BuildRequires: perl(Tk::Pod)
|
||
|
|
BuildRequires: perl(Tk::Tree)
|
||
|
|
BuildRequires: perl(Try::Tiny)
|
||
|
|
Requires: perl(Config::Model) >= 2.030
|
||
|
|
Requires: perl(Exception::Class)
|
||
|
|
Requires: perl(File::Slurp)
|
||
|
|
Requires: perl(Log::Log4perl) >= 1.11
|
||
|
|
Requires: perl(Pod::POM)
|
||
|
|
Requires: perl(Tk)
|
||
|
|
Requires: perl(Tk::DirSelect)
|
||
|
|
Requires: perl(Tk::ObjScanner)
|
||
|
|
Requires: perl(Tk::Pod)
|
||
|
|
Requires: perl(Tk::Tree)
|
||
|
|
Requires: perl(Try::Tiny)
|
||
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
|
BuildArch: noarch
|
||
|
|
%{perl_requires}
|
||
|
|
|
||
|
|
%description
|
||
|
|
This class provides a GUI for the Config::Model manpage.
|
||
|
|
|
||
|
|
With this class, the Config::Model manpage and an actual configuration
|
||
|
|
model (like the Config::Model::Xorg manpage), you get a tool to edit
|
||
|
|
configuration files (e.g. '/etc/X11/xorg.conf').
|
||
|
|
|
||
|
|
Be default, only items with 'beginner' experience are shown. You can change
|
||
|
|
the 'experience' level in 'Options -> experience' menu.
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%setup -q -n %{cpan_name}-%{version}
|
||
|
|
|
||
|
|
%build
|
||
|
|
%{__perl} Build.PL installdirs=vendor
|
||
|
|
./Build build flags=%{?_smp_mflags}
|
||
|
|
|
||
|
|
%check
|
||
|
|
# skip the test requiring a Display to be set
|
||
|
|
rm t/config-model-ui.t
|
||
|
|
./Build test
|
||
|
|
|
||
|
|
%install
|
||
|
|
./Build install destdir=%{buildroot} create_packlist=0
|
||
|
|
%perl_gen_filelist
|
||
|
|
|
||
|
|
%clean
|
||
|
|
%{__rm} -rf %{buildroot}
|
||
|
|
|
||
|
|
%files -f %{name}.files
|
||
|
|
%defattr(-,root,root)
|
||
|
|
%doc Changes examples LICENSE README
|
||
|
|
|
||
|
|
%changelog
|