]> git.pld-linux.org Git - SPECS.git/blob - perl-RT-Extension-ExternalStorage.spec
SPECS updated Sun 1 Aug 20:13:02 CEST 2021
[SPECS.git] / perl-RT-Extension-ExternalStorage.spec
1 # TODO:
2 # - get rid of BR rt requirement
3 #
4 # Conditional build:
5 %bcond_without  tests           # do not perform "make test"
6 #
7 %define         pdir    RT
8 %define         pnam    Extension-ExternalStorage
9 Summary:        RT::Extension::ExternalStorage - Store attachments outside the database
10 Name:           perl-RT-Extension-ExternalStorage
11 Version:        0.60
12 Release:        2
13 License:        GPL
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/RT/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  5a4bbde7b2aef2115da38ef682312ed3
17 URL:            http://search.cpan.org/dist/RT-Extension-ExternalStorage/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 BuildRequires:  rt
21 %if %{with tests}
22 %endif
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 By default, RT stores attachments in the database. This extension
28 moves all attachments that RT does not need efficient access to (which
29 include textual content and images) to outside of the database. This
30 may either be on local disk, or to a cloud storage solution. This
31 decreases the size of RT's database, in turn decreasing the burden of
32 backing up RT's database, at the cost of adding additional locations
33 which must be configured or backed up.
34
35 The files are initially stored in the database when RT receives them;
36 this guarantees that the user does not need to wait for the file to be
37 transferred to disk or to the cloud, and makes it durable to transient
38 failures of cloud connectivity. The provided bin/extract-attachments
39 script, to be run regularly via cron, takes care of moving attachments
40 out of the database at a later time.
41
42 %prep
43 %setup -q -n %{pdir}-%{pnam}-%{version}
44
45 %build
46 %{__perl} Makefile.PL \
47         INSTALLDIRS=vendor
48 %{__make}
49
50 %{?with_tests:%{__make} test}
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54
55 %{__make} pure_install \
56         DESTDIR=$RPM_BUILD_ROOT
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %files
62 %defattr(644,root,root,755)
63 %doc Changes README
64 %dir %{perl_vendorlib}/RT/Extension
65 %{perl_vendorlib}/RT/Extension/*.pm
66 %{perl_vendorlib}/RT/Extension/ExternalStorage
67 %{_mandir}/man3/*
This page took 0.112883 seconds and 3 git commands to generate.