Tue, 28 Aug 2012 18:53:10 +0200
Import package vendor original specs for necessary manipulations.
cpio/cpio.patch | file | annotate | diff | comparison | revisions | |
cpio/cpio.spec | file | annotate | diff | comparison | revisions |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/cpio/cpio.patch Tue Aug 28 18:53:10 2012 +0200 1.3 @@ -0,0 +1,48 @@ 1.4 +Index: lib/rtapelib.c 1.5 +--- lib/rtapelib.c.orig 2009-03-19 12:47:19 +0100 1.6 ++++ lib/rtapelib.c 2009-06-20 17:36:22 +0200 1.7 +@@ -628,7 +628,7 @@ 1.8 + { 1.9 + char command_buffer[COMMAND_BUFFER_SIZE]; 1.10 + char operand_buffer[UINTMAX_STRSIZE_BOUND]; 1.11 +- uintmax_t u = offset < 0 ? - (uintmax_t) offset : (uintmax_t) offset; 1.12 ++ unsigned long u = offset < 0 ? - (unsigned long) offset : (unsigned long) offset; 1.13 + char *p = operand_buffer + sizeof operand_buffer; 1.14 + 1.15 + *--p = 0; 1.16 +@@ -670,9 +670,9 @@ 1.17 + { 1.18 + char command_buffer[COMMAND_BUFFER_SIZE]; 1.19 + char operand_buffer[UINTMAX_STRSIZE_BOUND]; 1.20 +- uintmax_t u = (((struct mtop *) argument)->mt_count < 0 1.21 +- ? - (uintmax_t) ((struct mtop *) argument)->mt_count 1.22 +- : (uintmax_t) ((struct mtop *) argument)->mt_count); 1.23 ++ unsigned long u = (((struct mtop *) argument)->mt_count < 0 1.24 ++ ? - (unsigned long) ((struct mtop *) argument)->mt_count 1.25 ++ : (unsigned long) ((struct mtop *) argument)->mt_count); 1.26 + char *p = operand_buffer + sizeof operand_buffer; 1.27 + 1.28 + *--p = 0; 1.29 +Index: lib/system.h 1.30 +--- lib/system.h.orig 2009-06-20 10:29:22 +0200 1.31 ++++ lib/system.h 2009-06-20 17:36:22 +0200 1.32 +@@ -425,7 +425,7 @@ 1.33 + 1.34 + #include <intprops.h> 1.35 + 1.36 +-#define UINTMAX_STRSIZE_BOUND INT_BUFSIZE_BOUND (uintmax_t) 1.37 ++#define UINTMAX_STRSIZE_BOUND INT_BUFSIZE_BOUND (unsigned long) 1.38 + 1.39 + /* Prototypes for external functions. */ 1.40 + 1.41 +Index: src/userspec.c 1.42 +--- src/userspec.c.orig 2009-02-14 19:15:50 +0100 1.43 ++++ src/userspec.c 2009-06-20 17:41:54 +0200 1.44 +@@ -20,7 +20,6 @@ 1.45 + /* Written by David MacKenzie <djm@gnu.ai.mit.edu>. */ 1.46 + 1.47 + #include <system.h> 1.48 +-#include <alloca.h> 1.49 + #include <stdio.h> 1.50 + #include <ctype.h> 1.51 + #include <sys/types.h>
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/cpio/cpio.spec Tue Aug 28 18:53:10 2012 +0200 2.3 @@ -0,0 +1,85 @@ 2.4 +## 2.5 +## cpio.spec -- OpenPKG RPM Package Specification 2.6 +## Copyright (c) 2000-2010 OpenPKG Foundation e.V. <http://openpkg.net/> 2.7 +## 2.8 +## Permission to use, copy, modify, and distribute this software for 2.9 +## any purpose with or without fee is hereby granted, provided that 2.10 +## the above copyright notice and this permission notice appear in all 2.11 +## copies. 2.12 +## 2.13 +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED 2.14 +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 2.15 +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 2.16 +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR 2.17 +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2.18 +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 2.19 +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 2.20 +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 2.21 +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 2.22 +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 2.23 +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2.24 +## SUCH DAMAGE. 2.25 +## 2.26 + 2.27 +# package information 2.28 +Name: cpio 2.29 +Summary: Un-/Packing of CPIO Archive Files 2.30 +URL: http://www.gnu.org/software/cpio/ 2.31 +Vendor: Free Software Foundation 2.32 +Packager: OpenPKG Foundation e.V. 2.33 +Distribution: OpenPKG Community 2.34 +Class: BASE 2.35 +Group: Archiver 2.36 +License: GPL 2.37 +Version: 2.11 2.38 +Release: 20100311 2.39 + 2.40 +# list of sources 2.41 +Source0: ftp://ftp.gnu.org/pub/gnu/cpio/cpio-%{version}.tar.gz 2.42 +Patch0: cpio.patch 2.43 + 2.44 +# build information 2.45 +BuildPreReq: OpenPKG, openpkg >= 20100101, texinfo 2.46 +PreReq: OpenPKG, openpkg >= 20100101 2.47 + 2.48 +%description 2.49 + CPIO copies files into or out of a CPIO or TAR archive, which is a 2.50 + file that contains other files plus information about them, such 2.51 + as their file name, owner, timestamps, and access permissions. The 2.52 + archive can be another file on the disk, a magnetic tape, or a pipe. 2.53 + 2.54 +%track 2.55 + prog cpio = { 2.56 + version = %{version} 2.57 + url = ftp://ftp.gnu.org/pub/gnu/cpio/ 2.58 + regex = cpio-(__VER__)\.tar\.gz 2.59 + } 2.60 + 2.61 +%prep 2.62 + %setup -q 2.63 + %patch -p0 2.64 + 2.65 +%build 2.66 + CC="%{l_cc}" \ 2.67 + CFLAGS="%{l_cflags -O}" \ 2.68 + GREP="grep" \ 2.69 + ./configure \ 2.70 + --prefix=%{l_prefix} \ 2.71 + --datarootdir=%{l_prefix} \ 2.72 + --libexecdir=%{l_prefix}/libexec/cpio 2.73 + %{l_make} %{l_mflags -O} 2.74 + 2.75 +%install 2.76 + %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" 2.77 + rm -rf $RPM_BUILD_ROOT%{l_prefix}/locale 2.78 + rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir 2.79 + mv $RPM_BUILD_ROOT%{l_prefix}/man/man1/mt.1 \ 2.80 + $RPM_BUILD_ROOT%{l_prefix}/man/man1/rmt.1 2.81 + strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true 2.82 + strip $RPM_BUILD_ROOT%{l_prefix}/libexec/cpio/* 2>/dev/null || true 2.83 + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} 2.84 + 2.85 +%files -f files 2.86 + 2.87 +%clean 2.88 +