SPECS: perl-Config-JSON.spec (NEW) - new

mis mis at pld-linux.org
Fri Feb 22 11:09:55 CET 2008


Author: mis                          Date: Fri Feb 22 10:09:55 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new

---- Files affected:
SPECS:
   perl-Config-JSON.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/perl-Config-JSON.spec
diff -u /dev/null SPECS/perl-Config-JSON.spec:1.1
--- /dev/null	Fri Feb 22 11:09:55 2008
+++ SPECS/perl-Config-JSON.spec	Fri Feb 22 11:09:50 2008
@@ -0,0 +1,63 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	tests	# do not perform "make test"
+#
+%include	/usr/lib/rpm/macros.perl
+%define		pdir	Config
+%define		pnam	JSON
+Summary:	Config::JSON - a JSON based config file system
+Name:		perl-Config-JSON
+Version:	1.1.4
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	e2e12338063f89f09194bda49a8a8853
+Requires:	perl-JSON > 2
+%if %{with tests}
+BuildRequires:	perl-JSON > 2
+BuildRequires:	perl-version
+%endif
+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 package parses the config files written in JSON. It also does
+some non-JSON stuff, like allowing for comments in the files.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}
+
+%build
+%{__perl} Makefile.PL \
+	INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%{perl_vendorlib}/Config/JSON.pm
+%{_mandir}/man3/*
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2008-02-22 10:09:50  mis
+- new
+
================================================================


More information about the pld-cvs-commit mailing list