perl-parse/perl-parse.spec

Sun, 29 May 2011 16:29:06 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sun, 29 May 2011 16:29:06 +0200
changeset 344
e33c1efbd60f
parent 59
65ddf2e1fe94
child 372
442a711da911
permissions
-rw-r--r--

Update, correct, improve build configuration and packaging logic.
Update to new version of vendor software, bump copyright date, remove implicit
gcc dependency, add comments for Trolltech bug tracking, correct enforced
dynamic library linkage, and install mysterious process stub binary.

     1 ##
     2 ##  perl-parse.spec -- OpenPKG RPM Package Specification
     3 ##  Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
     4 ##
     5 ##  Permission to use, copy, modify, and distribute this software for
     6 ##  any purpose with or without fee is hereby granted, provided that
     7 ##  the above copyright notice and this permission notice appear in all
     8 ##  copies.
     9 ##
    10 ##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    11 ##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    12 ##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    13 ##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
    14 ##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    15 ##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    16 ##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    17 ##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    18 ##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    19 ##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    20 ##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    21 ##  SUCH DAMAGE.
    22 ##
    24 #   versions of individual parts
    25 %define       V_perl                      5.10.0
    26 %define       V_config_inifiles           2.48
    27 %define       V_config_general            2.42
    28 %define       V_config_simple             4.58
    29 %define       V_config_context            0.10
    30 %define       V_config_scoped             0.12
    31 %define       V_string_tokenizer          0.05
    32 %define       V_parse_recdescent          1.95.1
    33 %define       V_parse_recdescent_faq      6.0.e
    34 %define       V_parse_recdescent_deparse  1.00
    35 %define       V_parse_recdescent_consumer 1.03
    36 %define       V_parse_recdescent_topiary  0.05
    37 %define       V_parse_yapp                1.05
    38 %define       V_parse_eyapp               1.146
    39 %define       V_parse_earley              0.15
    40 %define       V_parse_lex                 2.15
    41 %define       V_parse_flex                0.12
    42 %define       V_c_scan                    0.74
    43 %define       V_appconfig                 1.66
    44 %define       V_appconfig_std             1.07
    45 %define       V_ogdl                      20041124
    46 %define       V_text_csv_xs               0.64
    47 %define       V_text_csv_simple           1.00
    48 %define       V_getopt_long               2.38
    49 %define       V_getopt_attribute          1.44
    50 %define       V_getopt_argvfile           1.11
    51 %define       V_getopt_fancy              0.06
    52 %define       V_getopt_ll                 1.0.0
    54 #   package information
    55 Name:         perl-parse
    56 Summary:      Perl Modules for use with parsing algorythms
    57 URL:          http://www.cpan.org/
    58 Vendor:       Perl Community
    59 Packager:     OpenPKG Foundation e.V.
    60 Distribution: OpenPKG Community
    61 Class:        BASE
    62 Group:        Perl
    63 License:      GPL/Artistic
    64 Version:      %{V_perl}
    65 Release:      20090416
    67 #   list of sources
    68 Source0:      http://www.cpan.org/modules/by-module/Config/Config-IniFiles-%{V_config_inifiles}.tar.gz
    69 Source1:      http://www.cpan.org/modules/by-module/Config/Config-General-%{V_config_general}.tar.gz
    70 Source2:      http://www.cpan.org/modules/by-module/Config/Config-Simple-%{V_config_simple}.tar.gz
    71 Source3:      http://www.cpan.org/authors/id/D/DC/DCONWAY/Parse-RecDescent-v%{V_parse_recdescent}.tar.gz
    72 Source4:      http://www.cpan.org/modules/by-module/Parse/Parse-RecDescent-FAQ-%{V_parse_recdescent_faq}.tar.gz
    73 Source5:      http://www.cpan.org/modules/by-module/Parse/Parse-RecDescent-Deparse-%{V_parse_recdescent_deparse}.tar.gz
    74 Source6:      http://www.cpan.org/modules/by-module/Parse/Parse-RecDescent-Consumer-%{V_parse_recdescent_consumer}.tar.gz
    75 Source7:      http://www.cpan.org/modules/by-module/Parse/Parse-Yapp-%{V_parse_yapp}.tar.gz
    76 Source8:      http://www.cpan.org/modules/by-module/Parse/Parse-Earley-%{V_parse_earley}.tar.gz
    77 Source9:      http://www.cpan.org/modules/by-module/Parse/ParseLex-%{V_parse_lex}.tar.gz
    78 Source10:     http://www.cpan.org/modules/by-module/C/C-Scan-%{V_c_scan}.tar.gz
    79 Source11:     http://www.cpan.org/modules/by-module/AppConfig/AppConfig-%{V_appconfig}.tar.gz
    80 Source12:     http://www.cpan.org/modules/by-module/AppConfig/AppConfig-Std-%{V_appconfig_std}.tar.gz
    81 Source13:     http://switch.dl.sourceforge.net/ogdl/ogdlutils-%{V_ogdl}.tgz
    82 Source14:     http://www.cpan.org/modules/by-module/String/String-Tokenizer-%{V_string_tokenizer}.tar.gz
    83 Source15:     http://www.cpan.org/modules/by-module/Config/Config-Context-%{V_config_context}.tar.gz
    84 Source16:     http://www.cpan.org/modules/by-module/Config/Config-Scoped-%{V_config_scoped}.tar.gz
    85 Source17:     http://www.cpan.org/modules/by-module/Text/Text-CSV_XS-%{V_text_csv_xs}.tgz
    86 Source18:     http://www.cpan.org/modules/by-module/Text/Text-CSV-Simple-%{V_text_csv_simple}.tar.gz
    87 Source19:     http://www.cpan.org/modules/by-module/Getopt/Getopt-Long-%{V_getopt_long}.tar.gz
    88 Source20:     http://www.cpan.org/modules/by-module/Getopt/Getopt-Attribute-%{V_getopt_attribute}.tar.gz
    89 Source21:     http://www.cpan.org/modules/by-module/Getopt/Getopt-ArgvFile-%{V_getopt_argvfile}.tar.gz
    90 Source22:     http://www.cpan.org/modules/by-module/Getopt/Getopt-Fancy-%{V_getopt_fancy}.tar.gz
    91 Source23:     http://www.cpan.org/modules/by-module/Getopt/Getopt-LL-%{V_getopt_ll}.tar.gz
    92 Source24:     http://www.cpan.org/modules/by-module/Parse/Parse-RecDescent-Topiary-%{V_parse_recdescent_topiary}.tar.gz
    93 Source25:     http://www.cpan.org/modules/by-module/Parse/Parse-Flex-%{V_parse_flex}.tar.gz
    94 Source26:     http://www.cpan.org/modules/by-module/Parse/Parse-Eyapp-%{V_parse_eyapp}.tar.gz
    96 #   build information
    97 Prefix:       %{l_prefix}
    98 BuildRoot:    %{l_buildroot}
    99 BuildPreReq:  OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20051031
   100 PreReq:       OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
   101 BuildPreReq:  perl-util, perl-module, flex
   102 PreReq:       perl-util, perl-module, flex
   103 AutoReq:      no
   104 AutoReqProv:  no
   106 %description
   107     Perl modules for use with parsing algorythms:
   108     - Config::IniFiles (%{V_config_inifiles})
   109     - Config::General (%{V_config_general})
   110     - Config::Simple (%{V_config_simple})
   111     - Config::Context (%{V_config_context})
   112     - Config::Scoped (%{V_config_scoped})
   113     - String::Tokenizer (%{V_string_tokenizer})
   114     - Parse::RecDescent (%{V_parse_recdescent})
   115     - Parse::RecDescent::FAQ (%{V_parse_recdescent_faq})
   116     - Parse::RecDescent::Deparse (%{V_parse_recdescent_deparse})
   117     - Parse::RecDescent::Consumer (%{V_parse_recdescent_consumer})
   118     - Parse::RecDescent::Topiary (%{V_parse_recdescent_topiary})
   119     - Parse::Yapp (%{V_parse_yapp})
   120     - Parse::Eyapp (%{V_parse_eyapp})
   121     - Parse::Earley (%{V_parse_earley})
   122     - Parse::Lex (%{V_parse_lex})
   123     - Parse::Flex (%{V_parse_flex})
   124     - C::Scan (%{V_c_scan})
   125     - AppConfig (%{V_appconfig})
   126     - AppConfig::Std (%{V_appconfig_std})
   127     - OGDL (%{V_ogdl})
   128     - Text::CSV_XS (%{V_text_csv_xs})
   129     - Text::CSV::Simple (%{V_text_csv_simple})
   130     - Getopt::Long (%{V_getopt_long})
   131     - Getopt::Attribute (%{V_getopt_attribute})
   132     - Getopt::ArgvFile (%{V_getopt_argvfile})
   133     - Getopt::Fancy (%{V_getopt_fancy})
   134     - Getopt::LL (%{V_getopt_ll})
   136 %track
   137     prog perl-parse:Config-General = {
   138         version   = %{V_config_general}
   139         url       = http://www.cpan.org/modules/by-module/Config/
   140         regex     = Config-General-(__VER__)\.tar\.gz
   141     }
   142     prog perl-parse:Config-IniFiles = {
   143         version   = %{V_config_inifiles}
   144         url       = http://www.cpan.org/modules/by-module/Config/
   145         regex     = Config-IniFiles-(__VER__)\.tar\.gz
   146     }
   147     prog perl-parse:Config-Simple = {
   148         version   = %{V_config_simple}
   149         url       = http://www.cpan.org/modules/by-module/Config/
   150         regex     = Config-Simple-(__VER__)\.tar\.gz
   151     }
   152     prog perl-parse:Parse-RecDescent = {
   153         version   = %{V_parse_recdescent}
   154         url       = http://www.cpan.org/authors/id/D/DC/DCONWAY/
   155         regex     = Parse-RecDescent-v(__VER__)\.tar\.gz
   156     }
   157     prog perl-parse:Parse-RecDescent-Consumer = {
   158         version   = %{V_parse_recdescent_consumer}
   159         url       = http://www.cpan.org/modules/by-module/Parse/
   160         regex     = Parse-RecDescent-Consumer-(__VER__)\.tar\.gz
   161     }
   162     prog perl-parse:Parse-RecDescent-Deparse = {
   163         version   = %{V_parse_recdescent_deparse}
   164         url       = http://www.cpan.org/modules/by-module/Parse/
   165         regex     = Parse-RecDescent-Deparse-(__VER__)\.tar\.gz
   166     }
   167     prog perl-parse:Parse-RecDescent-FAQ = {
   168         version   = %{V_parse_recdescent_faq}
   169         url       = http://www.cpan.org/modules/by-module/Parse/
   170         regex     = Parse-RecDescent-FAQ-(__VER__)\.tar\.gz
   171     }
   172     prog perl-parse:Parse-RecDescent-Topiary = {
   173         version   = %{V_parse_recdescent_topiary}
   174         url       = http://www.cpan.org/modules/by-module/Parse/
   175         regex     = Parse-RecDescent-Topiary-(__VER__)\.tar\.gz
   176     }
   177     prog perl-parse:Parse-Yapp = {
   178         version   = %{V_parse_yapp}
   179         url       = http://www.cpan.org/modules/by-module/Parse/
   180         regex     = Parse-Yapp-(__VER__)\.tar\.gz
   181     }
   182     prog perl-parse:Parse-Eyapp = {
   183         version   = %{V_parse_eyapp}
   184         url       = http://www.cpan.org/modules/by-module/Parse/
   185         regex     = Parse-Eyapp-(__VER__)\.tar\.gz
   186     }
   187     prog perl-parse:Parse-Earley = {
   188         version   = %{V_parse_earley}
   189         url       = http://www.cpan.org/modules/by-module/Parse/
   190         regex     = Parse-Earley-(__VER__)\.tar\.gz
   191     }
   192     prog perl-parse:Parse-Lex = {
   193         version   = %{V_parse_lex}
   194         url       = http://www.cpan.org/modules/by-module/Parse/
   195         regex     = ParseLex-(__VER__)\.tar\.gz
   196     }
   197     prog perl-parse:Parse-Flex = {
   198         version   = %{V_parse_flex}
   199         url       = http://www.cpan.org/modules/by-module/Parse/
   200         regex     = Parse-Flex-(__VER__)\.tar\.gz
   201     }
   202     prog perl-parse:C-Scan = {
   203         version   = %{V_c_scan}
   204         url       = http://www.cpan.org/modules/by-module/C/
   205         regex     = C-Scan-(__VER__)\.tar\.gz
   206     }
   207     prog perl-parse:AppConfig = {
   208         version   = %{V_appconfig}
   209         url       = http://www.cpan.org/modules/by-module/AppConfig/
   210         regex     = AppConfig-(__VER__)\.tar\.gz
   211     }
   212     prog perl-parse:AppConfig-Std = {
   213         version   = %{V_appconfig_std}
   214         url       = http://www.cpan.org/modules/by-module/AppConfig/
   215         regex     = AppConfig-Std-(__VER__)\.tar\.gz
   216     }
   217     prog perl-parse:OGDL = {
   218         version   = %{V_ogdl}
   219         url       = http://prdownloads.sourceforge.net/ogdl/
   220         regex     = ogdlutils-(__VER__)\.tgz
   221     }
   222     prog perl-parse:String-Tokenizer = {
   223         version   = %{V_string_tokenizer}
   224         url       = http://www.cpan.org/modules/by-module/String/
   225         regex     = String-Tokenizer-(__VER__)\.tar\.gz
   226     }
   227     prog perl-parse:Config-Context = {
   228         version   = %{V_config_context}
   229         url       = http://www.cpan.org/modules/by-module/Config/
   230         regex     = Config-Context-(__VER__)\.tar\.gz
   231     }
   232     prog perl-parse:Config-Scoped = {
   233         version   = %{V_config_scoped}
   234         url       = http://www.cpan.org/modules/by-module/Config/
   235         regex     = Config-Scoped-(__VER__)\.tar\.gz
   236     }
   237     prog perl-parse:Text-CSV_XS = {
   238         version   = %{V_text_csv_xs}
   239         url       = http://www.cpan.org/modules/by-module/Text/
   240         regex     = Text-CSV_XS-(__VER__)\.t(ar\.)?gz
   241     }
   242     prog perl-parse:Text-CSV-Simple = {
   243         version   = %{V_text_csv_simple}
   244         url       = http://www.cpan.org/modules/by-module/Text/
   245         regex     = Text-CSV-Simple-(__VER__)\.tar\.gz
   246     }
   247     prog perl-parse:Getopt-Long = {
   248         version   = %{V_getopt_long}
   249         url       = http://www.cpan.org/modules/by-module/Getopt/
   250         regex     = Getopt-Long-(__VER__)\.tar\.gz
   251     }
   252     prog perl-parse:Getopt-Attribute = {
   253         version   = %{V_getopt_attribute}
   254         url       = http://www.cpan.org/modules/by-module/Getopt/
   255         regex     = Getopt-Attribute-(__VER__)\.tar\.gz
   256     }
   257     prog perl-parse:Getopt-ArgvFile = {
   258         version   = %{V_getopt_argvfile}
   259         url       = http://www.cpan.org/modules/by-module/Getopt/
   260         regex     = Getopt-ArgvFile-(__VER__)\.tar\.gz
   261     }
   262     prog perl-parse:Getopt-Fancy = {
   263         version   = %{V_getopt_fancy}
   264         url       = http://www.cpan.org/modules/by-module/Getopt/
   265         regex     = Getopt-Fancy-(__VER__)\.tar\.gz
   266     }
   267     prog perl-parse:Getopt-LL = {
   268         version   = %{V_getopt_ll}
   269         url       = http://www.cpan.org/modules/by-module/Getopt/
   270         regex     = Getopt-LL-(__VER__)\.tar\.gz
   271     }
   273 %prep
   274     %setup -q -c
   275     %setup -q -T -D -a 1
   276     %setup -q -T -D -a 2
   277     %setup -q -T -D -a 3
   278     %setup -q -T -D -a 4
   279     %setup -q -T -D -a 5
   280     %setup -q -T -D -a 6
   281     %setup -q -T -D -a 7
   282     %setup -q -T -D -a 8
   283     %setup -q -T -D -a 9
   284     %setup -q -T -D -a 10
   285     %setup -q -T -D -a 11
   286     %setup -q -T -D -a 12
   287     %setup -q -T -D -a 13
   288     %setup -q -T -D -a 14
   289     %setup -q -T -D -a 15
   290     %setup -q -T -D -a 16
   291     %setup -q -T -D -a 17
   292     %setup -q -T -D -a 18
   293     %setup -q -T -D -a 19
   294     %setup -q -T -D -a 20
   295     %setup -q -T -D -a 21
   296     %setup -q -T -D -a 22
   297     %setup -q -T -D -a 23
   298     %setup -q -T -D -a 24
   299     %setup -q -T -D -a 25
   300     %setup -q -T -D -a 26
   302 %build
   304 %install
   305     rm -rf $RPM_BUILD_ROOT
   306     %{l_prefix}/bin/perl-openpkg prepare
   307     %{l_prefix}/bin/perl-openpkg -d %{SOURCE0}  configure build install
   308     %{l_prefix}/bin/perl-openpkg -d %{SOURCE1}  configure build install
   309     %{l_prefix}/bin/perl-openpkg -d %{SOURCE2}  configure build install
   310     %{l_prefix}/bin/perl-openpkg -d %{SOURCE3}  configure build install
   311     %{l_prefix}/bin/perl-openpkg -d %{SOURCE4}  configure build install
   312     %{l_prefix}/bin/perl-openpkg -d %{SOURCE5}  configure build install
   313     %{l_prefix}/bin/perl-openpkg -d %{SOURCE6}  configure build install
   314     %{l_prefix}/bin/perl-openpkg -d %{SOURCE7}  configure build install
   315     %{l_prefix}/bin/perl-openpkg -d %{SOURCE8}  configure build install
   316     %{l_prefix}/bin/perl-openpkg -d %{SOURCE9}  configure build install
   317     %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
   318     %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
   319     %{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install
   320     ( cd ogdlutils-%{V_ogdl}/c
   321       %{l_cc} %{l_cflags} -c ogdlparser.c graph.c path.c ogdllog.c
   322       ar cr libogdl.a ogdlparser.o graph.o path.o ogdllog.o
   323     ) || exit $?
   324     %{l_prefix}/bin/perl-openpkg -d ogdlutils-%{V_ogdl}/perl configure build install
   325     %{l_prefix}/bin/perl-openpkg -d %{SOURCE14} configure build install
   326     %{l_prefix}/bin/perl-openpkg -d %{SOURCE15} configure build install
   327     %{l_prefix}/bin/perl-openpkg -A TAR=%{l_tar} -d %{SOURCE16} configure build install
   328     %{l_prefix}/bin/perl-openpkg -d %{SOURCE17} configure build install
   329     %{l_prefix}/bin/perl-openpkg -d %{SOURCE18} configure build install
   330     %{l_prefix}/bin/perl-openpkg -d %{SOURCE19} configure build install
   331     %{l_prefix}/bin/perl-openpkg -d %{SOURCE20} configure build install
   332     %{l_prefix}/bin/perl-openpkg -d %{SOURCE21} configure build install
   333     %{l_prefix}/bin/perl-openpkg -d %{SOURCE22} configure build install
   334     %{l_prefix}/bin/perl-openpkg -d %{SOURCE23} configure build install
   335     %{l_prefix}/bin/perl-openpkg -d %{SOURCE24} configure build install
   336     %{l_prefix}/bin/perl-openpkg -d %{SOURCE25} configure build install
   337     %{l_prefix}/bin/perl-openpkg -d %{SOURCE26} configure build install
   338     %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
   339     %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
   341 %files -f files
   343 %clean
   344     rm -rf $RPM_BUILD_ROOT

mercurial