SPECS: perl-MIME-Charset.spec (NEW), perl-MIME-EncWords.spec (NEW) - initia...
luzik
luzik at pld-linux.org
Sat Jul 26 11:09:45 CEST 2008
Author: luzik Date: Sat Jul 26 09:09:45 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- initial release
- ugly spec but work :)
---- Files affected:
SPECS:
perl-MIME-Charset.spec (NONE -> 1.1) (NEW), perl-MIME-EncWords.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/perl-MIME-Charset.spec
diff -u /dev/null SPECS/perl-MIME-Charset.spec:1.1
--- /dev/null Sat Jul 26 11:09:45 2008
+++ SPECS/perl-MIME-Charset.spec Sat Jul 26 11:09:39 2008
@@ -0,0 +1,81 @@
+# $Revision$, $Date$
+#
+############################################################
+#
+# NOTE
+# - use the SOURCES/pldcpan.pl script for new perl packages
+# also available in pldcpan package.
+#
+############################################################
+#
+# Conditional build:
+%bcond_without autodeps # don't BR packages needed only for resolving deps
+%bcond_without tests # do not perform "make test"
+#
+%include /usr/lib/rpm/macros.perl
+%define pdir MIME
+%define pnam Charset
+Summary: -
+Summary(pl.UTF-8): -
+Name: perl-MIME-Charset
+Version: 1.006
+Release: 0.1
+License: GPL
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/MIME/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: a764906fe10ca4b61badbc2a00cc58fc
+URL: http://search.cpan.org/dist/MIME-Charset/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+# most of CPAN modules have generic URL (substitute pdir and pnam here)
+
+%description
+
+%description -l pl.UTF-8
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+# Don't use pipes here: they generally don't work. Apply a patch.
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+
+%{__make}
+# if module isn't noarch, use:
+# %{__make} \
+# CC="%{__cc}"
+# OPTIMIZE="%{rpmcflags}"
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/MIME/Charset.pm
+%{perl_vendorlib}/MIME/Charset/Defaults.pm.sample
+%{perl_vendorlib}/MIME/Charset/JA_JP.pod
+%{perl_vendorlib}/MIME/Charset/_Compat.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/07/26 09:09:39 luzik
+- initial release
+- ugly spec but work :)
+
================================================================
Index: SPECS/perl-MIME-EncWords.spec
diff -u /dev/null SPECS/perl-MIME-EncWords.spec:1.1
--- /dev/null Sat Jul 26 11:09:45 2008
+++ SPECS/perl-MIME-EncWords.spec Sat Jul 26 11:09:40 2008
@@ -0,0 +1,70 @@
+# $Revision$, $Date$
+%bcond_without autodeps # don't BR packages needed only for resolving deps
+%bcond_without tests # do not perform "make test"
+#
+%include /usr/lib/rpm/macros.perl
+%define pdir MIME
+%define pnam EncWords
+Summary: -
+Summary(pl.UTF-8): -
+Name: perl-MIME-EncWords
+Version: 1.010
+Release: 0.1
+License: GPL
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/MIME/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: e3d33e62bd5e88d1c6ad8c9c8ce1f2f2
+URL: http://search.cpan.org/dist/MIME-EncWords/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+# most of CPAN modules have generic URL (substitute pdir and pnam here)
+
+%description
+
+%description -l pl.UTF-8
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+# Don't use pipes here: they generally don't work. Apply a patch.
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+
+%{__make}
+# if module isn't noarch, use:
+# %{__make} \
+# CC="%{__cc}"
+# OPTIMIZE="%{rpmcflags}"
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/MIME/EncWords.pm
+%{perl_vendorlib}/MIME/EncWords/Defaults.pm.sample
+%{perl_vendorlib}/MIME/EncWords/JA_JP.pod
+%{_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/07/26 09:09:40 luzik
+- initial release
+- ugly spec but work :)
+
================================================================
More information about the pld-cvs-commit
mailing list