source: xas-supervisor/trunk/perl-XAS-Supervisor.spec @ 6b8f06066239d5c2a2858da48efa71656ebdbfec

Revision 6b8f06066239d5c2a2858da48efa71656ebdbfec, 2.2 KB checked in by Kevin L. Esteb <kevin@…>, 3 years ago (diff)

updating documentation

  • Property mode set to 100644
Line 
1Name:           perl-XAS-Supervisor
2Version:        0.01
3Release:        1%{?dist}
4Summary:        A set of processes to manage spool files
5License:        Artistic 2.0
6Group:          Development/Libraries
7URL:            http://scm.kesteb.us/git/XAS-Supervisor/trunk/
8Source0:        XAS-Supervisor-%{version}.tar.gz
9BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
10BuildArch:      noarch
11BuildRequires:  perl(Module::Build)
12BuildRequires:  perl(Test::More)
13Requires:       perl(XAS) >= 0.12
14Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
15
16%define _initd      %{_sysconfdir}/rc.d/init.d
17%define _sysconfig  %{_sysconfdir}/sysconfig
18%define _logrotated %{_sysconfdir}/logrotate.d
19%define _profiled   %{_sysconfdir}/profile.d
20%define _xasconf    %{_sysconfdir}/xas
21
22%if 0%{?rhel} == 6
23%define _mandir /usr/local/share/man
24%{?filter_setup: %{?perl_default_filter} }
25%filter_from_requires /Win32/d
26%filter_from_provides /Win32/d
27%filter_setup
28%endif
29
30%description
31A supervisor to manage background processes
32
33%prep
34%setup -q -n XAS-Supervisor-%{version}
35
36%if 0%{?rhel} == 5
37cat << \EOF > %{name}-prov
38#!/bin/sh
39%{__perl_provides} $* | sed -e '/Win32/d'
40EOF
41%global __perl_provides %{_builddir}/XAS-Supervisor-%{version}/%{name}-prov
42chmod +x %{__perl_provides}
43cat << \EOF > %{name}-req
44#!/bin/sh
45%{__perl_requires} $* | sed -e '/Win32/d'
46EOF
47%global __perl_requires %{_builddir}/XAS-Supervisor-%{version}/%{name}-req
48chmod +x %{__perl_requires}
49%endif
50
51%build
52%{__perl} Build.PL --installdirs vendor
53./Build
54
55%install
56rm -rf $RPM_BUILD_ROOT
57
58./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
59./Build redhat destdir=$RPM_BUILD_ROOT
60
61find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
62%{_fixperms} $RPM_BUILD_ROOT/*
63
64%check
65./Build test
66
67%clean
68rm -rf $RPM_BUILD_ROOT
69
70%files
71%defattr(-,root,root,-)
72%doc Changes README perl-Supervisor.spec
73%{perl_vendorlib}/*
74%config(noreplace) %{_sysconfig}/xas-supervisor
75%config(noreplace) %{_logrotated}/xas-supervisor
76%config(noreplace) %{_initd}/xas-supervisor
77%config(noreplace) %{_xasconf}/xas-supervisor.ini
78%{_mandir}/*
79%{_sbindir}/*
80%{_bindir}/*
81
82%changelog
83* Tue Mar 18 2014 "kesteb <kevin@kesteb.us>" 0.01-1
84- Created for the v0.01 release.
Note: See TracBrowser for help on using the repository browser.