]> git.pld-linux.org Git - SPECS.git/blob - iodine.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / iodine.spec
1 #
2 # Conditional build:
3 %bcond_without  selinux # SELinux support
4 %bcond_without  systemd # systemd support
5 #
6 Summary:        IP over DNS is now easy
7 Summary(pl.UTF-8):      Łatwa w użyciu implementacja IP over DNS
8 Name:           iodine
9 Version:        0.7.0
10 Release:        3
11 License:        MIT
12 Group:          Networking
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)
23
24 %description
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.
28
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.
33
34 %prep
35 %setup -q
36 %patch0 -p1
37 %patch1 -p1
38 %patch2 -p1
39
40 %build
41 %{__make} \
42         CC="%{__cc}" \
43         OPTFLAGS="%{rpmcflags} -D_GNU_SOURCE %{?with_selinux:-DHAVE_SETCON} %{?with_systemd:-DHAVE_SYSTEMD}"
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47
48 %{__make} install \
49         DESTDIR=$RPM_BUILD_ROOT \
50         prefix=%{_prefix}
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
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*
This page took 0.307474 seconds and 3 git commands to generate.