]> git.pld-linux.org Git - SPECS.git/blob - perl-tidyview.spec
SPECS updated Sun 1 Aug 15:50:02 CEST 2021
[SPECS.git] / perl-tidyview.spec
1 #
2 # Conditional build:
3 %bcond_with     tests           # perform "make test" (requires DISPLAY)
4
5 %define         pdir    tidyview
6 Summary:        Preview the effects of perltidy's plethora of options
7 Name:           perl-tidyview
8 Version:        1.14
9 Release:        1
10 License:        GPL-1.0+ or Artistic-1.0
11 Group:          Development/Languages/Perl
12 Source0:        http://www.cpan.org/modules/by-authors/id/L/LE/LEIF/tidyview-%{version}.tar.gz
13 # Source0-md5:  800c21347b8114e1990b03ceefed1b13
14 URL:            http://search.cpan.org/dist/tidyview/
15 BuildRequires:  perl-devel >= 1:5.8.0
16 BuildRequires:  rpm-perlprov >= 4.1-13
17 %if %{with tests}
18 BuildRequires:  perl(Log::Log4perl) >= 1.0
19 BuildRequires:  perl(Tk::DiffText)
20 %endif
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 Preview the effects of perltidy's plethora of options.
26
27 %prep
28 %setup -q -n %{pdir}-%{version}
29
30 %build
31 %{__perl} Makefile.PL \
32         INSTALLDIRS=vendor
33 %{__make}
34
35 %{?with_tests:%{__make} test}
36
37 %install
38 rm -rf $RPM_BUILD_ROOT
39 %{__make} pure_install \
40         DESTDIR=$RPM_BUILD_ROOT
41
42 mv $RPM_BUILD_ROOT%{_bindir}/tidyview{.pl,}
43 mv $RPM_BUILD_ROOT%{_mandir}/man1/tidyview{.pl,}.1p
44
45 %{__rm} -r $RPM_BUILD_ROOT%{perl_vendorlib}/TidyView/t
46 %{__rm} -r $RPM_BUILD_ROOT%{perl_vendorlib}/PerlTidy/t
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 %files
52 %defattr(644,root,root,755)
53 %doc Changes README TODO
54 %attr(755,root,root) %{_bindir}/tidyview
55 %{_mandir}/man1/tidyview.1p*
56 %{_mandir}/man3/TidyView::Options.3pm*
57 %dir %{perl_vendorlib}/PerlTidy
58 %{perl_vendorlib}/PerlTidy/*.pm
59 %dir %{perl_vendorlib}/TidyView
60 %{perl_vendorlib}/TidyView/*.pm
This page took 0.071644 seconds and 3 git commands to generate.