|
|
|
@ -1,23 +1,43 @@
|
|
|
|
|
## START: Set by rpmautospec
|
|
|
|
|
## (rpmautospec version 0.6.5)
|
|
|
|
|
## RPMAUTOSPEC: autorelease, autochangelog
|
|
|
|
|
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
|
|
|
|
release_number = 10;
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
%bcond_without check
|
|
|
|
|
|
|
|
|
|
Name: munge
|
|
|
|
|
Version: 0.5.13
|
|
|
|
|
Release: 13%{?dist}
|
|
|
|
|
Version: 0.5.15
|
|
|
|
|
Release: %autorelease
|
|
|
|
|
Summary: Enables uid & gid authentication across a host cluster
|
|
|
|
|
|
|
|
|
|
# The libs and devel package is GPLv3+ and LGPLv3+ where as the main package is GPLv3 only.
|
|
|
|
|
License: GPLv3+ and LGPLv3+
|
|
|
|
|
URL: https://dun.github.io/munge/
|
|
|
|
|
Source0: https://github.com/dun/munge/releases/download/munge-%{version}/munge-%{version}.tar.xz
|
|
|
|
|
Source1: create-munge-key
|
|
|
|
|
Source2: munge.logrotate
|
|
|
|
|
Source1: https://github.com/dun/munge/releases/download/%{name}-%{version}/%{name}-%{version}.tar.xz.asc
|
|
|
|
|
Source2: https://github.com/dun.gpg
|
|
|
|
|
Source3: munge.sysusers
|
|
|
|
|
Source4: README.md
|
|
|
|
|
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: git-core
|
|
|
|
|
BuildRequires: gnupg2
|
|
|
|
|
BuildRequires: systemd-rpm-macros
|
|
|
|
|
BuildRequires: zlib-devel bzip2-devel openssl-devel
|
|
|
|
|
Requires: munge-libs = %{version}-%{release}
|
|
|
|
|
Requires: logrotate
|
|
|
|
|
|
|
|
|
|
Requires(pre): shadow-utils
|
|
|
|
|
%if %{with check}
|
|
|
|
|
BuildRequires: procps-ng
|
|
|
|
|
BuildRequires: util-linux
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%{?systemd_requires}
|
|
|
|
|
%{?sysusers_requires_compat}
|
|
|
|
@ -48,13 +68,14 @@ Runtime libraries for using MUNGE.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
cp -p %{SOURCE1} create-munge-key
|
|
|
|
|
cp -p %{SOURCE2} munge.logrotate
|
|
|
|
|
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
|
|
|
|
|
%autosetup -N -S git
|
|
|
|
|
cp "%{SOURCE4}" README-Fedora.md
|
|
|
|
|
|
|
|
|
|
%autopatch
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%configure --disable-static --with-crypto-lib=openssl
|
|
|
|
|
echo "d /run/munge 0755 munge munge -" > src/etc/munge.tmpfiles.conf.in
|
|
|
|
|
%configure --disable-static --with-crypto-lib=openssl --runstatedir="%{_rundir}" --with-systemdunitdir="%{_unitdir}" --with-sysconfigdir="%{_sysconfdir}/sysconfig/" --with-logrotateddir="%{_sysconfdir}/logrotate.d/"
|
|
|
|
|
# Get rid of some rpaths for /usr/sbin
|
|
|
|
|
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
|
|
|
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
|
|
@ -65,14 +86,9 @@ sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
|
|
|
%make_install
|
|
|
|
|
|
|
|
|
|
# Install extra files.
|
|
|
|
|
install -p -m 755 create-munge-key %{buildroot}/%{_sbindir}/create-munge-key
|
|
|
|
|
install -p -D -m 644 munge.logrotate %{buildroot}/%{_sysconfdir}/logrotate.d/munge
|
|
|
|
|
|
|
|
|
|
install -p -D -m 0644 %{SOURCE3} %{buildroot}%{_sysusersdir}/munge.conf
|
|
|
|
|
|
|
|
|
|
# rm unneeded files.
|
|
|
|
|
rm %{buildroot}/%{_sysconfdir}/sysconfig/munge
|
|
|
|
|
rm %{buildroot}/%{_sysconfdir}/init.d/munge
|
|
|
|
|
# Exclude .la files
|
|
|
|
|
rm %{buildroot}/%{_libdir}/libmunge.la
|
|
|
|
|
|
|
|
|
@ -84,8 +100,16 @@ chmod 700 %{buildroot}%{_sysconfdir}/munge
|
|
|
|
|
# Create and empty key file and pid file to be marked as a ghost file below.
|
|
|
|
|
# i.e it is not actually included in the rpm, only the record
|
|
|
|
|
# of it is.
|
|
|
|
|
touch %{buildroot}%{_var}/run/munge/munged.pid
|
|
|
|
|
mv %{buildroot}%{_var}/run %{buildroot}
|
|
|
|
|
mkdir -p %{buildroot}%{_rundir}/munge
|
|
|
|
|
touch %{buildroot}%{_rundir}/munge/munged.pid
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%if %{with check}
|
|
|
|
|
%make_build check \
|
|
|
|
|
LD_LIBRARY_PATH=%{buildroot}%{_libdir} \
|
|
|
|
|
root=/tmp/munge-$$ VERBOSE=t verbose=t
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%pre
|
|
|
|
|
%sysusers_create_compat %{SOURCE3}
|
|
|
|
@ -106,27 +130,29 @@ mv %{buildroot}%{_var}/run %{buildroot}
|
|
|
|
|
%{_bindir}/remunge
|
|
|
|
|
%{_bindir}/unmunge
|
|
|
|
|
%{_sbindir}/munged
|
|
|
|
|
%{_sbindir}/create-munge-key
|
|
|
|
|
%{_sbindir}/mungekey
|
|
|
|
|
%{_mandir}/man1/munge.1.gz
|
|
|
|
|
%{_mandir}/man1/remunge.1.gz
|
|
|
|
|
%{_mandir}/man1/unmunge.1.gz
|
|
|
|
|
%{_mandir}/man7/munge.7.gz
|
|
|
|
|
%{_mandir}/man8/munged.8.gz
|
|
|
|
|
%{_mandir}/man8/mungekey.8.gz
|
|
|
|
|
%{_unitdir}/munge.service
|
|
|
|
|
|
|
|
|
|
%attr(0700,munge,munge) %dir %{_var}/log/munge
|
|
|
|
|
%attr(0700,munge,munge) %dir %{_var}/lib/munge
|
|
|
|
|
%attr(0700,munge,munge) %dir %{_sysconfdir}/munge
|
|
|
|
|
%attr(0755,munge,munge) %dir /run/munge/
|
|
|
|
|
%attr(0755,munge,munge) %ghost %dir /run/munge/
|
|
|
|
|
%attr(0644,munge,munge) %ghost /run/munge/munged.pid
|
|
|
|
|
|
|
|
|
|
%{_tmpfilesdir}/munge.conf
|
|
|
|
|
%{_sysusersdir}/munge.conf
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/munge
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/munge
|
|
|
|
|
|
|
|
|
|
%license COPYING COPYING.LESSER
|
|
|
|
|
%doc README-Fedora.md
|
|
|
|
|
%doc AUTHORS
|
|
|
|
|
%doc JARGON META NEWS QUICKSTART README
|
|
|
|
|
%doc JARGON NEWS QUICKSTART README
|
|
|
|
|
%doc doc
|
|
|
|
|
|
|
|
|
|
%files libs
|
|
|
|
@ -155,16 +181,77 @@ mv %{buildroot}%{_var}/run %{buildroot}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.5.13-13
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
## START: Generated by rpmautospec
|
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 0.5.15-10
|
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
|
|
|
|
|
|
* Fri Oct 25 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 0.5.15-9
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
* Fri Aug 09 2024 Brian Chae <bchae@redhat.com> - 0.5.15-9
|
|
|
|
|
- Adding files for c10s gating test
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.5.15-8
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.15-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.15-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.15-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jun 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.5.13-12
|
|
|
|
|
- Rebuilt for RHEL 9 BETA for openssl 3.0
|
|
|
|
|
Related: rhbz#1971065
|
|
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.15-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.5.13-11
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
* Fri Aug 19 2022 Debarshi Ray <debarshir@gnome.org> - 0.5.15-3
|
|
|
|
|
- Remove redundant Requires(pre)
|
|
|
|
|
|
|
|
|
|
* Mon Jul 25 2022 Ankur Sinha (Ankur Sinha Gmail) <sanjay.ankur@gmail.com> - 0.5.15-2
|
|
|
|
|
- fix: correct failing test
|
|
|
|
|
|
|
|
|
|
* Mon Jul 25 2022 Ankur Sinha (Ankur Sinha Gmail) <sanjay.ankur@gmail.com> - 0.5.15-1
|
|
|
|
|
- feat: update to 0.5.15 (fixes rhbz#2100309)
|
|
|
|
|
|
|
|
|
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.14-8
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.14-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Sep 14 2021 Sahana Prasad <sahana@redhat.com> - 0.5.14-6
|
|
|
|
|
- Rebuilt with OpenSSL 3.0.0
|
|
|
|
|
|
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.14-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Apr 30 2021 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.5.14-4
|
|
|
|
|
- Correct readme
|
|
|
|
|
- Include patches to fix build on s390x
|
|
|
|
|
- https://bugzilla.redhat.com/show_bug.cgi?id=1923337
|
|
|
|
|
- Include additional sources
|
|
|
|
|
|
|
|
|
|
* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.5.14-3
|
|
|
|
|
- Rebuilt for updated systemd-rpm-macros
|
|
|
|
|
See https://pagure.io/fesco/issue/2583.
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.14-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Nov 18 2020 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.5.14-1
|
|
|
|
|
- remove tmpfiles.d
|
|
|
|
|
- make %%_rundir,
|
|
|
|
|
- improve readme
|
|
|
|
|
- Mark /run/munge as ghost also
|
|
|
|
|
|
|
|
|
|
* Tue Nov 17 2020 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.5.14-1
|
|
|
|
|
- Update to latest release
|
|
|
|
|
- Remove unneeded files
|
|
|
|
|
- Update Readme.
|
|
|
|
|
- Enable gpgverify
|
|
|
|
|
- Enable tests
|
|
|
|
|
|
|
|
|
|
* Tue Sep 29 2020 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.5.13-10
|
|
|
|
|
- Fix spec + build
|
|
|
|
@ -331,4 +418,4 @@ mv %{buildroot}%{_var}/run %{buildroot}
|
|
|
|
|
* Fri Jun 12 2009 Steve Traylen <steve@traylen.net> - 0.5.8-1
|
|
|
|
|
- First Build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## END: Generated by rpmautospec
|
|
|
|
|