]> git.pld-linux.org Git - packages/perl-MIME-Charset.git/commitdiff
- initial release
authorluzik <luzik@pld-linux.org>
Sat, 26 Jul 2008 09:09:39 +0000 (09:09 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- ugly spec but work :)

Changed files:
    perl-MIME-Charset.spec -> 1.1

perl-MIME-Charset.spec [new file with mode: 0644]

diff --git a/perl-MIME-Charset.spec b/perl-MIME-Charset.spec
new file mode 100644 (file)
index 0000000..50ccce9
--- /dev/null
@@ -0,0 +1,69 @@
+#
+############################################################
+#
+# 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/*
This page took 0.914729 seconds and 4 git commands to generate.