source: xas-spooler/trunk/perl-XAS-Spooler.spec @ 9609b1e63bd1b06e1578e70f7a491ed18c8e7eee

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

fixed a typo

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