1 Summary: simple-to-use POP3 client library
2 Summary(pl.UTF-8): łatwa w użycia biblioteka klienta POP3
8 Source0: http://brouits.free.fr/libspopc/releases/%{name}-%{version}.tar.gz
9 # Source0-md5: 82a9fad896450fa4a95831f614cbd959
10 URL: http://brouits.free.fr/libspopc/
11 BuildRequires: openssl-devel
12 BuildRequires: sed >= 4.0
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 libspopc is a simple-to-use POP3 client library. It's primary goal is
17 to provide an easy and quick way to host a POP3 client within a
18 program to C developers without exposing them to socket programming.
19 However, the socket layer is also accessible. libspopc allows mail
20 programs to connect to many POP accounts and manage email. It
21 implements the client side of RFC 1939. The email client can download
22 email headers before downloading the entire message.
24 %description -l pl.UTF-8
25 libspopc jest łatwą w użyciu biblioteką kliencką POP3. Jej podstawowym
26 zadaniem jest dostarczenie łatwego i szybkiego w użyciu sposobu do
27 zaimplementowania klienta POP3 bez potrzeby nauki programowania gniazd
28 sieciowych. Warstwa gniazd jest także dostępna. libspopc umożliwia
29 programom łączenie się z wieloma kontami POP i zarządzanie pocztą.
30 Implementacja jest zgodna z RFC 1939. Klient może ściągnąć nagłówki
31 wiadomości przed ściągnięciem jej treści.
34 Summary: Header files for libspopc library
35 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libspopc
36 Group: Development/Libraries
37 Requires: %{name} = %{version}-%{release}
40 Header files for libspopc library.
42 %description devel -l pl.UTF-8
43 Pliki nagłówkowe biblioteki libspopc.
46 Summary: Static libspopc library
47 Summary(pl.UTF-8): Statyczna biblioteka libspopc
48 Group: Development/Libraries
49 Requires: %{name}-devel = %{version}-%{release}
52 Static libspopc library.
54 %description static -l pl.UTF-8
55 Statyczna biblioteka libspopc.
59 cat <<EOF > Makefile.pld
61 CFLAGS=%{rpmcflags} %{rpmcppflags} -Wall -Wextra -pedantic -pipe -fPIC -DUSE_SSL -D_REENTRANT -DUSE_SEM
63 LIBS=-lssl -lcrypto -lrt -pthread
64 OBJECTS=session.o queries.o parsing.o format.o objects.o libspopc.o mutex.o
66 all: libspopc.a libspopc.so.0.12.0
69 \$(CC) \$(CFLAGS) -c \$<
71 libspopc.a : \$(OBJECTS)
73 ar r libspopc.a \$(OBJECTS)
76 libspopc.so.0.12.0 : \$(OBJECTS)
78 \$(CC) -o libspopc.so.0.12.0 -shared \$(LDFLAGS) -Wl,-soname,libspopc.so.0 \$(OBJECTS) \$(LIBS)
81 install libspopc.a \$(DESTDIR)/%{_libdir}
82 install libspopc.so.0.12.0 \$(DESTDIR)/%{_libdir}
83 ln -sf libspopc.so.0.12.0 \$(DESTDIR)/%{_libdir}/libspopc.so.0
84 ln -sf libspopc.so.0.12.0 \$(DESTDIR)/%{_libdir}/libspopc.so
85 install libspopc.h \$(DESTDIR)/usr/include/
88 sed -i -e 's|\.\./libspopc\.h|libspopc.h|' examples/*.c
91 %{__make} -f Makefile.pld
94 rm -rf $RPM_BUILD_ROOT
95 install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir},%{_examplesdir}/%{name}-%{version}}
98 DESTDIR=$RPM_BUILD_ROOT -f Makefile.pld
100 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
103 rm -rf $RPM_BUILD_ROOT
105 %post -p /sbin/ldconfig
106 %postun -p /sbin/ldconfig
109 %defattr(644,root,root,755)
110 %doc AUTHORS ChangeLog README
111 %attr(755,root,root) %{_libdir}/libspopc.so.*.*.*
112 %attr(755,root,root) %ghost %{_libdir}/libspopc.so.0
115 %defattr(644,root,root,755)
116 %attr(755,root,root) %{_libdir}/libspopc.so
117 %{_includedir}/libspopc.h
118 %{_examplesdir}/%{name}-%{version}
121 %defattr(644,root,root,755)
122 %{_libdir}/libspopc.a