From 3bb3645aa79efca4813ba0ee5dc41ea249c11db9 Mon Sep 17 00:00:00 2001 From: Toshaan Bharvani Date: Thu, 25 Jan 2024 16:44:53 +0100 Subject: [PATCH] initial package creation Signed-off-by: Toshaan Bharvani --- SOURCES/.gitkeeper | 0 SPECS/osslsigncode.spec | 242 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 242 insertions(+) create mode 100644 SOURCES/.gitkeeper create mode 100644 SPECS/osslsigncode.spec diff --git a/SOURCES/.gitkeeper b/SOURCES/.gitkeeper new file mode 100644 index 0000000..e69de29 diff --git a/SPECS/osslsigncode.spec b/SPECS/osslsigncode.spec new file mode 100644 index 0000000..74df294 --- /dev/null +++ b/SPECS/osslsigncode.spec @@ -0,0 +1,242 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.3.5) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 1; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +%if 0%{?rhel} +%bcond_with tests +%else +%ifarch s390x +%bcond_with tests +%else +# Disable tests since 2.3 version due +# https://github.com/mtrojnar/osslsigncode/issues/140#issuecomment-1060636197 +%bcond_with tests +%endif +%endif + +Name: osslsigncode +Version: 2.7 +Release: %autorelease +Summary: OpenSSL based Authenticode signing for PE/MSI/Java CAB files + +License: GPLv3+ +URL: https://github.com/mtrojnar/osslsigncode +Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz + +# To prevent network access during tests +# Patch0: %{name}-preventnetwork-access-during-tests.patch + +BuildRequires: coreutils +BuildRequires: gcc +BuildRequires: cmake >= 3.17 +BuildRequires: sed + +BuildRequires: pkgconfig(libcrypto) >= 1.1.0 +BuildRequires: pkgconfig(libcurl) >= 7.12.0 +BuildRequires: pkgconfig(openssl) >= 1.1.0 +BuildRequires: pkgconfig(zlib) + +%if %{with tests} +BuildRequires: gcab +BuildRequires: java-1.8.0-openjdk-headless +BuildRequires: libfaketime +BuildRequires: mingw64-gcc +BuildRequires: msitools +BuildRequires: openssl >= 1.1.0 +BuildRequires: vim-common +%endif + +%description +osslsigncode is a small tool that implements part of the functionality of the +Microsoft tool signtool.exe - more exactly the Authenticode signing and +timestamping. But osslsigncode is based on OpenSSL and cURL, and thus should +be able to compile on most platforms where these exist. + + +%prep +%autosetup + + +%build +%cmake +%cmake_build + + +%install +%cmake_install + + +%check +# https://bugzilla.redhat.com/show_bug.cgi?id=1882547#c2 +%if %{with tests} +%ctest +%endif + + +%files +%license LICENSE.txt COPYING.txt +%doc README.md NEWS.md TODO.md +%{_bindir}/%{name} +%{_datadir}/bash-completion/completions/*.bash +%dir %{_datadir}/bash-completion +%dir %{_datadir}/bash-completion/completions + + +%changelog +* Wed Sep 20 2023 Artem Polishchuk - 2.7-1 +- build: Update to 2.7 + +* Thu Jul 20 2023 Fedora Release Engineering - 2.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Sun Jun 11 2023 Artem Polishchuk - 2.6-2 +- build: Bump cmake req + +* Mon May 29 2023 Artem Polishchuk - 2.6-1 +- chore: Update to 2.6 + +* Mon May 15 2023 Artem Polishchuk - 2.5-3 +- build: Remove %%dnl tag for EPEL 8 compatibility + +* Thu Jan 19 2023 Fedora Release Engineering - 2.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Aug 13 2022 Artem Polishchuk - 2.5-1 +- build(update): 2.5 + +* Fri Jul 22 2022 Fedora Release Engineering - 2.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Wed Mar 09 2022 Artem Polishchuk - 2.3-2 +- build: Drop BR: libgsf + +* Sun Mar 06 2022 Artem Polishchuk - 2.3-1 +- chore(update): 2.3 +- test: Disable temporary due critical new version hotfix + +* Sat Feb 05 2022 Jiri Vanek - 2.2-4 +- Rebuilt for java-17-openjdk as system jdk + +* Thu Jan 20 2022 Fedora Release Engineering - 2.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Tue Sep 14 2021 Sahana Prasad - 2.2-2 +- Rebuilt with OpenSSL 3.0.0 + +* Sun Aug 15 2021 Artem Polishchuk - 2.2-1 +- build(update): 2.2 + +* Thu Jul 22 2021 Fedora Release Engineering - 2.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Apr 30 2021 Davide Cavalca - 2.1-3 +- Gate out tests for EPEL builds due to missing dependencies +- Gate out tests for s390x builds due to rh#1924216 + +* Tue Jan 26 2021 Fedora Release Engineering - 2.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Oct 14 2020 Artem Polishchuk - 2.1-1 +- build(update): 2.1 +- build(test): add BR - gcab, libfaketime, msitools, vim-common for new v2.1 + +* Mon Oct 12 2020 Artem Polishchuk - 2.0-4 +- build: improvements per review rh#1882547 +- test: improve tests and drop pre-built .exe binary + +* Sun Oct 11 2020 Artem Polishchuk - 2.0-3 +- build: minor improvements per review rh#1882547 +- test: add tests v1 + +* Fri Sep 25 2020 Artem Polishchuk - 2.0-2 +- style: spec + +* Sun May 26 2019 gasinvein +- Update to 2.0 + +* Fri Jul 13 2018 Fedora Release Engineering - 1.7.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Thu Feb 08 2018 Fedora Release Engineering - 1.7.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Aug 03 2017 Fedora Release Engineering - 1.7.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 1.7.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 1.7.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 1.7.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Sep 30 2015 Marc-André Lureau - 1.7.1-1 +- New upstream release 1.7.1 + +* Thu Jun 18 2015 Fedora Release Engineering - 1.5.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sun Aug 17 2014 Fedora Release Engineering - 1.5.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 1.5.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sat Aug 03 2013 Fedora Release Engineering - 1.5.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Mar 14 2013 Marc-André Lureau - 1.5.2-1 +- New upstream release + +* Thu Feb 14 2013 Fedora Release Engineering - 1.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Fri Jul 20 2012 Fedora Release Engineering - 1.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Jan 13 2012 Fedora Release Engineering - 1.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Sat Aug 13 2011 Matthias Saou 1.4-1 +- Update to 1.4. +- Switch to make install DESTDIR since it works at last. + +* Tue Feb 08 2011 Fedora Release Engineering - 1.3.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Tue Dec 8 2009 Matthias Saou 1.3.1-1 +- Update to 1.3.1. + +* Fri Aug 21 2009 Tomas Mraz - 1.3-3 +- rebuilt with new openssl + +* Sat Jul 25 2009 Fedora Release Engineering - 1.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Feb 25 2009 Matthias Saou 1.3-1 +- Update to 1.3. +- Remove now included hashfix patch. + +* Sat Jan 17 2009 Tomas Mraz - 1.2-5 +- rebuild with new openssl + +* Tue Feb 19 2008 Fedora Release Engineering - 1.2-4 +- Autorebuild for GCC 4.3 + +* Wed Dec 05 2007 Release Engineering - 1.2-3 +- Rebuild for deps + +* Mon Aug 27 2007 Matthias Saou 1.2-2 +- Update License field. + +* Tue Jan 30 2007 Matthias Saou 1.2-1 +- Initial RPM release. +