1 Summary: Courier Socks 5 client library
2 Summary(pl.UTF-8): Biblioteki klienckie Socks 5
7 Group: Networking/Daemons
8 Source0: http://downloads.sourceforge.net/courier/%{name}-%{version}.tar.bz2
9 # Source0-md5: 7526b08d7eb6a797dad9b299934a09c3
10 Patch0: %{name}-init.patch
11 URL: http://www.courier-mta.org
12 BuildRequires: autoconf
13 BuildRequires: automake
14 BuildRequires: courier-authlib-devel
15 BuildRequires: gdbm-devel
16 BuildRequires: libltdl-devel
17 BuildRequires: libtool
18 BuildRequires: rpmbuild(macros) >= 1.268
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define _libexecdir %{_libdir}/courier-sox
24 This is a generic Socks 5 client support library.
26 %description -l pl.UTF-8
27 Ogólna biblioteka kliencka Socks 5.
30 Summary: Socks 5 client header files
31 Summary(pl.UTF-8): Pliki nagłówkowe klienta socks 5
32 Group: Development/Libraries
33 Requires: %{name} = %{version}-%{release}
36 This package contains header files for building applications that use
39 %description devel -l pl.UTF-8
40 Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji używających
44 Summary: Socks 5 server
45 Summary(pl.UTF-8): Serwer socks 5
46 Group: Networking/Utilities
47 Requires(post,preun): /sbin/chkconfig
48 Requires: %{name} = %{version}-%{release}
51 This package contains the Courier Socks 5 server. Install this package
52 if you want to run a Socks 5 server.
54 %description server -l pl.UTF-8
55 Ten pakiet zawiera serwer couriera socks 5. Jeżeli chcesz uruchamiać
56 serwer socks5, zainstaluj ten pakiet.
59 Summary: Socks 5 client static libraries
60 Summary(pl.UTF-8): Biblioteki statyczne klienta socks 5
61 Group: Development/Libraries
62 Requires: %{name}-devel = %{version}-%{release}
65 This package contains static libraries for building applications that
68 %description static -l pl.UTF-8
69 Ten pakiet zawiera biblioteki statyczne do tworzenia aplikacji
70 używających proxy Socks 5.
83 ln -sf ../config.sub libltdl/config.sub
86 --libexecdir=%{_libexecdir}
92 rm -rf $RPM_BUILD_ROOT
95 DESTDIR=$RPM_BUILD_ROOT
97 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
98 install courier-sox.sysvinit $RPM_BUILD_ROOT/etc/rc.d/init.d/courier-sox
101 rm -rf $RPM_BUILD_ROOT
103 %post -p /sbin/ldconfig
104 %postun -p /sbin/ldconfig
107 /sbin/chkconfig --add courier-sox
108 %service courier-sox restart
111 if [ "$1" = "0" ]; then
112 %service courier-sox stop
113 /sbin/chkconfig --del courier-sox
117 %defattr(644,root,root,755)
118 %doc AUTHORS ChangeLog NEWS README *.html
119 %attr(755,root,root) %{_bindir}/*
120 %attr(755,root,root) %{_libdir}/lib*.so.*.*
122 %{_mandir}/man1/socksify*
123 %{_mandir}/man3/socks*
125 %{_mandir}/man8/mkbl4*
126 %{_sysconfdir}/socksrc
129 %defattr(644,root,root,755)
130 %attr(755,root,root) %{_libdir}/lib*.so
134 %defattr(644,root,root,755)
135 %attr(754,root,root) /etc/rc.d/init.d/courier-sox
136 %{_mandir}/man1/sockd*
137 %attr(755,root,root) %{_sbindir}/sockd
139 %attr(755,root,root) %{_libexecdir}/sockd
142 %defattr(644,root,root,755)