]> git.pld-linux.org Git - packages/dante.git/blobdiff - dante.spec
- up to 1.3.2
[packages/dante.git] / dante.spec
index e60d599946856da3f9e262df1787fb826ab4fe58..9a81447f57181c15c7549df56b44937d9f3bc85f 100644 (file)
@@ -1,15 +1,18 @@
 Summary:       A free Socks v4/v5 client implementation
+Summary(pl.UTF-8):     Darmowa implementacja klienta Socks v4/5
 Name:          dante
-Version:       1.1.9
+Version:       1.3.2
 Release:       1
-License:       BSD-type
+License:       BSD-like
 Group:         Networking/Daemons
-URL:           http://www.inet.no/dante/
 Source0:       ftp://ftp.inet.no/pub/socks/%{name}-%{version}.tar.gz
+# Source0-md5: 250c6456cd3fefa17f07fa80c9ccf6bd
 Source1:       sockd.init
-Buildroot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%define prefix %{_prefix}
+URL:           http://www.inet.no/dante/
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: libwrap-devel
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 Dante is a free implementation of the proxy protocols socks version 4,
@@ -20,93 +23,130 @@ Norwegian consulting company. Commercial support is available.
 This package contains the dynamic libraries required to "socksify"
 existing applications to become socks clients.
 
+%description -l pl.UTF-8
+Dante jest darmową implementacją protokołów proxy: socks w wersji 4,
+socks w wersji 5 (rfc1928) oraz msproxy. Może być używany jako zapora
+pomiędzy sieciami. Implementacja jest rozwijana przez Inferno Nettverk
+A/S - Norweską firmę konsultingową. Komercyjne wsparcie jest dostępne.
+
+Ten pakiet zawiera dynamiczne biblioteki wymagane do "usocksowiania"
+istniejących aplikacji tak by działały one jako klienci socks.
+
 %package server
 Summary:       A free Socks v4/v5 server implementation
+Summary(pl.UTF-8):     Darmowa implementacja serwera Socks v4/5
 Group:         Networking/Daemons
-Requires:      dante = %{version}
+Requires(post,preun):  /sbin/chkconfig
+Requires:      %{name} = %{version}-%{release}
+Requires:      rc-scripts
 
 %description server
 This package contains the socks proxy daemon and its documentation.
 The sockd is the server part of the Dante socks proxy package and
 allows socks clients to connect through it to the network.
 
+%description server -l pl.UTF-8
+Ten pakiet zawiera serwer proxy socks oraz jego dokumentację. Serwer
+sockd jest częścią pakietu proxy Dante. Za pośrednictwem serwera
+klienci mogą łączyć się z serwerami w sieci.
+
 %package devel
-Summary:       development libraries for socks
+Summary:       Development libraries for socks
+Summary(pl.UTF-8):     Biblioteki developerskie dla socks
 Group:         Networking/Daemons
-Requires:      dante = %{version}
+Requires:      %{name} = %{version}-%{release}
 
 %description devel
 Additional libraries required to compile programs that use socks.
 
-%prep
-rm -rf $RPM_BUILD_ROOT
+%description devel -l pl.UTF-8
+Dodatkowe biblioteki wymagane do rozwoju programów korzystających z
+socks.
+
+%package static
+Summary:       Static libraries for socks
+Summary(pl.UTF-8):     Statyczne biblioteki socks
+Group:         Networking/Daemons
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description static
+Static libraries for socks.
 
+%description static -l pl.UTF-8
+Statyczne biblioteki socks.
+
+%prep
 %setup -q
 
 %build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+       --without-glibc-secure
 
-CFLAGS="${RPM_OPT_FLAGS}" 
-%configure --prefix=%{_prefix}
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/rc.d/init.d}
 
-%{__make} install DESTDIR=${RPM_BUILD_ROOT}
-
-#set library as executable - prevent ldd from complaining
-chmod +x ${RPM_BUILD_ROOT}%{_libdir}/*.so.*.*
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
-install -d ${RPM_BUILD_ROOT}%{_sysconfdir}/rc.d/init.d ${RPM_BUILD_ROOT}%{_bindir}
+install example/sock{s,d}.conf ${RPM_BUILD_ROOT}%{_sysconfdir}
 
-install example/socks.conf ${RPM_BUILD_ROOT}%{_sysconfdir}
-install example/sockd.conf ${RPM_BUILD_ROOT}%{_sysconfdir}
-
-install -m 755 %{SOURCE1} ${RPM_BUILD_ROOT}/etc/rc.d/init.d/sockd
-
-ln -sf %{_libdir}/libdsocks.so $RPM_BUILD_ROOT/%{_libdir}/libdsocks.so.0
+install %{SOURCE1} ${RPM_BUILD_ROOT}/etc/rc.d/init.d/sockd
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post -p /sbin/ldconfig
-
-%postun -p /sbin/ldconfig
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
 
 %post server
 /sbin/chkconfig --add sockd
+if [ -f /var/lock/subsys/sockd ]; then
+       /etc/rc.d/init.d/sockd restart 1>&2
+else
+       echo "Run \"/etc/rc.d/init.d/sockd start\" to start dante sockd daemon."
+fi
 
 %postun server
-if [ $1 = 0 ]; then
-   /sbin/chkconfig --del sockd
+if [ "$1" = "0" ]; then
+       if [ -f /var/lock/subsys/sockd ]; then
+               /etc/rc.d/init.d/sockd stop 1>&2
+       fi
+       /sbin/chkconfig --del sockd
 fi
 
 %files
 %defattr(644,root,root,755)
-#files beginning with two capital letters are docs: BUGS, README.foo etc.
-%doc [A-Z][A-Z]*
-%{_libdir}/libsocks.so.0.1.0
-%{_libdir}/libsocks.so.0
-%{_libdir}/libdsocks.so.0.1.0
-%{_libdir}/libdsocks.so.0
+%doc BUGS CREDITS LICENSE NEWS README SUPPORT
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/socks.conf
+%attr(755,root,root) %{_libdir}/lib*.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/lib*.so.0
+%attr(755,root,root) %{_libdir}/libdsocks.so
 %attr(755,root,root) %{_bindir}/socksify
 %{_mandir}/man5/socks.conf.5*
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/socks.conf
+%{_mandir}/man1/socksify.1*
 
 %files server
 %defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sockd.conf
+%attr(754,root,root) /etc/rc.d/init.d/sockd
 %attr(755,root,root) %{_sbindir}/sockd
 %{_mandir}/man8/sockd.8*
 %{_mandir}/man5/sockd.conf.5*
 
-
-%config(noreplace) %verify(not size mtime md5)  %{_sysconfdir}/sockd.conf
-%config /etc/rc.d/init.d/sockd
-
 %files devel
 %defattr(644,root,root,755)
-%{_libdir}/libsocks.la
-%{_libdir}/libsocks.a
-%{_libdir}/libdsocks.la
-%{_libdir}/libsocks.so
-%{_libdir}/libdsocks.so
+%attr(755,root,root) %{_libdir}/lib*.so
+%{_libdir}/lib*.la
+%{_includedir}/*
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/lib*.a
This page took 0.144163 seconds and 4 git commands to generate.