Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated spec file from fedora #72

Merged
merged 1 commit into from
Oct 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 32 additions & 26 deletions package/credentials-fetcher.spec
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
%global major_version 1
%global minor_version 2
%global patch_version 0

# For handling bump release by rpmdev-bumpspec and mass rebuild
%global baserelease 1

%global baserelease 3
Name: credentials-fetcher
Version: %{major_version}.%{minor_version}.%{patch_version}
Release: %{baserelease}%{?dist}
Summary: credentials-fetcher is a daemon that refreshes tickets or tokens periodically

License: Apache-2.0
URL: https://github.com/aws/credentials-fetcher
Source0: https://github.com/aws/credentials-fetcher/archive/refs/tags/%{version}.tar.gz

Source0: https://github.com/aws/credentials-fetcher/archive/refs/tags/v.%{version}.tar.gz
BuildRequires: cmake3 make chrpath openldap-clients grpc-devel gcc-c++ glib2-devel boost-devel
BuildRequires: openssl-devel zlib-devel protobuf-devel re2-devel krb5-devel systemd-devel
BuildRequires: systemd-rpm-macros dotnet-sdk-6.0 grpc-plugins

Requires: bind-utils openldap openldap-clients awscli dotnet-runtime-6.0

# No one likes you i686
ExcludeArch: i686 armv7hl

ExclusiveArch: x86_64 aarch64 s390x
# https://docs.fedoraproject.org/en-US/packaging-guidelines/CMake/

%description
This daemon creates and refreshes kerberos tickets, these
tickets can be used to launch new containers.
Expand All @@ -33,26 +33,26 @@ Kerberos tickets are refreshed when tickets expire
or when a gMSA password changes.
The same method can be used to refresh other types of security tokens.
This spec file is specific to Fedora, use this file to rpmbuild on Fedora.

%prep
%setup -q
%setup -q -n credentials-fetcher-v.%{version}
# abseil-cpp LTS 20230125 requires at least C++14; string_view requires C++17:
sed -r -i 's/(std=c\+\+)11/\117/' CMakeLists.txt

%build
%cmake3
%cmake_build
%install

%cmake_install
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_removing_rpath
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#_rpath_for_internal_libraries
chrpath --delete %{buildroot}/%{_sbindir}/credentials-fetcherd

%check
# TBD: Run tests from top-level directory
ctest3

%files
%{_sbindir}/credentials-fetcherd
%{_unitdir}/credentials-fetcher.service
Expand All @@ -61,27 +61,33 @@ ctest3
%doc CONTRIBUTING.md NOTICE README.md
%attr(0700, -, -) %{_sbindir}/credentials_fetcher_utf16_private.exe
%attr(0700, -, -) %{_sbindir}/credentials_fetcher_utf16_private.runtimeconfig.json

%changelog
* Thu May 15 2023 Sai Kiran Akula <saakla@amazon.com> - 1.2.0
* Thu Aug 31 2023 Tom Callaway <spot@fedoraproject.org> - 1.2.0-3
- rebuild for abseil

* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild

* Mon May 15 2023 Sai Kiran Akula <saakla@amazon.com> - 1.2.0
- Create 1.2.0 release

* Thu Mar 23 2023 Tom Callaway <spot@fedoraproject.org> - 1.1.0-7
- rebuild for new abseil-cpp

* Tue Mar 07 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 1.1.0-6
- Build as C++14, required by abseil-cpp 20230125

* Thu Feb 23 2023 Tom Callaway <spotaws@amazon.com> - 1.1.0-5
- fix build against boost 1.81 (bz2172636)

* Mon Feb 20 2023 Jonathan Wakely <jwakely@redhat.com> - 1.1.0-4
- Rebuilt for Boost 1.81

* Thu Feb 09 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 1.1.0-3
- Depend on dotnet-sdk-7.0; there is no longer an unversioned “dotnet” package
- Restore ppc64le support

* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild

Expand Down Expand Up @@ -120,4 +126,4 @@ ctest3
* Wed Jun 8 2022 Samiullah Mohammed <samiull@amazon.com> - 0.0.1
- Fixes to rpm spec
* Mon Jun 6 2022 Samiullah Mohammed <samiull@amazon.com> - 0.0.1
- Initial commit
- Initial commit