perl-net/perl-net.spec

Fri, 16 Jan 2009 20:57:37 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2009 20:57:37 +0100
changeset 99
161326b4f1f9
child 100
67744e0f53cc
permissions
-rw-r--r--

Import package vendor original specs for necessary manipulations.

     1 ##
     2 ##  perl-net.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_math_base85           0.2
    27 %define       V_net_ipv4addr          0.10
    28 %define       V_net_ipv6addr          0.2
    29 %define       V_net_daemon            0.43
    30 %define       V_net_server            0.97
    31 %define       V_net_ext               1.011
    32 %define       V_libnet                1.22
    33 %define       V_net_netmask           1.9015
    34 %define       V_net_ftp_common        6.1
    35 %define       V_net_snmp              5.2.0
    36 %define       V_net_tftp              0.17
    37 %define       V_net_telnet            3.03
    38 %define       V_net_telnet_cisco      1.10
    39 %define       V_plrpc                 0.2020
    40 %define       V_net_imap_simple       1.17
    41 %define       V_net_bgp               0.10
    42 %define       V_net_pcap              0.16
    43 %define       V_net_radius            1.56
    44 %define       V_net_ip                1.25
    45 %define       V_class_gomor           1.01
    46 %define       V_net_packet            3.26
    47 %define       V_net_xmpp              1.02
    48 %define       V_net_jabber            2.0
    49 %define       V_net_patricia          1.014
    50 %define       V_net_irc               0.75
    51 %define       V_ip_country            2.26
    52 %define       V_io_socket_multicast   1.05
    53 %define       V_net_growlclient       0.02
    54 %define       V_net_dhcp              0.66
    55 %define       V_net_proxy             0.12
    57 #   package information
    58 Name:         perl-net
    59 Summary:      Perl Modules for use with networks
    60 URL:          http://www.cpan.org/
    61 Vendor:       Perl Community
    62 Packager:     OpenPKG Foundation e.V.
    63 Distribution: OpenPKG Community
    64 Class:        BASE
    65 Group:        Perl
    66 License:      GPL/Artistic
    67 Version:      %{V_perl}
    68 Release:      20090102
    70 #   package options
    71 %option       with_pcap   no
    73 #   list of sources
    74 Source0:      http://www.cpan.org/modules/by-module/Math/Math-Base85-%{V_math_base85}.tar.gz
    75 Source1:      http://www.cpan.org/modules/by-module/Net/Net-IPv4Addr-%{V_net_ipv4addr}.tar.gz
    76 Source2:      http://www.cpan.org/modules/by-module/Net/Net-IPv6Addr-%{V_net_ipv6addr}.tar.gz
    77 Source3:      http://www.cpan.org/modules/by-module/Net/Net-Daemon-%{V_net_daemon}.tar.gz
    78 Source4:      http://www.cpan.org/modules/by-module/Net/Net-Server-%{V_net_server}.tar.gz
    79 Source5:      http://www.cpan.org/modules/by-module/Net/Net-ext-%{V_net_ext}.tar.gz
    80 Source6:      http://www.cpan.org/modules/by-module/Net/libnet-%{V_libnet}.tar.gz
    81 Source7:      http://www.cpan.org/modules/by-module/Net/Net-Netmask-%{V_net_netmask}.tar.gz
    82 Source8:      http://www.cpan.org/modules/by-module/Net/Net-FTP-Common-%{V_net_ftp_common}.tar.gz
    83 Source9:      http://www.cpan.org/modules/by-module/Net/Net-SNMP-%{V_net_snmp}.tar.gz
    84 Source10:     http://www.cpan.org/modules/by-module/Net/Net-TFTP-%{V_net_tftp}.tar.gz
    85 Source11:     http://www.cpan.org/modules/by-module/Net/Net-Telnet-%{V_net_telnet}.tar.gz
    86 Source12:     http://www.cpan.org/modules/by-module/Net/Net-Telnet-Cisco-%{V_net_telnet_cisco}.tar.gz
    87 Source13:     http://www.cpan.org/modules/by-module/Net/Net-Radius-%{V_net_radius}.tar.gz
    88 Source14:     http://www.cpan.org/modules/by-module/RPC/PlRPC-%{V_plrpc}.tar.gz
    89 Source15:     http://www.cpan.org/modules/by-module/Net/Net-IMAP-Simple-%{V_net_imap_simple}.tar.gz
    90 Source16:     http://www.cpan.org/modules/by-module/Net/Net-BGP-%{V_net_bgp}.tar.gz
    91 Source17:     http://www.cpan.org/modules/by-module/Net/Net-Pcap-%{V_net_pcap}.tar.gz
    92 Source18:     http://www.cpan.org/modules/by-module/Class/Class-Gomor-%{V_class_gomor}.tar.gz
    93 Source19:     http://www.cpan.org/modules/by-module/Net/Net-Packet-%{V_net_packet}.tar.gz
    94 Source20:     http://www.cpan.org/modules/by-module/Net/Net-IP-%{V_net_ip}.tar.gz
    95 Source21:     http://www.cpan.org/modules/by-module/Net/Net-XMPP-%{V_net_xmpp}.tar.gz
    96 Source22:     http://www.cpan.org/modules/by-module/Net/Net-Jabber-%{V_net_jabber}.tar.gz
    97 Source23:     http://www.cpan.org/modules/by-module/Net/Net-Patricia-%{V_net_patricia}.tar.gz
    98 Source24:     http://www.cpan.org/modules/by-module/Net/Net-IRC-%{V_net_irc}.tar.gz
    99 Source25:     http://www.cpan.org/modules/by-module/IP/IP-Country-%{V_ip_country}.tar.gz
   100 Source26:     http://www.cpan.org/modules/by-module/IO/IO-Socket-Multicast-%{V_io_socket_multicast}.tar.gz
   101 Source27:     http://www.cpan.org/modules/by-module/Net/Net-GrowlClient-%{V_net_growlclient}.tar.gz
   102 Source28:     http://www.cpan.org/modules/by-module/Net/Net-DHCP-%{V_net_dhcp}.tar.gz
   103 Source29:     http://www.cpan.org/modules/by-module/Net/Net-Proxy-%{V_net_proxy}.tar.gz
   104 Patch0:       perl-net.patch
   106 #   build information
   107 Prefix:       %{l_prefix}
   108 BuildRoot:    %{l_buildroot}
   109 BuildPreReq:  OpenPKG, openpkg >= 20040130, perl >= %{V_perl}, perl-openpkg >= %{V_perl}-20040126
   110 PreReq:       OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
   111 BuildPreReq:  perl-crypto, perl-sys, perl-time, perl-xml, perl-util >= %{V_perl}-20040210
   112 PreReq:       perl-crypto, perl-sys, perl-time, perl-xml, perl-util >= %{V_perl}-20040210
   113 %if "%{with_pcap}" == "yes"
   114 BuildPreReq:  libpcap
   115 PreReq:       libpcap
   116 %endif
   117 AutoReq:      no
   118 AutoReqProv:  no
   120 %description
   121     Perl modules for use with networks:
   122     - Net::Daemon (%{V_net_daemon})
   123     - Net::FTP (%{V_libnet})
   124     - Net::NNTP
   125     - Net::POP3
   126     - Net::SMTP
   127     - Net::SNPP
   128     - Net::Time
   129     - Net::FTP::Common (%{V_net_ftp_common})
   130     - Net::Gen (%{V_net_ext})
   131     - Net::Inet
   132     - Net::TCP
   133     - Net::TCP::Server
   134     - Net::UDP
   135     - Net::UNIX
   136     - Net::UNIX::Server
   137     - Net::Netmask (%{V_net_netmask})
   138     - Net::SNMP (%{V_net_snmp})
   139     - Net::Server (%{V_net_server})
   140     - Net::TFTP (%{V_net_tftp})
   141     - Net::Telnet (%{V_net_telnet})
   142     - Net::Telnet::Cisco (%{V_net_telnet_cisco})
   143     - Net::Radius (%{V_net_radius})
   144     - RPC::PlServer, RPC::PlClient (%{V_plrpc})
   145     - Net::IP (%{V_net_ip})
   146     - Net::IMAP::Simple (%{V_net_imap_simple})
   147     - Net::BGP (%{V_net_bgp})
   148 %if "%{with_pcap}" == "yes"
   149     - Net::Pcap (%{V_net_pcap})
   150     - Net::Packet (%{V_net_packet})
   151     - Class::Gomor (%{V_class_gomor})
   152 %endif
   153     - Net::XMPP (%{V_net_xmpp})
   154     - Net::Jabber (%{V_net_jabber})
   155     - Net::Patricia (%{V_net_patricia})
   156     - Net::IPv4Addr (%{V_net_ipv4addr})
   157     - Net::IPv6Addr (%{V_net_ipv6addr})
   158     - Net::IRC (%{V_net_irc})
   159     - IP::Country (%{V_ip_country})
   160     - IO::Socket::Multicast (%{V_io_socket_multicast})
   161     - Net::GrowlClient (%{V_net_growlclient})
   162     - Net::DHCP (%{V_net_dhcp})
   163     - Net::Proxy (%{V_net_proxy})
   165 %track
   166     prog perl-net:Net-Netmask = {
   167         version   = %{V_net_netmask}
   168         url       = http://www.cpan.org/modules/by-module/Net/
   169         regex     = Net-Netmask-(__VER__)\.tar\.gz
   170     }
   171     prog perl-net:Net-Ftp-Common = {
   172         version   = %{V_net_ftp_common}
   173         url       = http://www.cpan.org/modules/by-module/Net/
   174         regex     = Net-FTP-Common-(__VER__)\.tar\.gz
   175     }
   176     prog perl-net:libnet = {
   177         version   = %{V_libnet}
   178         url       = http://www.cpan.org/modules/by-module/Net/
   179         regex     = libnet-(__VER__)\.tar\.gz
   180     }
   181     prog perl-net:Net-BGP = {
   182         version   = %{V_net_bgp}
   183         url       = http://www.cpan.org/modules/by-module/Net/
   184         regex     = Net-BGP-(__VER__)\.tar\.gz
   185     }
   186     prog perl-net:Net-Daemon = {
   187         version   = %{V_net_daemon}
   188         url       = http://www.cpan.org/modules/by-module/Net/
   189         regex     = Net-Daemon-(__VER__)\.tar\.gz
   190     }
   191     prog perl-net:Net-ext = {
   192         version   = %{V_net_ext}
   193         url       = http://www.cpan.org/modules/by-module/Net/
   194         regex     = Net-ext-(__VER__)\.tar\.gz
   195     }
   196     prog perl-net:Net-Imap-Simple = {
   197         version   = %{V_net_imap_simple}
   198         url       = http://www.cpan.org/modules/by-module/Net/
   199         regex     = Net-IMAP-Simple-(__VER__)\.tar\.gz
   200     }
   201     prog perl-net:Net-Server = {
   202         version   = %{V_net_server}
   203         url       = http://www.cpan.org/modules/by-module/Net/
   204         regex     = Net-Server-(__VER__)\.tar\.gz
   205     }
   206     prog perl-net:Net-SNMP = {
   207         version   = %{V_net_snmp}
   208         url       = http://www.cpan.org/modules/by-module/Net/
   209         regex     = Net-SNMP-(__VER__)\.tar\.gz
   210     }
   211     prog perl-net:Net-Telnet = {
   212         version   = %{V_net_telnet}
   213         url       = http://www.cpan.org/modules/by-module/Net/
   214         regex     = Net-Telnet-(__VER__)\.tar\.gz
   215     }
   216     prog perl-net:Net-Telnet-Cisco = {
   217         version   = %{V_net_telnet_cisco}
   218         url       = http://www.cpan.org/modules/by-module/Net/
   219         regex     = Net-Telnet-Cisco-(__VER__)\.tar\.gz
   220     }
   221     prog perl-net:Net-TFTP = {
   222         version   = %{V_net_tftp}
   223         url       = http://www.cpan.org/modules/by-module/Net/
   224         regex     = Net-TFTP-(__VER__)\.tar\.gz
   225     }
   226     prog perl-net:PlRPC = {
   227         version   = %{V_plrpc}
   228         url       = http://www.cpan.org/modules/by-module/RPC/
   229         regex     = PlRPC-(__VER__)\.tar\.gz
   230     }
   231     prog perl-net:Net-Pcap = {
   232         version   = %{V_net_pcap}
   233         url       = http://www.cpan.org/modules/by-module/Net/
   234         regex     = Net-Pcap-(__VER__)\.tar\.gz
   235     }
   236     prog perl-net:Net-Radius = {
   237         version   = %{V_net_radius}
   238         url       = http://www.cpan.org/modules/by-module/Net/
   239         regex     = Net-Radius-(__VER__)\.tar\.gz
   240     }
   241     prog perl-net:Net-IP = {
   242         version   = %{V_net_ip}
   243         url       = http://www.cpan.org/authors/id/M/MA/MANU/
   244         regex     = Net-IP-(__VER__)\.tar\.gz
   245     }
   246     prog perl-net:Net-Packet = {
   247         version   = %{V_net_packet}
   248         url       = http://www.cpan.org/modules/by-module/Net/
   249         regex     = Net-Packet-(__VER__)\.tar\.gz
   250     }
   251     prog perl-net:Class-Gomor = {
   252         version   = %{V_class_gomor}
   253         url       = http://www.cpan.org/modules/by-module/Class/
   254         regex     = Class-Gomor-(__VER__)\.tar\.gz
   255     }
   256     prog perl-net:Net-XMPP = {
   257         version   = %{V_net_xmpp}
   258         url       = http://www.cpan.org/modules/by-module/Net/
   259         regex     = Net-XMPP-(__VER__)\.tar\.gz
   260     }
   261     prog perl-net:Net-Jabber = {
   262         version   = %{V_net_jabber}
   263         url       = http://www.cpan.org/modules/by-module/Net/
   264         regex     = Net-Jabber-(__VER__)\.tar\.gz
   265     }
   266     prog perl-net:Net-Patricia = {
   267         version   = %{V_net_patricia}
   268         url       = http://www.cpan.org/modules/by-module/Net/
   269         regex     = Net-Patricia-(__VER__)\.tar\.gz
   270     }
   271     prog perl-net:Net-IPv4Addr = {
   272         version   = %{V_net_ipv4addr}
   273         url       = http://www.cpan.org/modules/by-module/Net/
   274         regex     = Net-IPv4Addr-(__VER__)\.tar\.gz
   275     }
   276     prog perl-net:Net-IPv6Addr = {
   277         version   = %{V_net_ipv6addr}
   278         url       = http://www.cpan.org/modules/by-module/Net/
   279         regex     = Net-IPv6Addr-(__VER__)\.tar\.gz
   280     }
   281     prog perl-net:Math-Base85 = {
   282         version   = %{V_math_base85}
   283         url       = http://www.cpan.org/modules/by-module/Math/
   284         regex     = Math-Base85-(__VER__)\.tar\.gz
   285     }
   286     prog perl-net:Net-IRC = {
   287         version   = %{V_net_irc}
   288         url       = http://www.cpan.org/modules/by-module/Net/
   289         regex     = Net-IRC-(__VER__)\.tar\.gz
   290     }
   291     prog perl-net:IP-Country = {
   292         version   = %{V_ip_country}
   293         url       = http://www.cpan.org/modules/by-module/IP/
   294         regex     = IP-Country-(__VER__)\.tar\.gz
   295     }
   296     prog perl-net:IO-Socket-Multicast = {
   297         version   = %{V_io_socket_multicast}
   298         url       = http://www.cpan.org/modules/by-module/IO/
   299         regex     = IO-Socket-Multicast-(__VER__)\.tar\.gz
   300     }
   301     prog perl-net:Net-GrowlClient = {
   302         version   = %{V_net_growlclient}
   303         url       = http://www.cpan.org/modules/by-module/Net/
   304         regex     = Net-GrowlClient-(__VER__)\.tar\.gz
   305     }
   306     prog perl-net:Net-DHCP = {
   307         version   = %{V_net_dhcp}
   308         url       = http://www.cpan.org/modules/by-module/Net/
   309         regex     = Net-DHCP-(__VER__)\.tar\.gz
   310     }
   311     prog perl-net:Net-Proxy = {
   312         version   = %{V_net_proxy}
   313         url       = http://www.cpan.org/modules/by-module/Net/
   314         regex     = Net-Proxy-(__VER__)\.tar\.gz
   315     }
   317 %prep
   318     %setup -q -c
   319     %setup -q -T -D -a 1
   320     %setup -q -T -D -a 2
   321     %setup -q -T -D -a 3
   322     %setup -q -T -D -a 4
   323     %setup -q -T -D -a 5
   324     %setup -q -T -D -a 6
   325     %setup -q -T -D -a 7
   326     %setup -q -T -D -a 8
   327     %setup -q -T -D -a 9
   328     %setup -q -T -D -a 10
   329     %setup -q -T -D -a 11
   330     %setup -q -T -D -a 12
   331     %setup -q -T -D -a 13
   332     %setup -q -T -D -a 14
   333     %setup -q -T -D -a 15
   334     %setup -q -T -D -a 16
   335     %setup -q -T -D -a 17
   336     %setup -q -T -D -a 18
   337     %setup -q -T -D -a 19
   338     %setup -q -T -D -a 20
   339     %setup -q -T -D -a 21
   340     %setup -q -T -D -a 22
   341     %setup -q -T -D -a 23
   342     %setup -q -T -D -a 24
   343     %setup -q -T -D -a 25
   344     %setup -q -T -D -a 26
   345     %setup -q -T -D -a 27
   346     (
   347     %setup -q -T -D -a 28
   348     ) || true
   349     %setup -q -T -D -a 29
   350     sed <%{PATCH0} -e 's;@l_prefix@;%{l_prefix};g' | %{l_patch} -p0 -b
   352 %build
   354 %install
   355     rm -rf $RPM_BUILD_ROOT
   356     %{l_prefix}/bin/perl-openpkg prepare
   357     %{l_prefix}/bin/perl-openpkg -d %{SOURCE0}  configure build install
   358     %{l_prefix}/bin/perl-openpkg -d %{SOURCE1}  configure build install
   359     %{l_prefix}/bin/perl-openpkg -d %{SOURCE2}  configure build install
   360     %{l_prefix}/bin/perl-openpkg -d %{SOURCE3}  configure build install
   361     %{l_prefix}/bin/perl-openpkg -d %{SOURCE4}  configure build install
   362     %{l_prefix}/bin/perl-openpkg -d %{SOURCE5}  configure build install
   363     %{l_prefix}/bin/perl-openpkg -d %{SOURCE6}  configure build install
   364     %{l_prefix}/bin/perl-openpkg -d %{SOURCE7}  configure build install
   365     %{l_prefix}/bin/perl-openpkg -d %{SOURCE8}  configure build install
   366     %{l_prefix}/bin/perl-openpkg -d %{SOURCE9}  configure build install
   367     %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
   368     %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
   369     %{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install
   370     %{l_prefix}/bin/perl-openpkg -d %{SOURCE13} configure build install
   371     %{l_prefix}/bin/perl-openpkg -d %{SOURCE14} configure build install
   372     %{l_prefix}/bin/perl-openpkg -d %{SOURCE15} configure build install
   373     %{l_prefix}/bin/perl-openpkg -d %{SOURCE16} configure build install
   374 %if "%{with_pcap}" == "yes"
   375     %{l_prefix}/bin/perl-openpkg -d %{SOURCE17} configure build install
   376     %{l_prefix}/bin/perl-openpkg -d %{SOURCE18} configure build install
   377     %{l_prefix}/bin/perl-openpkg -d %{SOURCE19} \
   378         -A "INC='-I. %{l_cppflags}'" \
   379         -A "LIBS='%{l_ldflags} -lpcap'" \
   380         configure build install
   381 %endif
   382     %{l_prefix}/bin/perl-openpkg -d %{SOURCE20} configure build install
   383     %{l_prefix}/bin/perl-openpkg -d %{SOURCE21} configure build install
   384     %{l_prefix}/bin/perl-openpkg -d %{SOURCE22} configure build install
   385     %{l_prefix}/bin/perl-openpkg -d %{SOURCE23} configure build install
   386     %{l_prefix}/bin/perl-openpkg -d %{SOURCE24} configure build install
   387     %{l_prefix}/bin/perl-openpkg -d %{SOURCE25} configure build install
   388     %{l_prefix}/bin/perl-openpkg -d %{SOURCE26} configure build install
   389     %{l_prefix}/bin/perl-openpkg -d %{SOURCE27} configure build install
   390     %{l_prefix}/bin/perl-openpkg -d %{SOURCE28} configure build install
   391     %{l_prefix}/bin/perl-openpkg -d %{SOURCE29} configure build install
   392     %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
   393     %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat perl-openpkg-files`
   395 %files -f files
   397 %clean
   398     rm -rf $RPM_BUILD_ROOT

mercurial