/[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 37317 - (show annotations) (download)
Mon Jan 24 14:24:01 2011 UTC (13 years, 2 months ago) by jquelin
File size: 1884 byte(s)
adding missing buildrequires:
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 1
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
21 %description
22 This module is two things. First it is an adaptation of Randal Schwartz's
23 Stonehenge::Reload module that attempts to be a little more intuitive and
24 makes the usage easier. Stonehenge::Reload was written by Randal to make
25 specific modules reload themselves when they changed. Unlike
26 Apache::StatINC, Stonehenge::Reload only checked the change time of modules
27 that registered themselves with Stonehenge::Reload, thus reducing stat()
28 calls. Apache::Reload also offers the exact same functionality as
29 Apache::StatINC, and is thus designed to be a drop-in replacement.
30 Apache::Reload only checks modules that register themselves with
31 Apache::Reload if you explicitly turn off the StatINC emulation method (see
32 below). Like Apache::StatINC, Apache::Reload must be installed as an Init
33 Handler.
34
35 StatINC Replacement
36 To use as a StatINC replacement, simply add the following configuration
37 to your httpd.conf:
38
39 PerlInitHandler Apache::Reload
40
41 %prep
42 %setup -q -n %{upstream_name}-%{upstream_version}
43
44 %build
45 %{__perl} Makefile.PL INSTALLDIRS=vendor
46 %make
47
48 %check
49 export APACHE_TEST_HTTPD=/usr/sbin/httpd
50 make test
51
52 %install
53 rm -rf %buildroot
54 %makeinstall_std
55
56 %clean
57 rm -rf %buildroot
58
59 %files
60 %defattr(-,root,root)
61 %doc Changes LICENSE README META.yml
62 %{_mandir}/man3/*
63 %perl_vendorlib/*

  ViewVC Help
Powered by ViewVC 1.1.30