2012-04-15 22:21:29 +00:00
|
|
|
# vim: set sw=4 ts=4 et nu:
|
2009-11-06 23:22:24 +00:00
|
|
|
#
|
2011-11-17 14:04:02 +00:00
|
|
|
# spec file for package perl-Daemon-Generic
|
2009-11-06 23:22:24 +00:00
|
|
|
#
|
2012-04-15 22:21:29 +00:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
|
# Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
|
2009-11-06 23:22:24 +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.
|
|
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2012-04-15 22:21:29 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2009-11-06 23:22:24 +00:00
|
|
|
|
|
|
|
|
Name: perl-Daemon-Generic
|
2012-04-15 22:21:29 +00:00
|
|
|
Version: 0.82
|
|
|
|
|
Release: 0
|
|
|
|
|
Summary: Framework to provide start/stop/reload for a daemon
|
|
|
|
|
License: GPL-2.0+ or Artistic-1.0
|
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
|
Source: http://search.cpan.org/CPAN/authors/id/M/MU/MUIR/modules/Daemon-Generic-%{version}.tar.gz
|
|
|
|
|
Url: http://search.cpan.org/dist/Daemon-Generic
|
2009-11-06 23:22:24 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-12-03 13:59:56 +00:00
|
|
|
%{perl_requires}
|
2012-04-15 22:21:29 +00:00
|
|
|
BuildRequires: make
|
2009-11-06 23:22:24 +00:00
|
|
|
BuildRequires: perl-macros
|
2012-04-15 22:21:29 +00:00
|
|
|
BuildRequires: perl(AnyEvent)
|
|
|
|
|
BuildRequires: perl(Cwd)
|
|
|
|
|
BuildRequires: perl(Eval::LineNumbers)
|
|
|
|
|
BuildRequires: perl(Event)
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
|
BuildRequires: perl(File::Basename)
|
|
|
|
|
BuildRequires: perl(File::Flock)
|
|
|
|
|
BuildRequires: perl(File::Slurp)
|
|
|
|
|
BuildRequires: perl(Getopt::Long)
|
|
|
|
|
BuildRequires: perl(Text::Wrap)
|
|
|
|
|
BuildRequires: perl(Time::HiRes)
|
|
|
|
|
Requires: perl(Cwd)
|
|
|
|
|
Requires: perl(File::Basename)
|
|
|
|
|
Requires: perl(File::Flock)
|
|
|
|
|
Requires: perl(File::Slurp)
|
|
|
|
|
Requires: perl(Getopt::Long)
|
|
|
|
|
Requires: perl(Text::Wrap)
|
|
|
|
|
%if 0%{?suse_version} >= 1120
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%endif
|
2009-11-06 23:22:24 +00:00
|
|
|
|
|
|
|
|
%description
|
2012-04-15 22:21:29 +00:00
|
|
|
Daemon::Generic provides a framework for starting, stopping, reconfiguring
|
|
|
|
|
daemon-like programs. The framework provides for standard commands that
|
|
|
|
|
work for as init.d files and as apachectl-like commands.
|
2009-11-06 23:22:24 +00:00
|
|
|
|
|
|
|
|
%prep
|
2012-04-15 22:21:29 +00:00
|
|
|
%setup -q -n "Daemon-Generic-%{version}"
|
|
|
|
|
%__sed -i '/^auto_install/d' Makefile.PL
|
2009-11-06 23:22:24 +00:00
|
|
|
|
|
|
|
|
%build
|
2012-04-15 22:21:29 +00:00
|
|
|
%__perl Makefile.PL PREFIX="%{_prefix}"
|
|
|
|
|
%__make %{?_smp_flags}
|
2009-11-06 23:22:24 +00:00
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%perl_make_install
|
|
|
|
|
%perl_process_packlist
|
|
|
|
|
|
2012-04-15 22:21:29 +00:00
|
|
|
%check
|
|
|
|
|
%__make test
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
2009-11-06 23:22:24 +00:00
|
|
|
|
2012-04-15 22:21:29 +00:00
|
|
|
%files
|
2009-11-06 23:22:24 +00:00
|
|
|
%defattr(-,root,root)
|
2012-04-15 22:21:29 +00:00
|
|
|
%doc README CHANGELOG
|
|
|
|
|
%dir %{perl_vendorlib}/Daemon
|
|
|
|
|
%{perl_vendorlib}/Daemon/Generic.pm
|
|
|
|
|
%doc %{perl_vendorlib}/Daemon/Generic.pod
|
|
|
|
|
%dir %{perl_vendorlib}/Daemon/Generic
|
|
|
|
|
%{perl_vendorlib}/Daemon/Generic/*.pm
|
|
|
|
|
%doc %{perl_man3dir}/Daemon::Generic.%{perl_man3ext}%{ext_man}
|
|
|
|
|
%doc %{perl_man3dir}/Daemon::Generic::*.%{perl_man3ext}%{ext_man}
|
2009-11-06 23:22:24 +00:00
|
|
|
|
|
|
|
|
%changelog
|