]> git.pld-linux.org Git - packages/courier-sox.git/blob - courier-sox.spec
6976572a2b4c83906524c0bb62f16b42749c39e0
[packages/courier-sox.git] / courier-sox.spec
1 Summary:        Courier Socks 5 client library
2 Summary(pl):    Biblioteki klienckie Socks 5
3 Name:           courier-sox
4 Version:        0.06
5 Release:        1
6 License:        GPL
7 Group:          Networking/Daemons
8 #Source0:       http://dl.sourceforge.net/courier/%{name}-%{version}.tar.bz2
9 Source0:        http://heanet.dl.sourceforge.net/sourceforge/courier/%{name}-%{version}.tar.bz2
10 # Source0-md5:  32fde0bf5c755092722894006444dc9f
11 Patch0:         %{name}-build.patch
12 Patch1:         %{name}-init.patch
13 URL:            http://www.courier-mta.org
14 BuildRequires:  autoconf
15 BuildRequires:  automake
16 BuildRequires:  courier-authlib-devel
17 BuildRequires:  libtool
18 BuildRequires:  libltdl-devel
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
27 Ogólna biblioteka kliencka Socks 5.
28
29 %package devel
30 Summary:        Socks 5 client header files
31 Summary(pl):    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
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):    Serwer socks 5
46 Group:          Networking/Utilities
47 Requires:       %{name} = %{version}-%{release}
48 Requires(post,preun):   /sbin/chkconfig
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
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):    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
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 %patch1 -p1
76
77 %build
78 %{__libtoolize}
79 %{__aclocal}
80 %{__autoconf}
81 %{__autoheader}
82 %{__automake}
83
84 ln -sf ../config.sub libltdl/config.sub
85
86 %configure \
87         --libexecdir=%{_libexecdir}
88
89 %{__make}
90 %{__make} check
91
92 %install
93 rm -rf $RPM_BUILD_ROOT
94
95 %{__make} install \
96         DESTDIR=$RPM_BUILD_ROOT
97
98 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
99 install courier-sox.sysvinit $RPM_BUILD_ROOT/etc/rc.d/init.d/courier-sox
100
101 %clean
102 rm -rf $RPM_BUILD_ROOT
103
104 %post   -p /sbin/ldconfig
105 %postun -p /sbin/ldconfig
106
107 %post server
108 /sbin/chkconfig --add courier-sox
109
110 if [ -f /var/lock/subsys/courier-sox ]; then
111         /etc/rc.d/init.d/courier-sox restart >&2
112 else
113         echo "Run \"/etc/rc.d/init.d/courier-sox start\" to start courier-sox"
114 fi
115
116 %preun server
117 if [ "$1" = "0" ]; then
118         if [ -f /var/lock/subsys/courier-sox ]; then
119                 /etc/rc.d/init.d/courier-sox stop
120         fi
121         /sbin/chkconfig --del courier-sox
122 fi
123
124 %files
125 %defattr(644,root,root,755)
126 %doc AUTHORS ChangeLog NEWS README *.html
127 %attr(755,root,root) %{_bindir}/*
128 %attr(755,root,root) %{_libdir}/lib*.so.*.*
129 %{_libdir}/lib*.la
130 %{_mandir}/man1/socksify*
131 %{_mandir}/man3/socks*
132 %{_mandir}/man5/*
133 %{_sysconfdir}/socksrc
134
135 %files devel
136 %defattr(644,root,root,755)
137 %attr(755,root,root) %{_libdir}/lib*.so
138 %{_includedir}/*
139
140 %files server
141 %defattr(644,root,root,755)
142 %attr(754,root,root) /etc/rc.d/init.d/courier-sox
143 %{_mandir}/man1/sockd*
144 %attr(755,root,root) %{_sbindir}/sockd
145 %dir %{_libexecdir}
146 %attr(755,root,root) %{_libexecdir}/sockd
147
148 %files static
149 %defattr(644,root,root,755)
150 %{_libdir}/lib*.a
This page took 0.076774 seconds and 3 git commands to generate.