From af840306d670ee0019f7fa842db13b0d194e2a3f Mon Sep 17 00:00:00 2001 From: Petr Lautrbach Date: Oct 27 2015 13:53:58 +0000 Subject: 2.5-0 --- diff --git a/libsemanage.spec b/libsemanage.spec index 6c8ee05..682cb57 100644 --- a/libsemanage.spec +++ b/libsemanage.spec @@ -4,26 +4,28 @@ %define libsepolver 2.4-1 %define libselinuxver 2.4-1 +%global gitrev abcdef + Summary: SELinux binary policy manipulation library Name: libsemanage -Version: 2.4 -Release: 4%{?dist} +Version: 2.5 +Release: 0%{?dist}.1 License: LGPLv2+ Group: System Environment/Libraries -Source: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20150202/libsemanage-%{version}.tar.gz +Source: libsemanage-%{version}-%{gitrev}.tar.gz # use make-rhat-patches.sh to create following patch from https://github.com/bachradsusi/selinux.git -# HEAD https://github.com/fedora-selinux/selinux/commit/ab9d1d2458908164ae5dc74aaa084af19ded8a51 -Patch: libsemanage-rhat.patch +# HEAD https://github.com/fedora-selinux/selinux/commit/36fd8bb4b36bb1ca3aa10e3226136459e6ed2498 +# Patch: libsemanage-rhat.patch URL: https://github.com/SELinuxProject/selinux/wiki Source1: semanage.conf BuildRequires: libselinux-devel >= %{libselinuxver} swig ustr-devel BuildRequires: libsepol-devel >= %{libsepolver} BuildRequires: audit-libs-devel -BuildRequires: python-devel bison flex bzip2-devel +BuildRequires: python python-devel bison flex bzip2-devel %if 0%{?with_python3} -BuildRequires: python3-devel +BuildRequires: python3 python3-devel %endif # if with_python3 Requires: bzip2-libs audit-libs @@ -84,8 +86,8 @@ SELinux management applications. %endif # if with_python3 %prep -%setup -q -%patch -p1 -b .rhat +%setup -q -n libsemanage +# %patch -p1 -b .rhat %build export LDFLAGS="%{?__global_ldflags}"