Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
CrossToolchain:sh4
cross-sh4-zlib
cross-sh4-zlib.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File cross-sh4-zlib.spec of Package cross-sh4-zlib
# # spec file for package zlib (Version 1.2.3) # # Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: cross-sh4-zlib License: Other License(s), see package Group: System/Libraries Provides: cross-sh4-libz Autoreqprov: off BuildRequires: bison dejagnu flex gcc-c++ BuildRequires: cross-sh4-binutils cross-sh4-kernel-headers cross-sh4-glibc cross-sh4-gcc #Obsoletes: libz Version: 1.2.3 Release: 39 Summary: Data Compression Library Source: zlib-%{version}.tar.bz2 Patch: zlib-1.2.1-make-test.patch Patch1: zlib-1.2.1-vsnprintf.patch Patch2: zlib-1.2.1-CFLAGS.dif Patch3: zlib-1.2.2-format.patch URL: http://www.zlib.net/ BuildRoot: %{_tmppath}/%{name}-%{version}-build %if "%{name}" != "zlib" %define TARGET %(echo %{name}|sed -e "s/cross-\\(.*\\)-zlib/\\1/;s/-/_/g;s/parisc/hppa/;s/i.86/i586/;s/ppc/powerpc/") %endif %define HOST %(echo %{_target_cpu}|sed -e "s/parisc/hppa/" -e "s/i.86/i586/" -e "s/ppc/powerpc/")-suse-linux %if "%{name}" != "zlib" %define _prefix /opt/cross/%{TARGET}-linux/sys-root %define _lib lib %else %define _prefix / %endif %define INSTALL_ROOT $RPM_BUILD_ROOT/%{_prefix} %description ftp://ds.internic.net/rfc/rfc1950.txt (zlib format), rfc1951.txt (deflate format) and rfc1952.txt (gzip format). These documents are also available in other formats from ftp://ftp.uu.net/graphics/png/documents/zlib/zdoc-index.html. Authors: -------- Rob Hooft <hooft@EMBL-Heidelberg.DE> Michael Mauldin <mlm@cs.cmu.edu> %package devel Summary: Include Files and Libraries mandatory for Development. Group: Development/Languages/C and C++ Provides: libz:/usr/include/zlib.h Requires: zlib = %{version} Autoreqprov: on %description devel This package contains all necessary include files and libraries needed to develop applications that require the provided includes and libraries. %prep %setup -q -n zlib-%{version} %patch -p1 %patch1 %patch2 %patch3 -p1 %build echo TARGET = %{TARGET} CC="%{TARGET}-linux-gcc" CFLAGS="" ./configure --shared make #make test %install rm -rf %{INSTALL_ROOT} mkdir -p %{INSTALL_ROOT}/{%_lib,/usr/%_lib} mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man3 mkdir -p %{INSTALL_ROOT}/usr/include CC="%{TARGET}-linux-gcc" CFLAGS="" make install \ prefix=%{INSTALL_ROOT} \ libdir=%{INSTALL_ROOT}/usr/%{_lib} \ includedir=%{INSTALL_ROOT}/usr/include echo pwd = $PWD ln -sf libz.so.1 %{INSTALL_ROOT}/usr/%{_lib}/libz.so #rm %{INSTALL_ROOT}/%{_lib}/libz.so # static lib make libz.a install -m 644 libz.a %{INSTALL_ROOT}/usr/%{_lib} # manpage install -m 644 zlib.3 $RPM_BUILD_ROOT/%{_mandir}/man3 gzip $RPM_BUILD_ROOT/%{_mandir}/man3/zlib.3 install -m 644 zutil.h %{INSTALL_ROOT}/usr/include %clean rm -rf %RPM_BUILD_ROOT %files %defattr(-,root,root) %doc README ChangeLog algorithm.txt %{_prefix}/usr/%{_lib}/libz.so.1.2.* %{_prefix}/usr/%{_lib}/libz.so.1 %files devel %defattr(-,root,root) %doc %{_mandir}/man3/zlib.3.gz %{_prefix}/usr/include/zlib.h %{_prefix}/usr/include/zconf.h %{_prefix}/usr/include/zutil.h %{_prefix}/usr/%{_lib}/libz.so %{_prefix}/usr/%{_lib}/libz.a %changelog -n cross-sh4-zlib
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor