2 # - get rid of BR rt requirement
5 %bcond_without tests # do not perform "make test"
8 %define pnam Extension-ExternalStorage
9 Summary: RT::Extension::ExternalStorage - Store attachments outside the database
10 Name: perl-RT-Extension-ExternalStorage
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
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
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.
43 %setup -q -n %{pdir}-%{pnam}-%{version}
46 %{__perl} Makefile.PL \
50 %{?with_tests:%{__make} test}
53 rm -rf $RPM_BUILD_ROOT
55 %{__make} pure_install \
56 DESTDIR=$RPM_BUILD_ROOT
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
64 %dir %{perl_vendorlib}/RT/Extension
65 %{perl_vendorlib}/RT/Extension/*.pm
66 %{perl_vendorlib}/RT/Extension/ExternalStorage