From 76fb2b6d109fa9c68aec852e677866098289e91c Mon Sep 17 00:00:00 2001
From: Petr Lautrbach <plautrba@redhat.com>
Date: Mon, 20 Jul 2015 18:52:52 +0200
Subject: [PATCH] Update to 2.4 release

---
 .gitignore       |  1 +
 checkpolicy.spec | 15 ++++++++-------
 sources          |  1 +
 3 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/.gitignore b/.gitignore
index 10c00fc..f063c8a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -91,3 +91,4 @@ checkpolicy-2.0.22.tgz
 /checkpolicy-2.1.12.tgz
 /checkpolicy-2.2.tgz
 /checkpolicy-2.3.tgz
+/checkpolicy-2.4.tar.gz
diff --git a/checkpolicy.spec b/checkpolicy.spec
index 84700d1..752c86f 100644
--- a/checkpolicy.spec
+++ b/checkpolicy.spec
@@ -1,14 +1,15 @@
-%define libselinuxver 2.1.13-1
-%define libsepolver 2.1.9-1
+%define libselinuxver 2.4-1
+%define libsepolver 2.4-1
 Summary: SELinux policy compiler
 Name: checkpolicy
-Version: 2.3
-Release: 5%{?dist}
+Version: 2.4
+Release: 1%{?dist}
 License: GPLv2
 Group: Development/System
-Source: http://www.nsa.gov/selinux/archives/%{name}-%{version}.tgz
+Source: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20150202/checkpolicy-2.4.tar.gz
 #Patch: checkpolicy-rhat.patch
 
+Conflicts: selinux-policy < 3.13.1-138
 BuildRoot: %{_tmppath}/%{name}-buildroot
 BuildRequires: byacc bison flex flex-static libsepol-static >= %{libsepolver} libselinux-devel  >= %{libselinuxver} 
 
@@ -58,8 +59,8 @@ rm -rf ${RPM_BUILD_ROOT}
 %{_bindir}/sedispol
 
 %changelog
-* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3-5
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
+* Mon Jul 20 2015 Petr Lautrbach <plautrba@redhat.com> 2.4-1
+- Update to 2.4 release
 
 * Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
diff --git a/sources b/sources
index b6e60ab..b40e436 100644
--- a/sources
+++ b/sources
@@ -1 +1,2 @@
 5c083d1b02c854436197d5b4b8568a1f  checkpolicy-2.3.tgz
+4d35189dcfdcf9e3b8b8466f3f706756  checkpolicy-2.4.tar.gz