]> git.pld-linux.org Git - packages/courier-sox.git/blob - courier-sox.spec
- updated to 0.18
[packages/courier-sox.git] / courier-sox.spec
1 Summary:        Courier Socks 5 client library
2 Summary(pl.UTF-8):      Biblioteki klienckie Socks 5
3 Name:           courier-sox
4 Version:        0.10
5 Release:        1
6 License:        GPL
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)
20
21 %define         _libexecdir     %{_libdir}/courier-sox
22
23 %description
24 This is a generic Socks 5 client support library.
25
26 %description -l pl.UTF-8
27 Ogólna biblioteka kliencka Socks 5.
28
29 %package devel
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}
34
35 %description devel
36 This package contains header files for building applications that use
37 Socks 5 proxies.
38
39 %description devel -l pl.UTF-8
40 Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji używających
41 proxy Socks 5.
42
43 %package server
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}
49
50 %description server
51 This package contains the Courier Socks 5 server. Install this package
52 if you want to run a Socks 5 server.
53
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.
57
58 %package static
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}
63
64 %description static
65 This package contains static libraries for building applications that
66 use Socks 5 proxies.
67
68 %description static -l pl.UTF-8
69 Ten pakiet zawiera biblioteki statyczne do tworzenia aplikacji
70 używających proxy Socks 5.
71
72 %prep
73 %setup -q
74 %patch0 -p1
75
76 %build
77 %{__libtoolize}
78 %{__aclocal}
79 %{__autoconf}
80 %{__autoheader}
81 %{__automake}
82
83 ln -sf ../config.sub libltdl/config.sub
84
85 %configure \
86         --libexecdir=%{_libexecdir}
87
88 %{__make}
89 %{__make} check
90
91 %install
92 rm -rf $RPM_BUILD_ROOT
93
94 %{__make} install \
95         DESTDIR=$RPM_BUILD_ROOT
96
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
99
100 %clean
101 rm -rf $RPM_BUILD_ROOT
102
103 %post   -p /sbin/ldconfig
104 %postun -p /sbin/ldconfig
105
106 %post server
107 /sbin/chkconfig --add courier-sox
108 %service courier-sox restart
109
110 %preun server
111 if [ "$1" = "0" ]; then
112         %service courier-sox stop
113         /sbin/chkconfig --del courier-sox
114 fi
115
116 %files
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.*.*
121 %{_libdir}/lib*.la
122 %{_mandir}/man1/socksify*
123 %{_mandir}/man3/socks*
124 %{_mandir}/man5/*
125 %{_mandir}/man8/mkbl4*
126 %{_sysconfdir}/socksrc
127
128 %files devel
129 %defattr(644,root,root,755)
130 %attr(755,root,root) %{_libdir}/lib*.so
131 %{_includedir}/*
132
133 %files server
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
138 %dir %{_libexecdir}
139 %attr(755,root,root) %{_libexecdir}/sockd
140
141 %files static
142 %defattr(644,root,root,755)
143 %{_libdir}/lib*.a
This page took 0.113067 seconds and 3 git commands to generate.