]> git.pld-linux.org Git - packages/courier-sox.git/blob - courier-sox.spec
3ac7a85741724562b36b291cd1738a920da63877
[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:        1
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:  libtool
17 BuildRequires:  libltdl-devel
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %define         _libexecdir     %{_libdir}/courier-sox
21
22 %description
23 This is a generic Socks 5 client support library. It does not include
24 a Socks 5 server (yet). This is just a client-side library.
25
26 %description -l pl
27 Ogólna biblioteka kliencka Socks 5. Nie zawiera (jeszcze) serwera
28 Socks 5, jest tylko bibliotek± dla strony klienta.
29
30 %package devel
31 Summary:        Socks 5 client header files
32 Summary(pl):    Pliki nag³ówkowe klienta socks 5
33 Group:          Development/Libraries
34 Requires:       %{name} = %{version}-%{release}
35
36 %description devel
37 This package contains header files for building applications that use
38 Socks 5 proxies.
39
40 %description devel -l pl
41 Ten pakiet zawiera pliki nag³ówkowe do tworzenia aplikacji u¿ywaj±cych
42 proxy Socks 5.
43
44 %package server
45 Summary:        Socks 5 server
46 Summary(pl):    Serwer socks 5
47 Group:          Networking/Utilities
48 Requires:       %{name} = %{version}-%{release}
49 Requires(post,preun):   /sbin/chkconfig
50
51 %description server
52 This package contains the Courier Socks 5 server. Install this package
53 if you want to run a Socks 5 server.
54
55 %description server -l pl
56 Ten pakiet zawiera serwer couriera socks 5. Je¿eli chcesz uruchamiaæ
57 serwer socks5, zainstaluj ten pakiet.
58
59 %package static
60 Summary:        Socks 5 client static libraries
61 Summary(pl):    Biblioteki statyczne klienta socks 5
62 Group:          Development/Libraries
63 Requires:       %{name}-devel = %{version}-%{release}
64
65 %description static
66 This package contains static libraries for building applications that
67 use Socks 5 proxies.
68
69 %description static -l pl
70 Ten pakiet zawiera biblioteki statyczne do tworzenia aplikacji
71 u¿ywaj±cych proxy Socks 5.
72
73 %prep
74 %setup -q
75 %patch0 -p1
76 %patch1 -p1
77
78 %build
79 %{__libtoolize}
80 %{__aclocal}
81 %{__autoconf}
82 %{__autoheader}
83 %{__automake}
84 %configure \
85         --libexecdir=%{_libexecdir}
86
87 %{__make}
88 %{__make} check
89
90 %install
91 rm -rf $RPM_BUILD_ROOT
92
93 %{__make} install \
94         DESTDIR=$RPM_BUILD_ROOT
95
96 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
97 install courier-sox.sysvinit $RPM_BUILD_ROOT/etc/rc.d/init.d/courier-sox
98
99 %clean
100 rm -rf $RPM_BUILD_ROOT
101
102 %post   -p /sbin/ldconfig
103 %postun -p /sbin/ldconfig
104
105 %post server
106 /sbin/chkconfig --add courier-sox
107
108 if [ -f /var/lock/subsys/courier-sox ]; then
109         /etc/rc.d/init.d/courier-sox restart >&2
110 else
111         echo "Run \"/etc/rc.d/init.d/courier-sox start\" to start courier-sox"
112 fi
113
114 %preun server
115 if [ "$1" = "0" ]; then
116         if [ -f /var/lock/subsys/courier-sox ]; then
117                 /etc/rc.d/init.d/courier-sox stop
118         fi
119         /sbin/chkconfig --del courier-sox
120 fi
121
122 %files
123 %defattr(644,root,root,755)
124 %doc AUTHORS ChangeLog NEWS README *.html
125 %attr(755,root,root) %{_bindir}/*
126 %attr(755,root,root) %{_libdir}/lib*.so.*.*
127 %{_libdir}/lib*.la
128 %{_mandir}/man1/socksify*
129 %{_mandir}/man3/socks*
130 %{_mandir}/man5/*
131 %{_sysconfdir}/socksrc
132
133 %files devel
134 %defattr(644,root,root,755)
135 %attr(755,root,root) %{_libdir}/lib*.so
136 %{_includedir}/*
137
138 %files server
139 %defattr(644,root,root,755)
140 %attr(754,root,root) /etc/rc.d/init.d/courier-sox
141 %{_mandir}/man1/sockd*
142 %attr(755,root,root) %{_sbindir}/sockd
143 %dir %{_libexecdir}
144 %attr(755,root,root) %{_libexecdir}/sockd
145
146 %files static
147 %defattr(644,root,root,755)
148 %{_libdir}/lib*.a
This page took 0.059523 seconds and 2 git commands to generate.