143 lines
4.0 KiB
RPMSpec
143 lines
4.0 KiB
RPMSpec
Name: libimap-c-client
|
|
Version: 2007f
|
|
Release: 2mamba
|
|
Summary: University of Washington IMAP client library
|
|
Group: Network/Libraries
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: http://www.washington.edu/imap/
|
|
Source: ftp://ftp.cac.washington.edu/imap/imap-%{version}.tar.gz
|
|
Patch0: libimap-c-client-2007f-libopenssl-1.1.patch
|
|
Patch1: libimap-c-client-2007f-shared-library.patch
|
|
License: Free-Fork License
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: ldconfig
|
|
BuildRequires: libe2fs-devel
|
|
BuildRequires: libkrb5-devel
|
|
BuildRequires: libopenssl-devel
|
|
BuildRequires: libpam-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: libopenssl-devel >= 1.1.1.g
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%description
|
|
University of Washington IMAP client library.
|
|
This package contains the shared libraries.
|
|
|
|
%package -n imap
|
|
Summary: Imap C-Client
|
|
Group: Applications/Networking
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%description -n imap
|
|
University of Washington IMAP client library.
|
|
|
|
%package devel
|
|
Summary: Development package of %{name}
|
|
Group: Development/Libraries
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%description devel
|
|
University of Washington IMAP client library.
|
|
This package contains static libraries and header files needed for development.
|
|
|
|
%debug_package
|
|
|
|
%prep
|
|
%setup -q -n imap-%{version}
|
|
%patch0 -p1
|
|
%patch1 -p1
|
|
|
|
sed \
|
|
-e "s:-g -fno-omit-frame-pointer -O6:\${optflags}:" \
|
|
-e "s:SSLDIR=/usr/local/ssl:SSLDIR=%{_prefix}:" \
|
|
-e "s:SSLCERTS=\$(SSLDIR)/certs:SSLCERTS=/etc/ssl/certs:" \
|
|
-i src/osdep/unix/Makefile
|
|
|
|
%build
|
|
#make slx SSLDIR=%{_prefix} GCCOPTLEVEL="%{optflags}"
|
|
|
|
echo "y" | make lnp \
|
|
EXTRAAUTHENTICATORS=gss \
|
|
PASSWDTYPE=pam \
|
|
SPECIALAUTHENTICATORS=ssl \
|
|
SSLTYPE=unix \
|
|
EXTRACFLAGS="${optflags} -fPIC -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lpam"
|
|
|
|
#\
|
|
# EXTRALDFLAGS="${LDFLAGS}"
|
|
|
|
%install
|
|
[ "%{buildroot}" != "/" ] && rm -rf "%{buildroot}"
|
|
|
|
# server
|
|
install -d %{buildroot}%{_bindir}
|
|
install -D -m755 imapd/imapd %{buildroot}%{_bindir}/imapd
|
|
install -D -m755 ipopd/ipop2d %{buildroot}%{_bindir}/ipop2d
|
|
install -D -m755 ipopd/ipop3d %{buildroot}%{_bindir}/ipop3d
|
|
|
|
## install xinetd.d configs
|
|
#install -D -m644 ../imap $pkgdir/etc/xinetd.d/imap
|
|
#install -D -m644 ../ipop2 $pkgdir/etc/xinetd.d/ipop2
|
|
#install -D -m644 ../ipop3 $pkgdir/etc/xinetd.d/ipop3
|
|
|
|
# lib
|
|
install -d %{buildroot}%{_includedir}/imap
|
|
|
|
install -m 644 c-client/*.h \
|
|
%{buildroot}%{_includedir}/imap
|
|
|
|
install -D -m 644 c-client/c-client.a \
|
|
%{buildroot}%{_libdir}/c-client.a
|
|
ln -sf c-client.a %{buildroot}%{_libdir}/libc-client.a
|
|
|
|
install -D -m755 c-client/libc-client.so.1.0.0 %{buildroot}%{_libdir}/libc-client.so.1.0.0
|
|
ln -sf %{_libdir}/libc-client.so.1.0.0 %{buildroot}%{_libdir}/libc-client.so.1
|
|
ln -sf %{_libdir}/libc-client.so.1.0.0 %{buildroot}%{_libdir}/libc-client.so
|
|
|
|
%post -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%clean
|
|
[ "%{buildroot}" != "/" ] && rm -rf "%{buildroot}"
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libc-client.so.*
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%dir %{_includedir}/imap
|
|
%{_includedir}/imap/*.h
|
|
%{_libdir}/libc-client.so
|
|
%{_libdir}/c-client.a
|
|
%{_libdir}/libc-client.a
|
|
|
|
%files -n imap
|
|
%defattr(-,root,root)
|
|
%{_bindir}/imapd
|
|
%{_bindir}/ipop2d
|
|
%{_bindir}/ipop3d
|
|
|
|
%changelog
|
|
* Thu May 28 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2007f-2mamba
|
|
- rebuilt with current openssl and shared library
|
|
|
|
* Wed Jul 11 2012 Automatic Build System <autodist@mambasoft.it> 2007f-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Jul 27 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2007e-1mamba
|
|
- update to 2007e
|
|
|
|
* Wed May 10 2006 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 2004g-1qilnx
|
|
- update to version 2004g by autospec
|
|
- added license
|
|
|
|
* Thu Dec 18 2003 Silvan Calarco <silvan.calarco@mambasoft.it> 2002e-1qilnx
|
|
- new version rebuild
|
|
|
|
* Tue Sep 09 2003 Silvan Calarco <silvan.calarco@mambasoft.it> 2002d-1qilnx
|
|
- first build
|