]> git.pld-linux.org Git - packages/setools.git/blobdiff - setools.spec
- added format-truncation patch from git (fixes build with -Werror=format-truncation)
[packages/setools.git] / setools.spec
index 6aa92a221c6bfe9801cd4e370c60950f6c4a2c06..a9c58814efc88a098e5daf00c36d95e2b400ad32 100644 (file)
@@ -13,6 +13,9 @@ Group:                Applications/System
 #Source0Download: https://github.com/TresysTechnology/setools/releases
 Source0:       https://github.com/TresysTechnology/setools/archive/%{version}/%{name}-%{version}.tar.gz
 # Source0-md5: 54cf5c0ca2aa4ef7c6ac153981af34cd
+# https://github.com/TresysTechnology/setools/issues/174
+# https://github.com/bigon/setools/commit/e41adf01647c695b80b112b337e76021bb9f30c3.patch
+Patch0:                %{name}-format-truncation.patch
 URL:           https://github.com/TresysTechnology/setools4/wiki
 BuildRequires: bison
 BuildRequires: flex
@@ -161,8 +164,11 @@ Moduły graficznego interfejsu użytkownika SETools dla Pythona 3.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
+export SEPOL=%{_libdir}/libsepol.a
+
 %if %{with python2}
 %py_build
 %endif
@@ -174,6 +180,8 @@ Moduły graficznego interfejsu użytkownika SETools dla Pythona 3.
 %install
 rm -rf $RPM_BUILD_ROOT
 
+export SEPOL=%{_libdir}/libsepol.a
+
 %if %{with python3}
 %py3_install
 %endif
This page took 0.080061 seconds and 4 git commands to generate.