Compare commits

...

5 Commits

Author SHA1 Message Date
Petr Lautrbach a11a766ae4 Reset gitrev to abcdef 2015-11-03 18:11:46 +01:00
Petr Lautrbach 26255c3567 libselinux-2.5-0.3.fc24.8dc4c05 - rebuild from 8dc4c05 2015-10-30 11:28:53 +01:00
Petr Lautrbach 18add48356 use %{gitrev} in release tag 2015-10-30 11:17:11 +01:00
Petr Lautrbach 612e9b5a17 rebuild from a0e52def36fe9be55eece7c36c9c03ae957c1955 2015-10-27 21:35:55 +01:00
Petr Lautrbach 097ecc8c48 2.5-0 2015-10-27 13:46:29 +01:00
1 changed files with 20 additions and 11 deletions

View File

@ -3,26 +3,28 @@
%endif
%define ruby_inc %(pkg-config --cflags ruby)
%define libsepolver 2.4-1
%define libsepolver 2.5-0
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%global gitrev abcdef
Summary: SELinux library and simple utilities
Name: libselinux
Version: 2.4
Release: 3%{?dist}
Version: 2.5
Release: 0.3%{?dist}.%{gitrev}
License: Public Domain
Group: System Environment/Libraries
# https://github.com/SELinuxProject/selinux/wiki/Releases
Source: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20150202/%{name}-%{version}.tar.gz
Source: %{name}-%{version}-%{gitrev}.tar.gz
Source1: selinuxconlist.8
Source2: selinuxdefcon.8
Url: https://github.com/SELinuxProject/selinux/wiki
# use make-rhat-patches.sh to create following patches from https://github.com/fedora-selinux/selinux/
# HEAD https://github.com/fedora-selinux/selinux/commit/36fd8bb4b36bb1ca3aa10e3226136459e6ed2498
Patch1: libselinux-rhat.patch
BuildRequires: pkgconfig python-devel ruby-devel ruby libsepol-static >= %{libsepolver} swig pcre-devel xz-devel
# Patch1: libselinux-rhat.patch
BuildRequires: pkgconfig python python-devel ruby-devel ruby libsepol-static >= %{libsepolver} swig pcre-devel xz-devel
%if 0%{?with_python3}
BuildRequires: python3-devel
BuildRequires: python3 python3-devel
%endif # if with_python3
Requires: libsepol >= %{libsepolver} pcre
Conflicts: filesystem < 3, selinux-policy-base < 3.13.1-138
@ -101,8 +103,8 @@ The libselinux-static package contains the static libraries
needed for developing SELinux applications.
%prep
%setup -q
%patch1 -p1 -b .rhat
%setup -q -n libselinux
# %patch1 -p1 -b .rhat
%build
export LDFLAGS="%{?__global_ldflags}"
@ -205,6 +207,7 @@ rm -rf %{buildroot}
%{_sbindir}/getenforce
%{_sbindir}/getsebool
%{_sbindir}/matchpathcon
%{_sbindir}/selabel_*
%{_sbindir}/selinuxconlist
%{_sbindir}/selinuxdefcon
%{_sbindir}/selinuxexeccon
@ -217,8 +220,8 @@ rm -rf %{buildroot}
%defattr(-,root,root,-)
%{_libdir}/libselinux.so
%{_libdir}/pkgconfig/libselinux.pc
%dir %{_libdir}/golang/src/pkg/github.com/selinux
%{_libdir}/golang/src/pkg/github.com/selinux/selinux.go
# %dir %{_libdir}/golang/src/pkg/github.com/selinux
# %{_libdir}/golang/src/pkg/github.com/selinux/selinux.go
%dir %{_includedir}/selinux
%{_includedir}/selinux/*
%{_mandir}/man3/*
@ -247,6 +250,12 @@ rm -rf %{buildroot}
%{ruby_vendorarchdir}/selinux.so
%changelog
* Fri Oct 30 2015 Petr Lautrbach <plautrba@redhat.com> - 2.5-0.3.a0e52de
- build from 8dc4c05b7906326c32fe28dd091e5173fb0249be
* Tue Oct 27 2015 Petr Lautrbach <plautrba@redhat.com> - 2.5-0.2
- build from a0e52def36fe9be55eece7c36c9c03ae957c1955
* Wed Sep 02 2015 Petr Lautrbach <plautrba@redhat.com> 2.4-3
- Simplify procattr cache (#1257157,#1232371)