# # Spec file for package ecryptfs-simple # # Copyright © 2016 Francis Banyikwa # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . Name: ecryptfs-simple Version: 2016.11.16.1 Release: 3%{?dist} Summary: A CLI front end to ecryptfs that works with normal user account # included ecryptfs-simple.c is clearly GPLv2 only (no ... or later clause). License: GPLv2 URL: https://github.com/mhogomchungu/%{name} Source0: %{url}/releases/download/2016.11.16.1/%{name}.%{version}.tar.xz # pregenerated manpage, currently not possible in rawhide Source1: %{name}.1 BuildRequires: cmake BuildRequires: gcc BuildRequires: libgcrypt-devel BuildRequires: ecryptfs-utils-devel BuildRequires: libmount-devel BuildRequires: keyutils-libs-devel #BuildRequires: help2man %description %{summary}. %prep %setup -qn%{name}.%{version} sed -i /SETUID/d CMakeLists.txt cp -p %{SOURCE1} . %build mkdir %{_target_platform} pushd %{_target_platform} %cmake .. %make_build #help2man -N -o ../%{name}.1 --no-discard-stderr %{name} %install make install/fast DESTDIR=%{buildroot} -C %{_target_platform} #mkdir -p %%{buildroot}%%{_mandir}/man1 install -p -m0644 -D %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1 %files %{_bindir}/%{name} %doc CHANGELOG README.md %license COPYING %{_mandir}/man1/%{name}.1* %changelog * Wed Mar 01 2017 Raphael Groner - 2016.11.16.1-3 - drop setuid completely - generate and ship manpage - fix changelog * Sun Feb 26 2017 Raphael Groner - 2016.11.16.1-2 - remove useless _hardened_build macro - fix needed BR for gcc - use make install/fast - remove chmod scriptlet - use GPLv2 * Wed Dec 07 2016 Raphael Groner - 2016.11.16.1-1 - adopt for Fedora * Mon Nov 14 2016 Francis Banyikwa - 2016-0 - initial