## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; 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 %global forgeurl https://github.com/mtrojnar/osslsigncode %global tag %{version} Name: osslsigncode Version: 2.9 %forgemeta Release: %autorelease Summary: OpenSSL based Authenticode signing for PE/MSI/Java CAB files License: GPL-3.0-or-later URL: %{forgeurl} Source0: %{forgesource} # To prevent network access during tests # Patch0: %{name}-preventnetwork-access-during-tests.patch # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: i686 BuildRequires: cmake >= 3.17 BuildRequires: coreutils BuildRequires: gcc %if 0%{?fedora} >= 41 BuildRequires: openssl-devel-engine >= 3.0.0 %endif BuildRequires: sed BuildRequires: pkgconfig(libcrypto) >= 1.1.0 BuildRequires: pkgconfig(libcurl) >= 7.12.0 BuildRequires: pkgconfig(openssl) >= 3.0.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 %forgeautosetup -p1 %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 ## START: Generated by rpmautospec * Thu Jul 18 2024 Fedora Release Engineering - 2.9-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Jul 04 2024 Packit - 2.9-1 - Update to 2.9 upstream release - Resolves: rhbz#2295681 * Wed May 01 2024 Artem Polishchuk - 2.8-5 - packit: Add EPEL * Wed May 01 2024 Artem Polishchuk - 2.8-4 - build: Build latest git snapshot (rh#2277444) * Tue Apr 30 2024 Artem Polishchuk - 2.8-3 - build: Add upstream Fixed-memory-corruption patch (rh#2277444) * Fri Apr 26 2024 Artem Polishchuk - 2.8-2 - build: Rebuild for f40 due FTBFS (rh#2267603) * Mon Mar 04 2024 Packit - 2.8-1 - [packit] 2.8 upstream release - Resolves rhbz#2267603 * Mon Mar 04 2024 Artem Polishchuk - 2.7-8 - packit: Update config * Thu Feb 01 2024 Davide Cavalca - 2.7-7 - Exclude on i686 to fix FTBFS; Fixes: RHBZ#2261436 * Thu Jan 25 2024 Fedora Release Engineering - 2.7-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 2.7-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Oct 08 2023 Artem Polishchuk - 2.7-4 - build: Add Packit config * Sun Oct 08 2023 Artem Polishchuk - 2.7-3 - build: Use forge macros * Sun Oct 08 2023 Artem Polishchuk - 2.7-2 - license: Convert to SPDX * 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. ## END: Generated by rpmautospec