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

  ViewVC Help
Powered by ViewVC 1.1.30