diff --git a/.gitignore b/.gitignore index e69de29..f3d423c 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/1.6.1.tar.gz diff --git a/dnscrypt-proxy-1.6.1-libtool-obsolete-macro.patch b/dnscrypt-proxy-1.6.1-libtool-obsolete-macro.patch new file mode 100644 index 0000000..43f2d27 --- /dev/null +++ b/dnscrypt-proxy-1.6.1-libtool-obsolete-macro.patch @@ -0,0 +1,11 @@ +--- dnscrypt-proxy-1.6.1/src/libevent-modified/configure.ac.orig 2016-06-06 13:09:02.601130845 +0300 ++++ dnscrypt-proxy-1.6.1/src/libevent-modified/configure.ac 2016-06-06 13:09:33.447274580 +0300 +@@ -99,7 +99,7 @@ + [], [enable_function_sections=no]) + + +-AC_PROG_LIBTOOL ++LT_INIT + + dnl Uncomment "AC_DISABLE_SHARED" to make shared librraries not get + dnl built by default. You can also turn shared libs on and off from diff --git a/dnscrypt-proxy.spec b/dnscrypt-proxy.spec new file mode 100644 index 0000000..70061a3 --- /dev/null +++ b/dnscrypt-proxy.spec @@ -0,0 +1,66 @@ +%global _hardened_build 1 + +Name: dnscrypt-proxy +Version: 1.6.1 +Release: 3%{?dist} +Summary: DNSCrypt client + +Group: System Environment/Daemons +License: MIT +URL: https://dnscrypt.org/ +Source0: https://github.com/jedisct1/%{name}/archive/%{version}.tar.gz +Patch0: dnscrypt-proxy-1.6.1-libtool-obsolete-macro.patch + +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: libtool +BuildRequires: libtool-ltdl-devel +BuildRequires: gettext-devel +BuildRequires: libevent-devel +BuildRequires: libsodium-devel + + +%description +DNSCrypt is a protocol that authenticates communications between a DNS +client and a DNS resolver. It prevents DNS spoofing. It uses cryptographic +signatures to verify that responses originate from the chosen DNS resolver +and haven't been tampered with. + + +%prep +%setup -n %{name}-%{version} -q +%patch0 -p1 + + +%build +./autogen.sh +%configure --prefix=/usr --disable-static +make CFLAGS="%{optflags}" %{?_smp_mflags} + + +%install +make install DESTDIR=%{buildroot} + + +%files +%defattr(-,root,root,-) +%{_bindir}/hostip +%{_sbindir}/%{name} +%{_usr}/share/%{name} +%{_mandir}/man8/%{name}* +%{_mandir}/man8/hostip* + + +%changelog +* Mon Jun 06 2016 Nikos Roussos 1.6.1-3 +- Fix license + +* Mon Jun 06 2016 Nikos Roussos 1.6.1-2 +- Add hardened flag +- Fix obsolete m4 macro + +* Fri Apr 22 2016 Nikos Roussos 1.6.1-1 +- Update to 1.6.1 + +* Sat Oct 24 2015 Nikos Roussos 1.6.0-1 +- Initial package diff --git a/sources b/sources index e69de29..e656bf2 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +b93c9a249b36a22508452ffcbc628cf0 1.6.1.tar.gz