3 %bcond_without selinux # SELinux support
4 %bcond_without systemd # systemd support
6 Summary: IP over DNS is now easy
7 Summary(pl.UTF-8): Łatwa w użyciu implementacja IP over DNS
13 Source0: http://code.kryo.se/iodine/%{name}-%{version}.tar.gz
14 # Source0-md5: fdbf3b81cd69caf5230d76a8b039fd99
15 Patch0: %{name}-opt.patch
16 Patch1: %{name}-make.patch
17 Patch2: libsystemd.patch
18 URL: http://code.kryo.se/iodine/
19 %{?with_selinux:BuildRequires: libselinux-devel}
20 %{?with_systemd:BuildRequires: systemd-devel}
21 BuildRequires: zlib-devel
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 This is a piece of software that lets you tunnel IPv4 data through a
26 DNS server. This can be usable in different situations where Internet
27 access is firewalled, but DNS queries are allowed.
29 %description -l pl.UTF-8
30 Ten pakiet pozwala tunelować dane IPv4 poprzez serwer DNS. Może to być
31 przydatne w różnych sytuacjach kiedy dostęp do Internetu jest
32 ograniczony firewallem, ale dozwolone są zapytania DNS.
43 OPTFLAGS="%{rpmcflags} -D_GNU_SOURCE %{?with_selinux:-DHAVE_SETCON} %{?with_systemd:-DHAVE_SYSTEMD}"
46 rm -rf $RPM_BUILD_ROOT
49 DESTDIR=$RPM_BUILD_ROOT \
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
57 %doc CHANGELOG README TODO
58 %attr(755,root,root) %{_sbindir}/iodine
59 %attr(755,root,root) %{_sbindir}/iodined
60 %{_mandir}/man8/iodine.8*