OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 08-Jun-2004 13:34:18
Branch: HEAD Handle: 2004060812341800
Added files:
openpkg-src/perl-locale perl-locale.spec
Log:
new package: perl-locale 5.8.4 (Perl Locale Modules)
Summary:
Revision Changes Path
1.1 +150 -0 openpkg-src/perl-locale/perl-locale.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/perl-locale/perl-locale.spec
============================================================================
$ cvs diff -u -r0 -r1.1 perl-locale.spec
--- /dev/null 2004-06-08 13:34:18.000000000 +0200
+++ perl-locale.spec 2004-06-08 13:34:18.000000000 +0200
@@ -0,0 +1,150 @@
+##
+## perl-locale.spec -- OpenPKG RPM Specification
+## Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
+## Copyright (c) 2000-2004 Ralf S. Engelschall <[EMAIL PROTECTED]>
+## Copyright (c) 2000-2004 Cable & Wireless <http://www.cw.com/>
+##
+## Permission to use, copy, modify, and distribute this software for
+## any purpose with or without fee is hereby granted, provided that
+## the above copyright notice and this permission notice appear in all
+## copies.
+##
+## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+## SUCH DAMAGE.
+##
+
+# versions of individual parts
+%define V_perl 5.8.4
+%define V_i18n_langtags 0.30
+%define V_libintl_perl 1.10
+%define V_gettext 1.01
+%define V_locale_maketext 1.09
+%define V_locale_maketext_fuzzy 0.02
+%define V_locale_maketext_lexicon 0.38
+
+# package information
+Name: perl-locale
+Summary: Perl Locale Modules
+URL: http://www.cpan.org/
+Vendor: Perl Community
+Packager: The OpenPKG Project
+Distribution: OpenPKG
+Class: BASE
+Group: Language
+License: GPL/Artistic
+Version: %{V_perl}
+Release: 20040608
+
+# list of sources
+Source0:
http://www.cpan.org/modules/by-module/I18N/I18N-LangTags-%{V_i18n_langtags}.tar.gz
+Source1:
http://www.cpan.org/modules/by-module/Locale/libintl-perl-%{V_libintl_perl}.tar.gz
+Source2:
http://www.cpan.org/modules/by-module/Locale/gettext-%{V_gettext}.tar.gz
+Source3:
http://www.cpan.org/modules/by-module/Locale/Locale-Maketext-%{V_locale_maketext}.tar.gz
+Source4:
http://www.cpan.org/modules/by-module/Locale/Locale-Maketext-Fuzzy-%{V_locale_maketext_fuzzy}.tar.gz
+Source5:
http://www.cpan.org/modules/by-module/Locale/Locale-Maketext-Lexicon-%{V_locale_maketext_lexicon}.tar.gz
+
+# build information
+Prefix: %{l_prefix}
+BuildRoot: %{l_buildroot}
+BuildPreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >=
%{V_perl}-20040126
+PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
+BuildPreReq: gettext, libiconv
+PreReq: gettext, libiconv
+AutoReq: no
+AutoReqProv: no
+
+%description
+ Various Perl modules for locale handling:
+ - I18N::LangTags (%{V_i18n_langtags})
+ - libintl-perl (%{V_libintl_perl})
+ - Locale::gettext (%{V_gettext})
+ - Locale::Maketext (%{V_locale_maketext})
+ - Locale::Maketext::Fuzzy (%{V_locale_maketext_fuzzy})
+ - Locale::Maketext::Lexicon (%{V_locale_maketext_lexicon})
+
+%track
+ prog perl-locale:I18N-LangTags = {
+ version = %{V_i18n_langtags}
+ url = http://www.cpan.org/modules/by-module/I18N/
+ regex = I18N-LangTags-(__VER__)\.tar\.gz
+ }
+ prog perl-locale:libintl-perl = {
+ version = %{V_libintl_perl}
+ url = http://www.cpan.org/modules/by-module/Locale/
+ regex = libintl-perl-(__VER__)\.tar\.gz
+ }
+ prog perl-locale:gettext = {
+ version = %{V_gettext}
+ url = http://www.cpan.org/modules/by-module/Locale/
+ regex = gettext-(__VER__)\.tar\.gz
+ }
+ prog perl-locale:Locale-Maketext = {
+ version = %{V_locale_maketext}
+ url = http://www.cpan.org/modules/by-module/Locale/
+ regex = Locale-Maketext-(__VER__)\.tar\.gz
+ }
+ prog perl-locale:Locale-Maketext-Fuzzy = {
+ version = %{V_locale_maketext_fuzzy}
+ url = http://www.cpan.org/modules/by-module/Locale/
+ regex = Locale-Maketext-Fuzzy-(__VER__)\.tar\.gz
+ }
+ prog perl-locale:Locale-Maketext-Lexicon = {
+ version = %{V_locale_maketext_lexicon}
+ url = http://www.cpan.org/modules/by-module/Locale/
+ regex = Locale-Maketext-Lexicon-(__VER__)\.tar\.gz
+ }
+
+%prep
+ %setup -q -c
+ %setup -q -T -D -a 1
+ %setup -q -T -D -a 2
+ %setup -q -T -D -a 3
+ %setup -q -T -D -a 4
+ %setup -q -T -D -a 5
+
+%build
+
+%install
+ rm -rf $RPM_BUILD_ROOT
+ %{l_prefix}/bin/perl-openpkg prepare
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
+ ( cd libintl-perl-%{V_libintl_perl}
+ %{l_shtool} subst \
+ -e 's;\($Config{ccflags}\);\1 . "%{l_cflags} %{l_cppflags}";' \
+ -e 's;\($Config{libs}\);"%{l_ldflags}" . \1;' \
+ Makefile.PL
+ %{l_shtool} subst \
+ -e 's;\(PL_FILES\);INC => "%{l_cppflags}", \1;' \
+ -e 's;\(-lintl\);%{l_ldflags} \1;' \
+ -e 's;\(-liconv\);%{l_ldflags} \1;' \
+ gettext_xs/Makefile.PL
+ %{l_prefix}/bin/perl-openpkg configure build install
+ ) || exit $?
+ ( cd gettext-%{V_gettext}
+ %{l_shtool} subst \
+ -e 's;-lintl;%{l_ldflags} -lintl;' \
+ Makefile.PL
+ %{l_prefix}/bin/perl-openpkg configure build install
+ ) || exit $?
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
+ rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/xgettext.pl
+ %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
+ %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat
perl-openpkg-files`
+
+%files -f files
+
+%clean
+ rm -rf $RPM_BUILD_ROOT
+
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]