Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:csbuild:DBA
libc-client
libc-client.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libc-client.spec of Package libc-client
%define soname c-client %define somajver 2007 %define shlibname lib%{soname}.so.%{somajver} Summary: C-client mail access routines for IMAP and POP protocols Name: libc-client Version: 2007e Release: 1 # See LICENSE.txt, http://www.apache.org/licenses/LICENSE-2.0 License: Apache-2.0 Group: System Environment/Daemons URL: http://www.washington.edu/imap/ # Old (non-latest) releases live at ftp://ftp.cac.washington.edu/imap/old/ Source0: ftp://ftp.cac.washington.edu/imap/imap-%{version}.tar.gz Source1: libc-client-rpmlintrc Patch1: imap-2007-paths.patch Patch5: imap-2007e-overflow.patch Patch9: imap-2007e-shared.patch Patch10: imap-2007e-authmd5.patch Patch11: imap-2007f-cclient-only.patch Patch12: imap-2007f-ldflags.patch Patch13: without_gss_nt_service_name.patch Patch20: 1006_openssl11_autoverify.patch Patch21: 2014_openssl1.1.1_sni.patch Patch30: 0001-add-extra-to-tmp-buffer.patch Patch31: 0002-These-are-only-used-with-very-old-openssl.patch Patch32: 0003-I-had-to-repair-this-code-because-I-could-not-turn-l.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: krb5-devel pam-devel %if 0%{?suse_version} >= 1200 #!BuildIgnore: openssl-devel libopenssl-devel openssl BuildRequires: dba-openssl-102k-static %define ssldir /DBA/openssl/1.0.2k %else BuildRequires: openssl-devel %endif #!BuildIgnore: nspr dba-geoip-148 dba-geoip-160 %description C-client is a common API for accessing mailboxes. It is used internally by the popular PINE mail reader, the University of Washington's IMAP server and PHP. %package devel Summary: Development tools for programs which will use the IMAP library. Group: Development/Libraries Requires: libc-client = %{version}-%{release} %description devel The c-client-devel package contains the header files and static libraries for developing programs which will use the C-client common API. %prep %setup -q -n imap-%{version} chmod -R u+w . %patch1 -p1 -b .paths %patch5 -p1 -b .overflow %patch9 -p1 -b .shared %patch10 -p1 -b .authmd5 #%patch12 -p1 #%patch13 -p1 %if 0%{?centos_version} >= 800 || 0%{?rhel_version} >= 800 %patch11 -p1 -b .cclient %patch20 -p1 %patch21 -p1 %patch30 -p1 %patch31 -p1 %patch32 -p1 %endif %build # Kerberos setup test -f %{_sysconfdir}/profile.d/krb5-devel.sh && source %{_sysconfdir}/profile.d/krb5-devel.sh test -f %{_sysconfdir}/profile.d/krb5.sh && source %{_sysconfdir}/profile.d/krb5.sh GSSDIR=$(krb5-config --prefix) export GSSDIR %if 0%{?suse_version} >= 1200 export EXTRACFLAGS="$EXTRACFLAGS -I%{ssldir}/include" export EXTRACFLAGS="$EXTRACFLAGS -fPIC $RPM_OPT_FLAGS" export EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing" export EXTRALDFLAGS="$EXTRALDFLAGS -L%{ssldir}/lib -lssl -lcrypto -ldl -pthread -Wl,-rpath" SPECIALS="GSSDIR=${GSSDIR} LOCKPGM=%{_sbindir}/mlock SSLCERTS=%{ssldir}/certs SSLDIR=%{ssldir} SSLINCLUDE=%{ssldir}/include SSLKEYS=%{ssldir}/private SSLLIB=%{ssldir}\lib" \ %else # SSL setup, probably legacy-only, but shouldn't hurt -- Rex export EXTRACFLAGS="$EXTRACFLAGS $(pkg-config --cflags openssl 2>/dev/null)" # $RPM_OPT_FLAGS export EXTRACFLAGS="$EXTRACFLAGS -fPIC $RPM_OPT_FLAGS" # jorton added these, I'll assume he knows what he's doing. :) -- Rex export EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing" %if 0%{?fedora} > 4 || 0%{?rhel} > 4 export EXTRACFLAGS="$EXTRACFLAGS -Wno-pointer-sign -Wno-parentheses" %endif %if 0%{?centos_version} >= 800 || 0%{?rhel_version} >= 800 export EXTRALDFLAGS="$EXTRALDFLAGS $(pkg-config --libs openssl 2>/dev/null) -Wl,-rpath,/lib64 -Wl,-rpath" %else export EXTRALDFLAGS="$EXTRALDFLAGS $(pkg-config --libs openssl 2>/dev/null) -Wl,-rpath" %endif export SPECIALS="GSSDIR=${GSSDIR} LOCKPGM=%{_sbindir}/mlock SSLCERTS=%{ssldir}/certs SSLDIR=%{ssldir} SSLINCLUDE=%{_includedir}/openssl SSLKEYS=%{ssldir}/private SSLLIB=%{_libdir}" \ %endif echo -e "y\ny" | \ make %{?_smp_mflags} lnp \ IP=6 \ EXTRACFLAGS="$EXTRACFLAGS" \ EXTRALDFLAGS="$EXTRALDFLAGS" \ %if 0%{?suse_version} >= 1200 %else EXTRAAUTHENTICATORS=gss \ %endif SPECIALS="$SPECIALS" \ SSLTYPE=unix \ CCLIENTLIB=$(pwd)/c-client/%{shlibname} \ SHLIBBASE=%{soname} \ SHLIBNAME=%{shlibname} # Blank line %install # prevent rpath problem on suse export NO_BRP_CHECK_RPATH=true rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_libdir} install -p -m 755 ./c-client/%{shlibname} $RPM_BUILD_ROOT%{_libdir}/ ln -s %{shlibname} $RPM_BUILD_ROOT%{_libdir}/lib%{soname}.so install -p -m 755 ./c-client/c-client.a $RPM_BUILD_ROOT%{_libdir}/ ln -s c-client.a $RPM_BUILD_ROOT%{_libdir}/lib%{soname}.a mkdir -p $RPM_BUILD_ROOT%{_includedir}/imap install -m 644 ./c-client/*.h $RPM_BUILD_ROOT%{_includedir}/imap # Added linkage.c to fix (#34658) <mharris> install -m 644 ./c-client/linkage.c $RPM_BUILD_ROOT%{_includedir}/imap install -m 644 ./src/osdep/tops-20/shortsym.h $RPM_BUILD_ROOT%{_includedir}/imap mkdir -p $RPM_BUILD_ROOT%{_includedir}/imap/lib install -m 644 ./c-client/c-client.a $RPM_BUILD_ROOT%{_includedir}/imap/lib cd $RPM_BUILD_ROOT%{_includedir}/imap/lib mv c-client.a lib%{soname}.a #mkdir -p $RPM_BUILD_ROOT/%{_datadir}/ssl/certs # don't ship quite so many docs rm -rf docs/rfc docs/FAQ.txt mkdir -p $RPM_BUILD_ROOT%{_sysconfdir} touch $RPM_BUILD_ROOT%{_sysconfdir}/c-client.cf %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc LICENSE.txt NOTICE SUPPORT %doc docs/RELNOTES docs/*.txt %ghost %config(missingok,noreplace) %{_sysconfdir}/c-client.cf %{_libdir}/lib%{soname}.so.* %{_libdir}/lib%{soname}.a %{_libdir}/%{soname}.a %files devel %defattr(-,root,root) %{_includedir}/imap %{_libdir}/lib%{soname}.so %{_libdir}/lib%{soname}.a %{_libdir}/%{soname}.a %changelog * Tue Aug 25 2020 Dennis Hampe <dennis.hampe@bertelsmann.de> - fix CentOS 8 * Fri Jul 14 2017 Holger Manthey <holger.manthey@bertelsmann.de> - initial package
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