diff -r 70d79f7a1825 -r b2ef87c65d24 perl-sys/perl-sys.spec
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/perl-sys/perl-sys.spec Fri Jan 09 17:12:49 2009 +0100
@@ -0,0 +1,450 @@
+##
+## perl-sys.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_unix_syslog 1.1
+%define V_archive_tar 1.42
+%define V_archive_zip 1.26
+%define V_archive_cpio 0.07
+%define V_expect 1.21
+%define V_storable 2.18
+%define V_ipc_sharelite 0.13
+%define V_ipc_shareable 0.60
+%define V_ipc_sharedcache 1.3
+%define V_ipc_run 0.82
+%define V_ipc_run3 0.042
+%define V_ipc_signal 1.00
+%define V_ipc_filter 0.002
+%define V_file_tail 0.99.3
+%define V_file_temp 0.21
+%define V_file_remove 1.42
+%define V_file_rename 0.05
+%define V_freezethaw 0.43
+%define V_authen_sasl 2.12
+%define V_authen_pam 0.16
+%define V_weakref 0.01
+%define V_filehandle_deluxe 0.92
+%define V_filehandle_rollback 1.06
+%define V_filehandle_unget 0.1622
+%define V_spiffy 0.30
+%define V_io 1.2301
+%define V_io_all 0.39
+%define V_io_multiplex 1.10
+%define V_io_interface 1.05
+%define V_io_util 1.5
+%define V_io_mux 0.08
+%define V_boulder 1.30
+%define V_error 0.17015
+%define V_file_fnmatch 0.02
+%define V_user 1.8
+%define V_file_rsync 0.42
+
+# package information
+Name: perl-sys
+Summary: Perl Modules for use with the system
+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: 20081228
+
+# package options
+%option with_pam no
+
+# list of sources
+Source0: http://www.cpan.org/modules/by-module/Unix/Unix-Syslog-%{V_unix_syslog}.tar.gz
+Source1: http://www.cpan.org/modules/by-module/Archive/Archive-Tar-%{V_archive_tar}.tar.gz
+Source2: http://www.cpan.org/modules/by-module/Archive/Archive-Zip-%{V_archive_zip}.tar.gz
+Source3: http://www.cpan.org/modules/by-module/Expect/Expect-%{V_expect}.tar.gz
+Source4: http://www.cpan.org/modules/by-module/Storable/Storable-%{V_storable}.tar.gz
+Source5: http://www.cpan.org/modules/by-module/IPC/IPC-Shareable-%{V_ipc_shareable}.tar.gz
+Source6: http://www.cpan.org/modules/by-module/File/File-Tail-%{V_file_tail}.tar.gz
+Source7: http://www.cpan.org/modules/by-module/FreezeThaw/FreezeThaw-%{V_freezethaw}.tar.gz
+Source8: http://www.cpan.org/modules/by-module/Authen/Authen-SASL-%{V_authen_sasl}.tar.gz
+Source9: http://www.cpan.org/authors/id/L/LU/LUKKA/WeakRef-%{V_weakref}.tar.gz
+Source10: http://www.cpan.org/modules/by-module/FileHandle/FileHandle-Deluxe-%{V_filehandle_deluxe}.tar.gz
+Source11: http://www.cpan.org/modules/by-module/FileHandle/FileHandle-Rollback-%{V_filehandle_rollback}.tar.gz
+Source12: http://www.cpan.org/modules/by-module/FileHandle/FileHandle-Unget-%{V_filehandle_unget}.tar.gz
+Source13: http://www.cpan.org/modules/by-module/IPC/IPC-ShareLite-%{V_ipc_sharelite}.tar.gz
+Source14: http://www.cpan.org/modules/by-module/IPC/IPC-SharedCache-%{V_ipc_sharedcache}.tar.gz
+Source15: http://www.cpan.org/modules/by-module/IPC/IPC-Run-%{V_ipc_run}.tar.gz
+Source16: http://www.cpan.org/modules/by-module/IPC/IPC-Signal-%{V_ipc_signal}.tar.gz
+Source17: http://www.cpan.org/modules/by-module/IPC/IPC-Filter-%{V_ipc_filter}.tar.gz
+Source18: http://www.cpan.org/authors/id/I/IN/INGY/Spiffy-%{V_spiffy}.tar.gz
+Source19: http://www.cpan.org/modules/by-module/IO/IO-%{V_io}.tar.gz
+Source20: http://www.cpan.org/modules/by-module/IO/IO-All-%{V_io_all}.tar.gz
+Source21: http://www.cpan.org/modules/by-module/IO/IO-Multiplex-%{V_io_multiplex}.tar.gz
+Source22: http://www.cpan.org/modules/by-module/IO/IO-Interface-%{V_io_interface}.tar.gz
+Source23: http://www.cpan.org/modules/by-module/IO/IO-Util-%{V_io_util}.tar.gz
+Source24: http://www.cpan.org/modules/by-module/Boulder/Boulder-%{V_boulder}.tar.gz
+Source25: http://www.cpan.org/modules/by-module/Error/Error-%{V_error}.tar.gz
+Source26: http://www.cpan.org/modules/by-module/IPC/IPC-Run3-%{V_ipc_run3}.tar.gz
+Source27: http://www.cpan.org/modules/by-module/IO/IO-Mux-%{V_io_mux}.tar.gz
+Source28: http://www.cpan.org/modules/by-module/File/File-FnMatch-%{V_file_fnmatch}.tar.gz
+Source29: http://www.cpan.org/modules/by-module/Authen/Authen-PAM-%{V_authen_pam}.tar.gz
+Source30: http://www.cpan.org/modules/by-module/Archive/Archive-Cpio-%{V_archive_cpio}.tar.gz
+Source31: http://www.cpan.org/authors/id/T/TB/TBONE/User-%{V_user}.tar.gz
+Source32: http://www.cpan.org/modules/by-module/File/File-Temp-%{V_file_temp}.tar.gz
+Source33: http://www.cpan.org/modules/by-module/File/File-Remove-%{V_file_remove}.tar.gz
+Source34: http://www.cpan.org/modules/by-module/File/File-Rename-%{V_file_rename}.tar.gz
+Source35: http://www.cpan.org/modules/by-module/File/File-Rsync-%{V_file_rsync}.tar.gz
+Patch0: perl-sys.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-time, perl-term
+PreReq: perl-time, perl-term
+%if "%{with_pam}" == "yes"
+BuildPreReq: PAM
+PreReq: PAM
+%endif
+AutoReq: no
+AutoReqProv: no
+
+%description
+ Perl modules for use with the system:
+ - Unix::Syslog (%{V_unix_syslog})
+ - Archive::Tar (%{V_archive_tar})
+ - Expect (%{V_expect})
+ - Storable (%{V_storable})
+ - IPC::ShareLite (%{V_ipc_sharelite})
+ - IPC::Shareable (%{V_ipc_shareable})
+ - IPC::SharedCache (%{V_ipc_sharedcache})
+ - IPC::Run (%{V_ipc_run})
+ - IPC::Run3 (%{V_ipc_run3})
+ - IPC::Signal (%{V_ipc_signal})
+ - IPC::Filter (%{V_ipc_filter})
+ - File::Tail (%{V_file_tail})
+ - FreezeThaw (%{V_freezethaw})
+ - Authen::SASL (%{V_authen_sasl})
+ - Authen::PAM (%{V_authen_pam}) [with_pam=yes]
+ - Archive::Zip (%{V_archive_zip})
+ - WeakRef (%{V_weakref})
+ - FileHandle::Deluxe (%{V_filehandle_deluxe})
+ - FileHandle::Rollback (%{V_filehandle_rollback})
+ - FileHandle::Unget (%{V_filehandle_unget})
+ - Spiffy (%{V_spiffy})
+ - IO (%{V_io})
+ - IO::All (%{V_io_all})
+ - IO::Multiplex (%{V_io_multiplex})
+ - IO::Interface (%{V_io_interface})
+ - IO::Util (%{V_io_util})
+ - IO::Mux (%{V_io_mux})
+ - Boulder (%{V_boulder})
+ - Error (%{V_error})
+ - File::FnMatch (%{V_file_fnmatch})
+ - Archive::Cpio (%{V_archive_cpio})
+ - User (%{V_user})
+ - File::Temp (%{V_file_temp})
+ - File::Remove (%{V_file_remove})
+ - File::Rename (%{V_file_rename})
+ - File::Rsync (%{V_file_rsync})
+
+%track
+ prog perl-sys:Archive-Tar = {
+ version = %{V_archive_tar}
+ url = http://www.cpan.org/modules/by-module/Archive/
+ regex = Archive-Tar-(__VER__)\.tar\.gz
+ }
+ prog perl-sys:Archive-Zip = {
+ version = %{V_archive_zip}
+ url = http://www.cpan.org/modules/by-module/Archive/
+ regex = Archive-Zip-(__VER__)\.tar\.gz
+ }
+ prog perl-sys:Authen-SASL = {
+ version = %{V_authen_sasl}
+ url = http://www.cpan.org/modules/by-module/Authen/
+ regex = Authen-SASL-(__VER__)\.tar\.gz
+ }
+ prog perl-sys:Expect = {
+ version = %{V_expect}
+ url = http://www.cpan.org/modules/by-module/Expect/
+ regex = Expect-(__VER__)\.tar\.gz
+ }
+ prog perl-sys:File-Tail = {
+ version = %{V_file_tail}
+ url = http://www.cpan.org/modules/by-module/File/
+ regex = File-Tail-(__VER__)\.tar\.gz
+ }
+ prog perl-sys:FileHandle-Deluxe = {
+ version = %{V_filehandle_deluxe}
+ url = http://www.cpan.org/modules/by-module/FileHandle/
+ regex = FileHandle-Deluxe-(__VER__)\.tar\.gz
+ }
+ prog perl-sys:FileHandle-Rollback = {
+ version = %{V_filehandle_rollback}
+ url = http://www.cpan.org/modules/by-module/FileHandle/
+ regex = FileHandle-Rollback-(__VER__)\.tar\.gz
+ }
+ prog perl-sys:FileHandle-Unget = {
+ version = %{V_filehandle_unget}
+ url = http://www.cpan.org/modules/by-module/FileHandle/
+ regex = FileHandle-Unget-(__VER__)\.tar\.gz
+ }
+ prog perl-sys:FreezeThaw = {
+ version = %{V_freezethaw}
+ url = http://www.cpan.org/modules/by-module/FreezeThaw/
+ regex = FreezeThaw-(__VER__)\.tar\.gz
+ }
+ prog perl-sys:IPC-Shareable = {
+ version = %{V_ipc_shareable}
+ url = http://www.cpan.org/modules/by-module/IPC/
+ regex = IPC-Shareable-(__VER__)\.tar\.gz
+ }
+ prog perl-sys:IPC-ShareLite = {
+ version = %{V_ipc_sharelite}
+ url = http://www.cpan.org/modules/by-module/IPC/
+ regex = IPC-ShareLite-(__VER__)\.tar\.gz
+ }
+ prog perl-sys:IPC-SharedCache = {
+ version = %{V_ipc_sharedcache}
+ url = http://www.cpan.org/modules/by-module/IPC/
+ regex = IPC-SharedCache-(__VER__)\.tar\.gz
+ }
+ prog perl-sys:IPC-Run = {
+ version = %{V_ipc_run}
+ url = http://www.cpan.org/modules/by-module/IPC/
+ regex = IPC-Run-(__VER__)\.tar\.gz
+ }
+ prog perl-sys:IPC-Run3 = {
+ version = %{V_ipc_run3}
+ url = http://www.cpan.org/modules/by-module/IPC/
+ regex = IPC-Run3-(__VER__)\.tar\.gz
+ }
+ prog perl-sys:IPC-Signal = {
+ version = %{V_ipc_signal}
+ url = http://www.cpan.org/modules/by-module/IPC/
+ regex = IPC-Signal-(__VER__)\.tar\.gz
+ }
+ prog perl-sys:IPC-Filter = {
+ version = %{V_ipc_filter}
+ url = http://www.cpan.org/modules/by-module/IPC/
+ regex = IPC-Filter-(__VER__)\.tar\.gz
+ }
+ prog perl-sys:Storable = {
+ version = %{V_storable}
+ url = http://www.cpan.org/modules/by-module/Storable/
+ regex = Storable-(__VER__)\.tar\.gz
+ }
+ prog perl-sys:Unix-Syslog = {
+ version = %{V_unix_syslog}
+ url = http://www.cpan.org/modules/by-module/Unix/
+ regex = Unix-Syslog-(__VER__)\.tar\.gz
+ }
+ prog perl-sys:WeakRef = {
+ version = %{V_weakref}
+ url = http://www.cpan.org/authors/id/L/LU/LUKKA/
+ regex = WeakRef-(__VER__)\.tar\.gz
+ }
+ prog perl-sys:Spiffy = {
+ version = %{V_spiffy}
+ url = http://www.cpan.org/authors/id/I/IN/INGY/
+ regex = Spiffy-(__VER__)\.tar\.gz
+ }
+ prog perl-sys:IO = {
+ version = %{V_io}
+ url = http://www.cpan.org/modules/by-module/IO/
+ regex = \bIO-(__VER__)\.tar\.gz
+ }
+ prog perl-sys:IO-All = {
+ version = %{V_io_all}
+ url = http://www.cpan.org/modules/by-module/IO/
+ regex = IO-All-(__VER__)\.tar\.gz
+ }
+ prog perl-sys:IO-Multiplex = {
+ version = %{V_io_multiplex}
+ url = http://www.cpan.org/modules/by-module/IO/
+ regex = IO-Multiplex-(__VER__)\.tar\.gz
+ }
+ prog perl-sys:IO-Interface = {
+ version = %{V_io_interface}
+ url = http://www.cpan.org/modules/by-module/IO/
+ regex = IO-Interface-(__VER__)\.tar\.gz
+ }
+ prog perl-sys:IO-Util = {
+ version = %{V_io_util}
+ url = http://www.cpan.org/modules/by-module/IO/
+ regex = IO-Util-(__VER__)\.tar\.gz
+ }
+ prog perl-sys:IO-Mux = {
+ version = %{V_io_mux}
+ url = http://www.cpan.org/modules/by-module/IO/
+ regex = IO-Mux-(__VER__)\.tar\.gz
+ }
+ prog perl-sys:Boulder = {
+ version = %{V_boulder}
+ url = http://www.cpan.org/modules/by-module/Boulder/
+ regex = Boulder-(__VER__)\.tar\.gz
+ }
+ prog perl-sys:Error = {
+ version = %{V_error}
+ url = http://www.cpan.org/modules/by-module/Error/
+ regex = Error-(__VER__)\.tar\.gz
+ }
+ prog perl-sys:File-FnMatch = {
+ version = %{V_file_fnmatch}
+ url = http://www.cpan.org/modules/by-module/File/
+ regex = File-FnMatch-(__VER__)\.tar\.gz
+ }
+ prog perl-sys:Authen-PAM = {
+ version = %{V_authen_pam}
+ url = http://www.cpan.org/modules/by-module/Authen/
+ regex = Authen-PAM-(__VER__)\.tar\.gz
+ }
+ prog perl-sys:Archive-Cpio = {
+ version = %{V_archive_cpio}
+ url = http://www.cpan.org/modules/by-module/Archive/
+ regex = Archive-Cpio-(__VER__)\.tar\.gz
+ }
+ prog perl-sys:User = {
+ version = %{V_user}
+ url = http://www.cpan.org/authors/id/T/TB/TBONE/
+ regex = User-(__VER__)\.tar\.gz
+ }
+ prog perl-sys:File-Temp = {
+ version = %{V_file_temp}
+ url = http://www.cpan.org/modules/by-module/File/
+ regex = File-Temp-(__VER__)\.tar\.gz
+ }
+ prog perl-sys:File-Remove = {
+ version = %{V_file_remove}
+ url = http://www.cpan.org/modules/by-module/File/
+ regex = File-Remove-(__VER__)\.tar\.gz
+ }
+ prog perl-sys:File-Rename = {
+ version = %{V_file_rename}
+ url = http://www.cpan.org/modules/by-module/File/
+ regex = File-Rename-(__VER__)\.tar\.gz
+ }
+ prog perl-sys:File-Rsync = {
+ version = %{V_file_rsync}
+ url = http://www.cpan.org/modules/by-module/File/
+ regex = File-Rsync-(__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
+ %setup -q -T -D -a 12
+ %setup -q -T -D -a 13
+ %setup -q -T -D -a 14
+ %setup -q -T -D -a 15
+ %setup -q -T -D -a 16
+ %setup -q -T -D -a 17
+ %setup -q -T -D -a 18
+ %setup -q -T -D -a 19
+ %setup -q -T -D -a 20
+ %setup -q -T -D -a 21
+ %setup -q -T -D -a 22
+ %setup -q -T -D -a 23
+ %setup -q -T -D -a 24
+ %setup -q -T -D -a 25
+ %setup -q -T -D -a 26
+ %setup -q -T -D -a 27
+ %setup -q -T -D -a 28
+ %setup -q -T -D -a 29
+ %setup -q -T -D -a 30
+ %setup -q -T -D -a 31
+ %setup -q -T -D -a 32
+ %setup -q -T -D -a 33
+ %setup -q -T -D -a 34
+ %setup -q -T -D -a 35
+ %patch -p0
+
+%build
+ %{l_shtool} subst \
+ -e 's;/usr/local/bin/rsync;%{l_prefix}/bin/rsync;' \
+ -e 's;;"";' \
+ File-Rsync-*/makepm.PL
+
+%install
+ rm -rf $RPM_BUILD_ROOT
+ %{l_prefix}/bin/perl-openpkg prepare
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
+ %{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 -d %{SOURCE12} configure build install
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE13} configure build install
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE14} configure build install
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE15} configure build install
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE16} configure build install
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE17} configure build install
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE18} configure build install
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE19} configure build install
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE20} configure build install
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE21} configure build install
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE22} configure build install
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE23} configure build install
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE24} configure build install
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE25} configure build install
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE26} configure build install
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE27} configure build install
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE28} configure build install
+%if "%{with_pam}" == "yes"
+ export CC="%{l_cc}"
+ export CFLAGS="%{l_cflags} -I`%{l_rc} --query pam_incdir`"
+ export CPPFLAGS="%{l_cppflags} -I`%{l_rc} --query pam_incdir`"
+ export LDFLAGS="%{l_ldflags} -L`%{l_rc} --query pam_libdir`"
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE29} configure build install
+%endif
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE30} configure build install
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE31} configure build install
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE32} configure build install
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE33} configure build install
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE34} configure build install
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE35} 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
+