8
0
Pascal Bleser
2012-04-15 22:21:29 +00:00
committed by Git OBS Bridge
parent 73ab865e86
commit 0ece1e0f34
5 changed files with 61 additions and 30 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2e1ada77b0faede18cb762d1c752eb2174a719f025cf92e8c2c089ef0a553e8c
size 11405

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a3771a57850587ed05d19b4c5b9a9fba64b8deec6afc5073294a9d6f8200038a
size 14116

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:febc92ce5ac235d22a1544b8cd94cc33970e9abef4409515e0260306be2ed0d6
size 14146

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Apr 15 22:21:08 UTC 2012 - pascal.bleser@opensuse.org
- update to 0.82 and spec rewrite (ancien stuff from 2009)
-------------------------------------------------------------------
Wed Dec 1 13:31:23 UTC 2010 - coolo@novell.com

View File

@@ -1,7 +1,9 @@
# vim: set sw=4 ts=4 et nu:
#
# spec file for package perl-Daemon-Generic
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -15,47 +17,74 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
# Please submit bugfixes or comments via http://bugs.opensuse.org/
Name: perl-Daemon-Generic
%define cpan_name Daemon-Generic
Summary: Daemon::Generic - framework to provide start/stop/reload for a daemon
Version: 0.61
Release: 1
License: Artistic License
Group: Development/Languages/Perl
Url: http://search.cpan.org/dist/Bot-BasicBot/
Source: %{cpan_name}-%{version}.tar.bz2
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
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl
BuildRequires: make
BuildRequires: perl-macros
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
%description
Daemon::Generic - framework to provide start/stop/reload for a daemon
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.
%prep
%setup -q -n %{cpan_name}-%{version}
%setup -q -n "Daemon-Generic-%{version}"
%__sed -i '/^auto_install/d' Makefile.PL
%build
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
%{__make}
%check
%{__make} test
%__perl Makefile.PL PREFIX="%{_prefix}"
%__make %{?_smp_flags}
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%check
%__make test
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%{?buildroot:%__rm -rf "%{buildroot}"}
%files -f %{name}.files
# normally you only need to check for doc files
%files
%defattr(-,root,root)
%doc CHANGELOG README
%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}
%changelog