summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2025-07-28 16:36:37 +0200
committerRemi Collet <remi@php.net>2025-07-28 16:36:37 +0200
commit786974b8e92f4a6146f43a626eafb52f7755cd9b (patch)
tree9f9352b83798ff60e68f50e54f5dd1811ffb8d9c
parentf0c4a552c4cc38a53970e5076f3255d0030108f5 (diff)
update selinux moduleHEADmaster
-rw-r--r--memcached.spec15
1 files changed, 9 insertions, 6 deletions
diff --git a/memcached.spec b/memcached.spec
index 90a2b5e..ad1a6cc 100644
--- a/memcached.spec
+++ b/memcached.spec
@@ -25,7 +25,7 @@
%global selinuxtype targeted
%global selinuxmoduletype contrib
%global selinuxmodulename memcached
-%global selinuxmodulever 1.0.2
+%global selinuxmodulever 1.0.3
%global selinuxmoduledir %{selinuxmodulename}-selinux-%{selinuxmodulever}
Name: memcached
@@ -39,7 +39,7 @@ URL: https://www.memcached.org/
Source0: https://www.memcached.org/files/%{name}-%{version}.tar.gz
Source1: memcached.sysconfig
# SELinux policy sources: https://pagure.io/memcached-selinux/tree/master
-Source2: https://releases.pagure.org/memcached-selinux/memcached-selinux-1.0.2.tar.gz
+Source2: https://pagure.io/memcached-selinux/blob/master/f/memcached-selinux-%{selinuxmodulever}.tar.gz
# systemd users
Source3: memcached.conf
# custom unit file (EL-7)
@@ -83,10 +83,13 @@ Provides: bundled(mcmc)
%if %{with selinux}
%package selinux
-Summary: Selinux policy module
-License: GPL-2.0-only
-BuildRequires: selinux-policy
-%{?selinux_requires}
+Summary: Selinux policy module
+License: GPL-2.0-only
+BuildArch: noarch
+BuildRequires: selinux-policy-devel
+Requires: %{name} = %{version}-%{release}
+Requires: selinux-policy-%{selinuxtype}
+Requires(post): selinux-policy-%{selinuxtype}
%description selinux
Install memcached-selinux to ensure your system contains the latest SELinux policy