]> git.pld-linux.org Git - packages/courier-sox.git/blob - courier-sox.spec
- BR: courier-authlib-devel
[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.05
5 Release:        2
6 License:        GPL
7 Group:          Networking/Daemons
8 #Source0:       http://dl.sourceforge.net/courier/%{name}-%{version}.tar.bz2
9 Source0:        http://www.courier-mta.org/beta/sox/%{name}-%{version}.tar.bz2
10 # Source0-md5:  41a87d18a56dcabd3fc513ceba7b679b
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. It does not include
25 a Socks 5 server (yet). This is just a client-side library.
26
27 %description -l pl
28 Ogólna biblioteka kliencka Socks 5. Nie zawiera (jeszcze) serwera
29 Socks 5, jest tylko bibliotek± dla strony klienta.
30
31 %package devel
32 Summary:        Socks 5 client header files
33 Summary(pl):    Pliki nag³ówkowe klienta socks 5
34 Group:          Development/Libraries
35 Requires:       %{name} = %{version}-%{release}
36
37 %description devel
38 This package contains header files for building applications that use
39 Socks 5 proxies.
40
41 %description devel -l pl
42 Ten pakiet zawiera pliki nag³ówkowe do tworzenia aplikacji u¿ywaj±cych
43 proxy Socks 5.
44
45 %package server
46 Summary:        Socks 5 server
47 Summary(pl):    Serwer socks 5
48 Group:          Networking/Utilities
49 Requires:       %{name} = %{version}-%{release}
50 Requires(post,preun):   /sbin/chkconfig
51
52 %description server
53 This package contains the Courier Socks 5 server. Install this package
54 if you want to run a Socks 5 server.
55
56 %description server -l pl
57 Ten pakiet zawiera serwer couriera socks 5. Je¿eli chcesz uruchamiaæ
58 serwer socks5, zainstaluj ten pakiet.
59
60 %package static
61 Summary:        Socks 5 client static libraries
62 Summary(pl):    Biblioteki statyczne klienta socks 5
63 Group:          Development/Libraries
64 Requires:       %{name}-devel = %{version}-%{release}
65
66 %description static
67 This package contains static libraries for building applications that
68 use Socks 5 proxies.
69
70 %description static -l pl
71 Ten pakiet zawiera biblioteki statyczne do tworzenia aplikacji
72 u¿ywaj±cych proxy Socks 5.
73
74 %prep
75 %setup -q
76 %patch0 -p1
77 %patch1 -p1
78
79 %build
80 %{__libtoolize}
81 %{__aclocal}
82 %{__autoconf}
83 %{__autoheader}
84 %{__automake}
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
109 if [ -f /var/lock/subsys/courier-sox ]; then
110         /etc/rc.d/init.d/courier-sox restart >&2
111 else
112         echo "Run \"/etc/rc.d/init.d/courier-sox start\" to start courier-sox"
113 fi
114
115 %preun server
116 if [ "$1" = "0" ]; then
117         if [ -f /var/lock/subsys/courier-sox ]; then
118                 /etc/rc.d/init.d/courier-sox stop
119         fi
120         /sbin/chkconfig --del courier-sox
121 fi
122
123 %files
124 %defattr(644,root,root,755)
125 %doc AUTHORS ChangeLog NEWS README *.html
126 %attr(755,root,root) %{_bindir}/*
127 %attr(755,root,root) %{_libdir}/lib*.so.*.*
128 %{_libdir}/lib*.la
129 %{_mandir}/man1/socksify*
130 %{_mandir}/man3/socks*
131 %{_mandir}/man5/*
132 %{_sysconfdir}/socksrc
133
134 %files devel
135 %defattr(644,root,root,755)
136 %attr(755,root,root) %{_libdir}/lib*.so
137 %{_includedir}/*
138
139 %files server
140 %defattr(644,root,root,755)
141 %attr(754,root,root) /etc/rc.d/init.d/courier-sox
142 %{_mandir}/man1/sockd*
143 %attr(755,root,root) %{_sbindir}/sockd
144 %dir %{_libexecdir}
145 %attr(755,root,root) %{_libexecdir}/sockd
146
147 %files static
148 %defattr(644,root,root,755)
149 %{_libdir}/lib*.a
This page took 0.104536 seconds and 3 git commands to generate.