/[packages]/cauldron/perl-Apache-Reload/current/SPECS/perl-Apache-Reload.spec
ViewVC logotype

Contents of /cauldron/perl-Apache-Reload/current/SPECS/perl-Apache-Reload.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 37519 - (show annotations) (download)
Mon Jan 24 15:44:55 2011 UTC (13 years, 2 months ago) by jquelin
File size: 1883 byte(s)
no need to remove the requires:, now provided by apache-mod_perl
1 %define upstream_name Apache-Reload
2 %define upstream_version 0.11
3
4 Name: perl-%{upstream_name}
5 Version: %perl_convert_version %{upstream_version}
6 Release: %mkrel 2
7
8 Summary: Reload Perl Modules when Changed on Disk
9 License: GPL+ or Artistic
10 Group: Development/Perl
11 Url: http://search.cpan.org/dist/%{upstream_name}
12 Source0: http://www.cpan.org/modules/by-module/Apache2/%{upstream_name}-%{upstream_version}.tar.gz
13
14 BuildRequires: apache-mod_perl >= 2.04
15 BuildRequires: apache-devel
16 BuildRequires: perl(Apache::TestConfig)
17
18 BuildArch: noarch
19
20 %description
21 This module is two things. First it is an adaptation of Randal Schwartz's
22 Stonehenge::Reload module that attempts to be a little more intuitive and
23 makes the usage easier. Stonehenge::Reload was written by Randal to make
24 specific modules reload themselves when they changed. Unlike
25 Apache::StatINC, Stonehenge::Reload only checked the change time of modules
26 that registered themselves with Stonehenge::Reload, thus reducing stat()
27 calls. Apache::Reload also offers the exact same functionality as
28 Apache::StatINC, and is thus designed to be a drop-in replacement.
29 Apache::Reload only checks modules that register themselves with
30 Apache::Reload if you explicitly turn off the StatINC emulation method (see
31 below). Like Apache::StatINC, Apache::Reload must be installed as an Init
32 Handler.
33
34 StatINC Replacement
35 To use as a StatINC replacement, simply add the following configuration
36 to your httpd.conf:
37
38 PerlInitHandler Apache::Reload
39
40 %prep
41 %setup -q -n %{upstream_name}-%{upstream_version}
42
43 %build
44 %{__perl} Makefile.PL INSTALLDIRS=vendor
45 %make
46
47 %check
48 export APACHE_TEST_HTTPD=/usr/sbin/httpd
49 make test
50
51 %install
52 rm -rf %buildroot
53 %makeinstall_std
54
55 %clean
56 rm -rf %buildroot
57
58 %files
59 %defattr(-,root,root)
60 %doc Changes LICENSE README META.yml
61 %{_mandir}/man3/*
62 %perl_vendorlib/*

  ViewVC Help
Powered by ViewVC 1.1.30