[packages/perl-tidyview] new, version 1.14, created with pldcpan

glen glen at pld-linux.org
Wed Sep 10 11:34:43 CEST 2014


commit bddadb9e297d8ebe3cdd122e44dadadba7fa0ef7
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Sep 10 12:34:25 2014 +0300

    new, version 1.14, created with pldcpan

 perl-tidyview.spec | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)
---
diff --git a/perl-tidyview.spec b/perl-tidyview.spec
new file mode 100644
index 0000000..273aaeb
--- /dev/null
+++ b/perl-tidyview.spec
@@ -0,0 +1,61 @@
+#
+# Conditional build:
+%bcond_with	tests		# perform "make test" (requires DISPLAY)
+
+%define		pdir	tidyview
+%include	/usr/lib/rpm/macros.perl
+Summary:	Preview the effects of perltidy's plethora of options
+Name:		perl-tidyview
+Version:	1.14
+Release:	1
+License:	GPL-1.0+ or Artistic-1.0
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-authors/id/L/LE/LEIF/tidyview-%{version}.tar.gz
+# Source0-md5:	800c21347b8114e1990b03ceefed1b13
+URL:		http://search.cpan.org/dist/tidyview/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl(Log::Log4perl) >= 1.0
+BuildRequires:	perl(Tk::DiffText)
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Preview the effects of perltidy's plethora of options.
+
+%prep
+%setup -q -n %{pdir}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+	INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} pure_install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+mv $RPM_BUILD_ROOT%{_bindir}/tidyview{.pl,}
+mv $RPM_BUILD_ROOT%{_mandir}/man1/tidyview{.pl,}.1p
+
+%{__rm} -r $RPM_BUILD_ROOT%{perl_vendorlib}/TidyView/t
+%{__rm} -r $RPM_BUILD_ROOT%{perl_vendorlib}/PerlTidy/t
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README TODO
+%attr(755,root,root) %{_bindir}/tidyview
+%{_mandir}/man1/tidyview.1p*
+%{_mandir}/man3/TidyView::Options.3pm*
+%dir %{perl_vendorlib}/PerlTidy
+%{perl_vendorlib}/PerlTidy/*.pm
+%dir %{perl_vendorlib}/TidyView
+%{perl_vendorlib}/TidyView/*.pm
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-tidyview.git/commitdiff/bddadb9e297d8ebe3cdd122e44dadadba7fa0ef7



More information about the pld-cvs-commit mailing list