]> git.pld-linux.org Git - packages/antinat.git/blobdiff - antinat.spec
- unified or fixed %clean section
[packages/antinat.git] / antinat.spec
index 1f07323d6272b9ba7935c1ad9627298391e62939..ae42363a97894dadc44b9a55748fb82a4c8be6c2 100644 (file)
 Summary:       A SOCKS server for SOCKS4 and SOCKS5
-Summary(pl):   Serwer SOCKS dla SOCKS4 SOCKS5
+Summary(pl.UTF-8):     Serwer SOCKS dla SOCKS4 i SOCKS5
 Name:          antinat
-Version:       0.64
+Version:       0.71
 Release:       0.1
 License:       GPL
 Group:         Daemons
-Source0:       http://yallara.cs.rmit.edu.au/~malsmith/products/antinat/%{name}-%{version}.tar.bz2
-# Source0-md5: 08250f314de6203fb1ee1b542fcbb02f
-URL:           http://yallara.cs.rmit.edu.au/~malsmith/products/antinat/
+Source0:       http://dl.sourceforge.net/antinat/%{name}-%{version}.tar.bz2
+# Source0-md5: 842899a5fa705df1b0b8d8edee372fa2
+# doesn't exist in SOURCES but probably needed to do s/%{name}-%{version}/%{name}/ and add DESTDIR
+#Patch0:               %{name}-makefile.patch
+URL:           http://antinat.sourceforge.net/
+BuildRequires: autoconf
+BuildRequires: automake
 BuildRequires: libds-devel >= 1.2.0
-Buildroot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+BuildRequires: libtool
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+# *.so are installed there
+%define                _datadir        %{_libdir}
+%define                _localstatedir  /var/lib
 
 %description
-A SOCKS server for SOCKS4 and SOCKS5
+A SOCKS server for SOCKS4 and SOCKS5.
 
-%description -l pl
-Serwer SOCKS dla SOCKS4 SOCKS5
+%description -l pl.UTF-8
+Serwer SOCKS dla SOCKS4 i SOCKS5.
 
 %package socks4
-Group:         Daemons
-Requires:      antinat = %{version}
 Summary:       Support for SOCKS4 in antinat
+Summary(pl.UTF-8):     Wsparcie w antinacie dla SOCKS4
+Group:         Daemons
+Requires:      %{name} = %{version}-%{release}
 
 %description socks4
 Support for older style SOCKS4 connections in antinat. SOCKS4 is
 limited to anonymous only connections, and if authentication is
 required, do not install this package.
 
+%description socks4 -l pl.UTF-8
+Wsparcie w antinacie dla starego typu połączeń SOCKS4. SOCKS4 jest
+ograniczone do połączeń anonimowych, więc jeśli wymagana jest
+autoryzacja, nie należy instalować tego pakietu.
+
 %package logging
-Group:         Daemons
-Requires:      antinat = %{version}
 Summary:       Support for logging in antinat
+Summary(pl.UTF-8):     Wsparcie dla logowania przez antinata
+Group:         Daemons
+Requires:      %{name} = %{version}-%{release}
 
 %description logging
 Support for connection and summary logging in antinat.
 
+%description logging -l pl.UTF-8
+Wsparcie dla logowania połączeń i podsumowań przez antinata.
+
 %package filtering
-Group:         Daemons
-Requires:      antinat = %{version}
 Summary:       Support for filtering in antinat
+Summary(pl.UTF-8):     Wsparcie dla filtrowania przez antinata
+Group:         Daemons
+Requires:      %{name} = %{version}-%{release}
 
 %description filtering
 Support for allowing and disallowing connections on the basis of some
 criteria in antinat. Included are filters for IPv4 source and
 destination addresses, as well as ports.
 
+%description filtering -l pl.UTF-8
+Wsparcie dla umożliwiania i blokowania przez antinata połączeń w
+oparciu o pewne kryteria. Zawiera filtry działające w oparciu o adresy
+źródłowe i docelowe, jak też w oparciu o porty.
+
 %package anonymous
-Group:         Daemons
-Requires:      antinat = %{version}
 Summary:       Support for anonymous SOCKS5 connections in antinat
+Summary(pl.UTF-8):     Wsparcie w antinacie dla anonimowych połączeń SOCKS5
+Group:         Daemons
+Requires:      %{name} = %{version}-%{release}
 
 %description anonymous
 Support for anonymous (non-authenticated) connections in antinat. If
 this package is not installed, clients must give the username and
 password credentials of a user on the server to proceed. Note that
-socks4 will also provide anonymous connections, in effect.
+antinat-socks4 package will also provide anonymous connections, in
+effect.
+
+%description anonymous -l pl.UTF-8
+Wsparcie w antinacie dla połączeń anonimowych (nie autoryzowanych).
+Gdy ten pakiet nie jest zainstalowany, konieczne jest podanie przez
+klienta nazwy i hasła użytkownika na serwerze. Należy zauważyć, że
+pakiet antinat-socks4 również w zasadzie umożliwia połączenia
+anonimowe.
 
 %package ipv6
-Group:         Daemons
-Requires:      antinat = %{version}
 Summary:       Support for IPv6 connections in antinat
+Summary(pl.UTF-8):     Wsparcie w antinacie dla połączeń IPv6
+Group:         Daemons
+Requires:      %{name} = %{version}-%{release}
 
 %description ipv6
 Support for IPv6 connections, to allow the server to connect to v6
 hosts and be connected to from v6 hosts.
 
+%description ipv6 -l pl.UTF-8
+Wsparcie dla połączeń IPv6 umożliwiające serwerowi łączenie sie z i do
+hostów IPv6.
+
 %package udp
