From f55d2116f6cbfec7786cb3aa9137ed3edcc59dc9 Mon Sep 17 00:00:00 2001 From: rhykw Date: Tue, 2 Apr 2019 17:44:00 +0900 Subject: [PATCH 1/2] Move openssl-devel from Requires section to BuildRequires section --- rpm/stns.spec | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rpm/stns.spec b/rpm/stns.spec index af8f8cf..e89d759 100644 --- a/rpm/stns.spec +++ b/rpm/stns.spec @@ -1,18 +1,18 @@ Summary: SimpleTomlNameService Nss Module Name: libnss-stns-v2 Version: 2.3.1 -Release: 1 +Release: 2 License: GPLv3 URL: https://github.com/STNS/STNS Source: %{name}-%{version}.tar.gz Group: System Environment/Base Packager: pyama86 %if 0%{?rhel} < 6 -Requires: glibc openssl-devel -BuildRequires: gcc make +Requires: glibc openssl +BuildRequires: gcc make openssl-devel %else -Requires: glibc openssl-devel -BuildRequires: gcc make +Requires: glibc openssl +BuildRequires: gcc make openssl-devel %endif BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: i386, x86_64 From bd689df494c73f456ff7255d3c48c332532f41b6 Mon Sep 17 00:00:00 2001 From: rhykw Date: Tue, 2 Apr 2019 18:19:51 +0900 Subject: [PATCH 2/2] fix openssl library package name --- rpm/stns.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpm/stns.spec b/rpm/stns.spec index e89d759..f1298cb 100644 --- a/rpm/stns.spec +++ b/rpm/stns.spec @@ -7,11 +7,11 @@ URL: https://github.com/STNS/STNS Source: %{name}-%{version}.tar.gz Group: System Environment/Base Packager: pyama86 -%if 0%{?rhel} < 6 +%if 0%{?rhel} < 7 Requires: glibc openssl BuildRequires: gcc make openssl-devel %else -Requires: glibc openssl +Requires: glibc openssl-libs BuildRequires: gcc make openssl-devel %endif BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)