[packages/perl-Config-INI] - new

baggins baggins at pld-linux.org
Mon Mar 23 00:34:38 CET 2015


commit 45ca22cdbf31289e474e3f0b02dbef6c26ddcf54
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Mar 23 00:34:18 2015 +0100

    - new

 perl-Config-INI.spec | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 63 insertions(+)
---
diff --git a/perl-Config-INI.spec b/perl-Config-INI.spec
new file mode 100644
index 0000000..a9e9568
--- /dev/null
+++ b/perl-Config-INI.spec
@@ -0,0 +1,63 @@
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%define		pdir	Config
+%define		pnam	INI
+%include	/usr/lib/rpm/macros.perl
+Summary:	Config::INI - simple .ini-file format
+#Summary(pl.UTF-8):	
+Name:		perl-Config-INI
+Version:	0.025
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/Config/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	0402eb29869547dbcf03ed6f35fef3c0
+# generic URL, check or change before uncommenting
+#URL:		http://search.cpan.org/dist/Config-INI/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl(Mixin::Linewise::Readers) >= 0.105
+BuildRequires:	perl(Mixin::Linewise::Writers)
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+
+
+# %description -l pl.UTF-8
+# TODO
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{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
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/Config/*.pm
+%{perl_vendorlib}/Config/INI
+%{_mandir}/man3/*
+%{_examplesdir}/%{name}-%{version}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Config-INI.git/commitdiff/45ca22cdbf31289e474e3f0b02dbef6c26ddcf54



More information about the pld-cvs-commit mailing list