[packages/perl-Data-JavaScript] - initial, version 1.13

adwol adwol at pld-linux.org
Mon Apr 6 16:17:12 CEST 2015


commit b5e469ed981ac27a968cef6d3bd1e4e27982b7a4
Author: Adam Osuchowski <adwol at pld-linux.org>
Date:   Mon Apr 6 16:16:55 2015 +0200

    - initial, version 1.13

 perl-Data-JavaScript.spec | 62 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 62 insertions(+)
---
diff --git a/perl-Data-JavaScript.spec b/perl-Data-JavaScript.spec
new file mode 100644
index 0000000..62c668b
--- /dev/null
+++ b/perl-Data-JavaScript.spec
@@ -0,0 +1,62 @@
+#
+# Conditional build:
+%bcond_without	tests		# perform "make test" (require Internet connection)
+#
+%include	/usr/lib/rpm/macros.perl
+%define	pdir	Data
+%define	pnam	JavaScript
+Summary:	Data::JavaScript - dump perl data structures into JavaScript code 
+Summary(pl.UTF-8):	Data::JavaScript - konwersja struktur danych Perla do kodu JavaScript
+Name:		perl-Data-JavaScript
+Version:	1.13
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://search.cpan.org/CPAN/authors/id/J/JP/JPIERCE/%{pdir}-%{pnam}-%{version}.tgz
+# Source0-md5:	14a2e422d2a22d34749e762614b4736f
+URL:		http://search.cpan.org/dist/Data-JavaScript/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module is mainly intended for CGI programming, when a perl
+script generates a page with client side JavaScript code that needs
+access to structures created on the server.
+
+%description -l pl.UTF-8
+Ten moduł jest przeznaczony główne do programowania CGI, kiedy
+skrypt perlowy generuje stronę z kodem JavaScript, który korzysta
+z danych utworzonych przez serwer.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+	INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%{__cp} -a example.pl $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+%{__rm} -f $RPM_BUILD_ROOT%{perl_vendorlib}/Data/example.pl
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES README
+%{perl_vendorlib}/Data/JavaScript.pm
+%{_mandir}/man?/*
+%{_examplesdir}/%{name}-%{version}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Data-JavaScript.git/commitdiff/b5e469ed981ac27a968cef6d3bd1e4e27982b7a4



More information about the pld-cvs-commit mailing list