From 90586aa0180476cb129681af150f147d8dc08a45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Marciniak?= Date: Sun, 26 Jul 2020 22:06:11 +0200 Subject: [PATCH 1/2] Add example spec file for Fedora/CentOS/RHEL --- stenc.spec | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 stenc.spec diff --git a/stenc.spec b/stenc.spec new file mode 100644 index 0000000..19c9712 --- /dev/null +++ b/stenc.spec @@ -0,0 +1,43 @@ +Name: stenc +Version: 1.0.8 +Release: 1%{?dist} +Summary: SCSI Tape Encryption Manager + +License: GPLv2 +URL: https://github.com/scsitape/stenc +Source0: https://github.com/scsitape/stenc/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +BuildRequires: gcc-c++ +BuildRequires: autoconf +BuildRequires: automake + +%description +SCSI Tape Encryption Manager - Manages encryption on LTO 4 and newer tape +drives with hardware-based encryption + +%prep +%setup -q + +%build +./autogen.sh +%configure +make + +%install +make install DESTDIR=%{buildroot} + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc COPYING README.md AUTHORS +%{_bindir}/stenc +%{_mandir}/man1/stenc.1* + + + +%changelog +* Sat Jul 4 2020 Your Name 1.0.8 +- Initial SPEC file From fc403b6267e4898feddc9e5e21ae5b7cc4649dd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Marciniak?= Date: Wed, 11 Nov 2020 13:57:35 +0100 Subject: [PATCH 2/2] Remove BuildRoot tag, add smp flags to make and license macro --- stenc.spec | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/stenc.spec b/stenc.spec index 19c9712..a91b79a 100644 --- a/stenc.spec +++ b/stenc.spec @@ -1,14 +1,14 @@ Name: stenc Version: 1.0.8 -Release: 1%{?dist} +Release: 3%{?dist} Summary: SCSI Tape Encryption Manager License: GPLv2 URL: https://github.com/scsitape/stenc -Source0: https://github.com/scsitape/stenc/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build +Source0: https://github.com/scsitape/stenc/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: gcc-c++ +BuildRequires: make BuildRequires: autoconf BuildRequires: automake @@ -22,7 +22,7 @@ drives with hardware-based encryption %build ./autogen.sh %configure -make +make %{?_smp_mflags} %install make install DESTDIR=%{buildroot} @@ -32,12 +32,19 @@ rm -rf %{buildroot} %files %defattr(-,root,root,-) -%doc COPYING README.md AUTHORS +%license COPYING +%doc README.md AUTHORS %{_bindir}/stenc %{_mandir}/man1/stenc.1* %changelog -* Sat Jul 4 2020 Your Name 1.0.8 +* Wed Nov 11 2020 Paweł Marciniak - 1.0.8-3 +- Remove BuildRoot tag, add smp flags to make and license macro + +* Sat Nov 07 2020 Paweł Marciniak - 1.0.8-2 +- Make will no longer be in BuildRoot by default + +* Sat Jul 4 2020 Paweł Marciniak 1.0.8-1 - Initial SPEC file