+Summary:       Support for UDP association in antinat
+Summary(pl.UTF-8):     Wsparcie w antinacie dla kojarzenia UDP
 Group:         Daemons
-Requires:      antinat = %{version}
-Summary:       Support for UDP Association in antinat
+Requires:      %{name} = %{version}-%{release}
 
 %description udp
 Support for UDP association over SOCKSv5. This allows hosts to send
 and receive UDP packets through the SOCKS server.
 
+%description udp -l pl.UTF-8
+Wsparcie dla kojarzenia UDP poprzez SOCKSv5. Umożliwia to wysyłanie i
+odbiór pakietów za pośrednictwem serwera SOCKS.
+
 %prep
 %setup -q
+#%patch0 -p1
 
 %build
-export CXXFLAGS="-O2"
-%configure --datadir=%{_libdir} --with-ipv6
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%configure \
+       --with-ipv6
+#      --datadir=%{_libdir}
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
+
 %{__make} install \
-       datadir=$RPM_BUILD_ROOT%{_libdir}
+       bindir=$RPM_BUILD_ROOT%{_bindir} \
+       datadir=$RPM_BUILD_ROOT%{_libdir} \
+       localstatedir=$RPM_BUILD_ROOT%{_localstatedir} \
+       mandir=$RPM_BUILD_ROOT%{_mandir} \
+       sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir}
+#      DESTDIR=$RPM_BUILD_ROOT
 
 %clean
-rm -fR $RPM_BUILD_ROOT
+rm -fr $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc COPYING README TODO
-%config(noreplace) %{_sysconfdir}/antinat.conf
+%doc README TODO
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/antinat.conf
 %attr(755,root,root) %{_bindir}/*
-%{_mandir}/*
-%{_libdir}/antinat-%{version}/address/libipv4.so
-%{_libdir}/antinat-%{version}/version5/authenticators/libunpw.so
-%{_libdir}/antinat-%{version}/version5/authenticators/unpwsources
-%{_libdir}/antinat-%{version}/version5/commands/libconn.so
-%{_libdir}/antinat-%{version}/version5/commands/libbind.so
-%{_libdir}/antinat-%{version}/version5/commands/libident.so
-%{_libdir}/antinat-%{version}/resolvers/libipv4.so
-%{_libdir}/antinat-%{version}/resolvers/libname.so
-%{_libdir}/antinat-%{version}/revres/libipv4.so
-%{_libdir}/antinat-%{version}/versions/libv5.so
+%dir %{_libdir}/%{name}
+%dir %{_libdir}/%{name}/address
+%attr(755,root,root) %{_libdir}/%{name}/address/libipv4.so
+%dir %{_libdir}/%{name}/version5
+%dir %{_libdir}/%{name}/version5/authenticators
+%attr(755,root,root) %{_libdir}/%{name}/version5/authenticators/libunpw.so
+%attr(755,root,root) %{_libdir}/%{name}/version5/authenticators/unpwsources
+%dir %{_libdir}/%{name}/version5/commands
+%attr(755,root,root) %{_libdir}/%{name}/version5/commands/libconn.so
+%attr(755,root,root) %{_libdir}/%{name}/version5/commands/libbind.so
+%attr(755,root,root) %{_libdir}/%{name}/version5/commands/libident.so
+%dir %{_libdir}/%{name}/resolvers
+%attr(755,root,root) %{_libdir}/%{name}/resolvers/libipv4.so
+%attr(755,root,root) %{_libdir}/%{name}/resolvers/libname.so
+%dir %{_libdir}/%{name}/revres
+%attr(755,root,root) %{_libdir}/%{name}/revres/libipv4.so
+%dir %{_libdir}/%{name}/versions
+%attr(755,root,root) %{_libdir}/%{name}/versions/libv5.so
+%{_mandir}/man[15]/*
 
 %files socks4
 %defattr(644,root,root,755)
-%{_libdir}/antinat-%{version}/version4/*
-%{_libdir}/antinat-%{version}/versions/libv4.so
+%attr(755,root,root) %{_libdir}/%{name}/version4
+%attr(755,root,root) %{_libdir}/%{name}/versions/libv4.so
 
 %files logging
 %defattr(644,root,root,755)
-%{_libdir}/antinat-%{version}/loggers/*
-%{_localstatedir}
+%attr(755,root,root) %{_libdir}/%{name}/loggers
+%{_localstatedir}/%{name}
 
 %files filtering
 %defattr(644,root,root,755)
-%{_libdir}/antinat-%{version}/filters/*
+%attr(755,root,root) %{_libdir}/%{name}/filters
 
 %files anonymous
 %defattr(644,root,root,755)
-%{_libdir}/antinat-%{version}/version5/authenticators/libanon.so
+%attr(755,root,root) %{_libdir}/%{name}/version5/authenticators/libanon.so
 
 %files ipv6
 %defattr(644,root,root,755)
-%{_libdir}/antinat-%{version}/address/libipv6.so
-%{_libdir}/antinat-%{version}/resolvers/libipv6.so
-%{_libdir}/antinat-%{version}/revres/libipv6.so
+%attr(755,root,root) %{_libdir}/%{name}/address/libipv6.so
+%attr(755,root,root) %{_libdir}/%{name}/resolvers/libipv6.so
+%attr(755,root,root) %{_libdir}/%{name}/revres/libipv6.so
 
 %files udp
 %defattr(644,root,root,755)
-%{_libdir}/antinat-%{version}/version5/commands/libudp.so
+%attr(755,root,root) %{_libdir}/%{name}/version5/commands/libudp.so
This page took 0.090914 seconds and 4 git commands to generate.