michael@612: ## michael@612: ## cpio.spec -- OpenPKG RPM Package Specification michael@612: ## Copyright (c) 2000-2010 OpenPKG Foundation e.V. michael@612: ## michael@612: ## Permission to use, copy, modify, and distribute this software for michael@612: ## any purpose with or without fee is hereby granted, provided that michael@612: ## the above copyright notice and this permission notice appear in all michael@612: ## copies. michael@612: ## michael@612: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED michael@612: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@612: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@612: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@612: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@612: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@612: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@612: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@612: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@612: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@612: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@612: ## SUCH DAMAGE. michael@612: ## michael@612: michael@612: # package information michael@612: Name: cpio michael@612: Summary: Un-/Packing of CPIO Archive Files michael@612: URL: http://www.gnu.org/software/cpio/ michael@612: Vendor: Free Software Foundation michael@612: Packager: OpenPKG Foundation e.V. michael@612: Distribution: OpenPKG Community michael@612: Class: BASE michael@612: Group: Archiver michael@612: License: GPL michael@612: Version: 2.11 michael@613: Release: 20120800 michael@612: michael@612: # list of sources michael@612: Source0: ftp://ftp.gnu.org/pub/gnu/cpio/cpio-%{version}.tar.gz michael@612: Patch0: cpio.patch michael@612: michael@612: # build information michael@614: BuildPreReq: OpenPKG, openpkg >= 20100101, make, texinfo michael@612: PreReq: OpenPKG, openpkg >= 20100101 michael@612: michael@612: %description michael@612: CPIO copies files into or out of a CPIO or TAR archive, which is a michael@612: file that contains other files plus information about them, such michael@612: as their file name, owner, timestamps, and access permissions. The michael@612: archive can be another file on the disk, a magnetic tape, or a pipe. michael@612: michael@612: %track michael@612: prog cpio = { michael@612: version = %{version} michael@612: url = ftp://ftp.gnu.org/pub/gnu/cpio/ michael@612: regex = cpio-(__VER__)\.tar\.gz michael@612: } michael@612: michael@612: %prep michael@612: %setup -q michael@612: %patch -p0 michael@612: michael@612: %build michael@613: case "%{l_platform -t}" in michael@613: *-sunos5.10 ) michael@613: loclibs="-lget" michael@613: ( echo "The libc(3) distributed with Solaris 10 does not provide the getdelim(3)" michael@613: echo "and getline(3) nonstandard C functions needed by this package. Prepare" michael@613: echo "for build failure or install the optional libget(3) package as a stopgap." michael@613: ) | %{l_rpmtool} msg -b -t warn michael@613: ;; michael@613: esac michael@612: CC="%{l_cc}" \ michael@612: CFLAGS="%{l_cflags -O}" \ michael@613: LIBS="$loclibs" \ michael@612: GREP="grep" \ michael@612: ./configure \ michael@612: --prefix=%{l_prefix} \ michael@612: --datarootdir=%{l_prefix} \ michael@612: --libexecdir=%{l_prefix}/libexec/cpio michael@612: %{l_make} %{l_mflags -O} michael@612: michael@612: %install michael@613: %{l_make} %{l_mflags} install DESTDIR="$RPM_BUILD_ROOT" michael@612: rm -rf $RPM_BUILD_ROOT%{l_prefix}/locale michael@612: rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir michael@613: rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/charset.alias michael@612: mv $RPM_BUILD_ROOT%{l_prefix}/man/man1/mt.1 \ michael@612: $RPM_BUILD_ROOT%{l_prefix}/man/man1/rmt.1 michael@612: strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true michael@612: strip $RPM_BUILD_ROOT%{l_prefix}/libexec/cpio/* 2>/dev/null || true michael@612: %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} michael@612: michael@612: %files -f files michael@612: michael@612: %clean michael@612: