distro/rpm: reformat spec file

parent 27c2c7f3
...@@ -16,9 +16,9 @@ Source0: knot-resolver_%{version}.orig.tar.xz ...@@ -16,9 +16,9 @@ Source0: knot-resolver_%{version}.orig.tar.xz
# LuaJIT only on these arches # LuaJIT only on these arches
%if 0%{?rhel} %if 0%{?rhel}
# RHEL 7 does not have aarch64 LuaJIT # RHEL 7 does not have aarch64 LuaJIT
ExclusiveArch: %{ix86} x86_64 ExclusiveArch: %{ix86} x86_64
%else %else
ExclusiveArch: %{arm} aarch64 %{ix86} x86_64 ExclusiveArch: %{arm} aarch64 %{ix86} x86_64
%endif %endif
Source2: kresd.conf Source2: kresd.conf
...@@ -29,26 +29,32 @@ Source1: knot-resolver-%{version}.tar.xz.asc ...@@ -29,26 +29,32 @@ Source1: knot-resolver-%{version}.tar.xz.asc
# PGP keys used to sign upstream releases # PGP keys used to sign upstream releases
# Export with --armor using command from https://fedoraproject.org/wiki/PackagingDrafts:GPGSignatures # Export with --armor using command from https://fedoraproject.org/wiki/PackagingDrafts:GPGSignatures
# Don't forget to update %%prep section when adding/removing keys # Don't forget to update %%prep section when adding/removing keys
Source100: gpgkey-B6006460B60A80E782062449E747DF1F9575A3AA.gpg.asc Source100: gpgkey-B6006460B60A80E782062449E747DF1F9575A3AA.gpg.asc
Source101: gpgkey-BE26EBB9CBE059B3910CA35BCE8DD6A1A50A21E4.gpg.asc Source101: gpgkey-BE26EBB9CBE059B3910CA35BCE8DD6A1A50A21E4.gpg.asc
Source102: gpgkey-4A8BA48C2AED933BD495C509A1FBA5F7EF8C4869.gpg.asc Source102: gpgkey-4A8BA48C2AED933BD495C509A1FBA5F7EF8C4869.gpg.asc
BuildRequires: gnupg2 BuildRequires: gnupg2
%endif %endif
BuildRequires: pkgconfig(cmocka)
BuildRequires: pkgconfig(hiredis)
BuildRequires: pkgconfig(libedit)
BuildRequires: pkgconfig(libknot) >= 2.6.4 BuildRequires: pkgconfig(libknot) >= 2.6.4
BuildRequires: pkgconfig(libzscanner) >= 2.4.2 BuildRequires: pkgconfig(libzscanner) >= 2.4.2
BuildRequires: pkgconfig(libdnssec) >= 2.3.1 BuildRequires: pkgconfig(libdnssec) >= 2.3.1
BuildRequires: pkgconfig(libuv)
BuildRequires: pkgconfig(luajit) >= 2.0
BuildRequires: pkgconfig(libedit)
BuildRequires: pkgconfig(libmemcached) >= 1.0 BuildRequires: pkgconfig(libmemcached) >= 1.0
BuildRequires: pkgconfig(hiredis)
BuildRequires: pkgconfig(libsystemd) BuildRequires: pkgconfig(libsystemd)
BuildRequires: pkgconfig(libuv)
BuildRequires: pkgconfig(luajit) >= 2.0
BuildRequires: pkgconfig(systemd)
BuildRequires: pkgconfig(cmocka) # Lua 5.1 version of the libraries have different package names
%if 0%{?rhel}
BuildRequires: systemd Requires: lua-socket
Requires: lua-sec
%else
Requires: lua-socket-compat
Requires: lua-sec-compat
%endif
%if 0%{?fedora} %if 0%{?fedora}
# dependencies for doc package; disable in EPEL (missing fonts) # dependencies for doc package; disable in EPEL (missing fonts)
...@@ -59,19 +65,10 @@ BuildRequires: python2-sphinx ...@@ -59,19 +65,10 @@ BuildRequires: python2-sphinx
BuildRequires: python2-sphinx_rtd_theme BuildRequires: python2-sphinx_rtd_theme
%endif %endif
# Lua 5.1 version of the libraries have different package names Requires(pre): shadow-utils
%if 0%{?rhel} Requires(post): systemd
Requires: lua-socket Requires(preun): systemd
Requires: lua-sec Requires(postun): systemd
%else
Requires: lua-socket-compat
Requires: lua-sec-compat
%endif
Requires(pre): shadow-utils
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
%description %description
The Knot DNS Resolver is a caching full resolver implementation written in C The Knot DNS Resolver is a caching full resolver implementation written in C
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment