From 6a7979d571f178fdf9b8032d79a4ac5db75d8680 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Tue, 13 Jan 2015 23:15:48 +0100 Subject: [PATCH] Don't #include in libvolume_key.h --- volume_key-0.3.9-config.h.patch | 25 +++++++++++++++++++++++++ volume_key.spec | 9 ++++++++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 volume_key-0.3.9-config.h.patch diff --git a/volume_key-0.3.9-config.h.patch b/volume_key-0.3.9-config.h.patch new file mode 100644 index 0000000..98a70f9 --- /dev/null +++ b/volume_key-0.3.9-config.h.patch @@ -0,0 +1,25 @@ +The library's header file distributed in the devel package cannot include +the config.h file that is only available during build otherwise it's not +possible to use the library outside of the volume_key build process. + +Signed-off-by: Vratislav Podzimek +--- + lib/libvolume_key.h | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/lib/libvolume_key.h b/lib/libvolume_key.h +index 657b626..513f923 100644 +--- a/lib/libvolume_key.h ++++ b/lib/libvolume_key.h +@@ -18,8 +18,6 @@ Author: Miloslav Trmač */ + #ifndef LIBVOLUME_KEY_H__ + #define LIBVOLUME_KEY_H__ + +-#include +- + #include + #include + +-- +2.1.0 + diff --git a/volume_key.spec b/volume_key.spec index 591d6ea..f06a368 100644 --- a/volume_key.spec +++ b/volume_key.spec @@ -3,7 +3,7 @@ Summary: An utility for manipulating storage encryption keys and passphrases Name: volume_key Version: 0.3.9 -Release: 6%{?dist} +Release: 7%{?dist} License: GPLv2 Group: Applications/System URL: https://fedorahosted.org/volume_key/ @@ -12,6 +12,8 @@ Requires: volume_key-libs%{?_isa} = %{version}-%{release} Source0: https://fedorahosted.org/releases/v/o/volume_key/volume_key-%{version}.tar.xz # Upstream commit 04991fe8c4f77c4e5c7874c2db8ca32fb4655f6e Patch1: volume_key-0.3.9-fips-crash.patch +# Upstream commit 8f8698aba19b501f01285e9eec5c18231fc6bcea +Patch2: volume_key-0.3.9-config.h.patch BuildRequires: cryptsetup-luks-devel, gettext-devel, glib2-devel, /usr/bin/gpg BuildRequires: gpgme-devel, libblkid-devel, nss-devel, python-devel @@ -78,6 +80,7 @@ for other formats is possible, some formats are planned for future releases. %setup -q %patch1 -p1 -b .fips-crash +%patch2 -p1 -b .config.h %build %configure @@ -118,6 +121,10 @@ rm -rf $RPM_BUILD_ROOT %{python_sitearch}/volume_key.py* %changelog +* Tue Jan 13 2015 Miloslav Trmač - 0.3.9-7 +- Don't #include in libvolume_key.h + Patch by Vratislav Podzimek . + * Mon Aug 18 2014 Fedora Release Engineering - 0.3.9-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild