3 %bcond_without tests # do not perform "make test"
6 %define pnam Extension-TicketLocking
7 %include /usr/lib/rpm/macros.perl
8 Summary: RT::Extension::TicketLocking - Enables users to place advisory locks on tickets
9 Name: perl-RT-Extension-TicketLocking
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/RT/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: 8a174769fae34c3b762f0cfb9991af40
16 URL: https://metacpan.org/release/RT-Extension-TicketLocking/
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Locks can be of several different types. Current types are:
26 Locks are advisory: if a ticket is locked by one user, other users
27 will be given a notification (in red) that another user has locked
28 the ticket, with the locking user's name and how long he has had
29 it locked for, but they will still be allowed to edit and submit
30 changes on the ticket.
32 When a user locks a ticket (auto lock or hard lock), they are given
33 a notification informing them of their lock and how long they have
34 had the ticket locked (in some other color - currently green).
37 %setup -q -n %{pdir}-%{pnam}-%{version}
40 %{__perl} Makefile.PL \
41 INSTALLVENDORLIB=%{perl_vendorlib} \
45 %{?with_tests:%{__make} test}
48 rm -rf $RPM_BUILD_ROOT
50 %{__make} pure_install \
51 DESTDIR=$RPM_BUILD_ROOT
54 rm -rf $RPM_BUILD_ROOT
57 %defattr(644,root,root,755)
59 %{perl_vendorlib}/RT/Extension/TicketLocking.pm