## ## perl-regex.spec -- OpenPKG RPM Package Specification ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. ## ## 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.10.0 %define V_re_engine_plugin 0.04_01 %define V_re_engine_posix 0.05 %define V_re_engine_pcre 0.15 %define V_re_engine_tre 0.04 %define V_regexp_bind 0.05 %define V_regexp_common 2.120 %define V_regexp_copy 0.06 %define V_regexp_extended 0.01 %define V_regexp_keep 0.02 %define V_regexp_parser 0.20 %define V_regexp_shellish 0.93 %define V_regexp_assemble 0.32 %define V_regexp_wildcards 0.08 # package information Name: perl-regex Summary: Perl Modules for Regular Expression Management URL: http://www.cpan.org/ Vendor: Perl Community Packager: OpenPKG Foundation e.V. Distribution: OpenPKG Community Class: BASE Group: Perl License: GPL/Artistic Version: %{V_perl} Release: 20080309 # package options %option with_posix no %option with_pcre no %option with_tre no # list of sources Source0: http://www.cpan.org/authors/id/A/AV/AVAR/re-engine-POSIX-%{V_re_engine_posix}.tar.gz Source1: http://www.cpan.org/authors/id/A/AV/AVAR/re-engine-PCRE-%{V_re_engine_pcre}.tar.gz Source2: http://www.cpan.org/authors/id/A/AV/AVAR/re-engine-TRE-%{V_re_engine_tre}.tar.gz Source3: http://www.cpan.org/modules/by-module/Regexp/Regexp-Bind-%{V_regexp_bind}.tar.gz Source4: http://www.cpan.org/modules/by-module/Regexp/Regexp-Common-%{V_regexp_common}.tar.gz Source5: http://www.cpan.org/modules/by-module/Regexp/Regexp-Copy-%{V_regexp_copy}.tar.gz Source6: http://www.cpan.org/modules/by-module/Regexp/Regexp-Extended-%{V_regexp_extended}.tar.gz Source7: http://www.cpan.org/modules/by-module/Regexp/Regexp-Keep-%{V_regexp_keep}.tar.gz Source8: http://www.cpan.org/modules/by-module/Regexp/Regexp-Parser-%{V_regexp_parser}.tar.gz Source9: http://www.cpan.org/modules/by-module/Regexp/Regexp-Shellish-%{V_regexp_shellish}.tar.gz Source10: http://www.cpan.org/modules/by-module/Regexp/Regexp-Assemble-%{V_regexp_assemble}.tar.gz Source11: http://www.cpan.org/modules/by-module/Regexp/Regexp-Wildcards-%{V_regexp_wildcards}.tar.gz Patch0: perl-regex.patch # 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: perl-module PreReq: perl-module %if "%{with_pcre}" == "yes" BuildPreReq: pcre PreReq: pcre %endif %if "%{with_tre}" == "yes" BuildPreReq: tre, pkgconfig PreReq: tre, pkgconfig %endif AutoReq: no AutoReqProv: no %description Perl modules for regular expression management: - re::engine::POSIX (%{V_re_engine_posix}) [with_posix=yes] - re::engine::PCRE (%{V_re_engine_pcre}) [with_pcre=yes] - re::engine::TRE (%{V_re_engine_tre}) [with_tre=yes] - Regexp::Bind (%{V_regexp_bind}) - Regexp::Common (%{V_regexp_common}) - Regexp::Copy (%{V_regexp_copy}) - Regexp::Extended (%{V_regexp_extended}) - Regexp::Keep (%{V_regexp_keep}) - Regexp::Parser (%{V_regexp_parser}) - Regexp::Shellish (%{V_regexp_shellish}) - Regexp::Assemble (%{V_regexp_assemble}) - Regexp::Wildcards (%{V_regexp_wildcards}) %track prog perl-regex:re-engine-POSIX = { version = %{V_re_engine_posix} url = http://www.cpan.org/authors/id/A/AV/AVAR/ regex = re-engine-POSIX-(__VER__)\.tar\.gz } prog perl-regex:re-engine-PCRE = { version = %{V_re_engine_pcre} url = http://www.cpan.org/authors/id/A/AV/AVAR/ regex = re-engine-PCRE-(__VER__)\.tar\.gz } prog perl-regex:re-engine-TRE = { version = %{V_re_engine_tre} url = http://www.cpan.org/authors/id/A/AV/AVAR/ regex = re-engine-TRE-(__VER__)\.tar\.gz } prog perl-regex:Regexp-Bind = { version = %{V_regexp_bind} url = http://www.cpan.org/modules/by-module/Regexp/ regex = Regexp-Bind-(__VER__)\.tar\.gz } prog perl-regex:Regexp-Common = { version = %{V_regexp_common} url = http://www.cpan.org/modules/by-module/Regexp/ regex = Regexp-Common-(__VER__)\.tar\.gz } prog perl-regex:Regexp-Copy = { version = %{V_regexp_copy} url = http://www.cpan.org/modules/by-module/Regexp/ regex = Regexp-Copy-(__VER__)\.tar\.gz } prog perl-regex:Regexp-Extended = { version = %{V_regexp_extended} url = http://www.cpan.org/modules/by-module/Regexp/ regex = Regexp-Extended-(__VER__)\.tar\.gz } prog perl-regex:Regexp-Keep = { version = %{V_regexp_keep} url = http://www.cpan.org/modules/by-module/Regexp/ regex = Regexp-Keep-(__VER__)\.tar\.gz } prog perl-regex:Regexp-Parser = { version = %{V_regexp_parser} url = http://www.cpan.org/modules/by-module/Regexp/ regex = Regexp-Parser-(__VER__)\.tar\.gz } prog perl-regex:Regexp-Shellish = { version = %{V_regexp_shellish} url = http://www.cpan.org/modules/by-module/Regexp/ regex = Regexp-Shellish-(__VER__)\.tar\.gz } prog perl-regex:Regexp-Assemble = { version = %{V_regexp_assemble} url = http://www.cpan.org/modules/by-module/Regexp/ regex = Regexp-Assemble-(__VER__)\.tar\.gz } prog perl-regex:Regexp-Wildcards = { version = %{V_regexp_wildcards} url = http://www.cpan.org/modules/by-module/Regexp/ regex = Regexp-Wildcards-(__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 %setup -q -T -D -a 6 %setup -q -T -D -a 7 %setup -q -T -D -a 8 %setup -q -T -D -a 9 %setup -q -T -D -a 10 %setup -q -T -D -a 11 %patch -p0 %build %install rm -rf $RPM_BUILD_ROOT %{l_prefix}/bin/perl-openpkg prepare %if "%{with_posix}" == "yes" %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install %endif %if "%{with_pcre}" == "yes" %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install %endif %if "%{with_tre}" == "yes" %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install %endif %{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 %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install %{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