import munge-0.5.13-2.el8

This commit is contained in:
CentOS Sources 2020-11-03 06:56:55 -05:00 committed by Andrew Lukoshko
parent 0ee579d9e3
commit b8b007b100
1 changed files with 21 additions and 23 deletions

View File

@ -1,9 +1,8 @@
Name: munge Name: munge
Version: 0.5.13 Version: 0.5.13
Release: 1%{?dist} Release: 2%{?dist}
Summary: Enables uid & gid authentication across a host cluster Summary: Enables uid & gid authentication across a host cluster
Group: Applications/System
# The libs and devel package is GPLv3+ and LGPLv3+ where as the main package is GPLv3 only. # The libs and devel package is GPLv3+ and LGPLv3+ where as the main package is GPLv3 only.
License: GPLv3+ and LGPLv3+ License: GPLv3+ and LGPLv3+
URL: https://dun.github.io/munge/ URL: https://dun.github.io/munge/
@ -11,9 +10,11 @@ Source0: https://github.com/dun/munge/releases/download/munge-%{version}/
Source1: create-munge-key Source1: create-munge-key
Source2: munge.logrotate Source2: munge.logrotate
BuildRequires: systemd-units BuildRequires: gcc
BuildRequires: zlib-devel bzip2-devel libgcrypt-devel BuildRequires: systemd-rpm-macros
BuildRequires: zlib-devel bzip2-devel openssl-devel
Requires: munge-libs = %{version}-%{release} Requires: munge-libs = %{version}-%{release}
Requires: logrotate
Requires(pre): shadow-utils Requires(pre): shadow-utils
@ -21,7 +22,6 @@ Requires(post): systemd
Requires(preun): systemd Requires(preun): systemd
Requires(postun): systemd Requires(postun): systemd
%description %description
MUNGE (MUNGE Uid 'N' Gid Emporium) is an authentication service for creating MUNGE (MUNGE Uid 'N' Gid Emporium) is an authentication service for creating
and validating credentials. It is designed to be highly scalable for use and validating credentials. It is designed to be highly scalable for use
@ -35,7 +35,6 @@ methods.
%package devel %package devel
Summary: Development files for uid * gid authentication across a host cluster Summary: Development files for uid * gid authentication across a host cluster
Group: Applications/System
Requires: munge-libs%{?_isa} = %{version}-%{release} Requires: munge-libs%{?_isa} = %{version}-%{release}
%description devel %description devel
@ -43,7 +42,6 @@ Header files for developing using MUNGE.
%package libs %package libs
Summary: Runtime libs for uid * gid authentication across a host cluster Summary: Runtime libs for uid * gid authentication across a host cluster
Group: Applications/System
%description libs %description libs
Runtime libraries for using MUNGE. Runtime libraries for using MUNGE.
@ -55,7 +53,8 @@ cp -p %{SOURCE1} create-munge-key
cp -p %{SOURCE2} munge.logrotate cp -p %{SOURCE2} munge.logrotate
%build %build
%configure --disable-static --with-crypto-lib=libgcrypt %configure --disable-static --with-crypto-lib=openssl
echo "d /run/munge 0755 munge munge -" > src/etc/munge.tmpfiles.conf.in
# Get rid of some rpaths for /usr/sbin # Get rid of some rpaths for /usr/sbin
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool 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 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
@ -63,9 +62,7 @@ make %{?_smp_mflags}
%install %install
%make_install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
# Install extra files. # Install extra files.
install -p -m 755 create-munge-key %{buildroot}/%{_sbindir}/create-munge-key install -p -m 755 create-munge-key %{buildroot}/%{_sbindir}/create-munge-key
@ -88,12 +85,7 @@ chmod 700 %{buildroot}%{_sysconfdir}/munge
# i.e it is not actually included in the rpm, only the record # i.e it is not actually included in the rpm, only the record
# of it is. # of it is.
touch %{buildroot}%{_var}/run/munge/munged.pid touch %{buildroot}%{_var}/run/munge/munged.pid
mv %{buildroot}%{_var}/run %{buildroot}
%clean
rm -rf %{buildroot}
%postun
%systemd_postun_with_restart munge.service
%preun %preun
%systemd_preun munge.service %systemd_preun munge.service
@ -109,8 +101,10 @@ exit 0
%post %post
%systemd_post munge.service %systemd_post munge.service
%post libs -p /sbin/ldconfig %postun
%postun libs -p /sbin/ldconfig %systemd_postun_with_restart munge.service
%ldconfig_scriptlets libs
%files %files
%{_bindir}/munge %{_bindir}/munge
@ -126,14 +120,15 @@ exit 0
%{_unitdir}/munge.service %{_unitdir}/munge.service
%attr(0700,munge,munge) %dir %{_var}/log/munge %attr(0700,munge,munge) %dir %{_var}/log/munge
%attr(0700,munge,munge) %dir %{_sysconfdir}/munge
%attr(0755,munge,munge) %dir %{_var}/run/munge/
%attr(0644,munge,munge) %ghost %{_var}/run/munge/munged.pid
%attr(0700,munge,munge) %dir %{_var}/lib/munge %attr(0700,munge,munge) %dir %{_var}/lib/munge
%attr(0700,munge,munge) %dir %{_sysconfdir}/munge
%attr(0755,munge,munge) %dir /run/munge/
%attr(0644,munge,munge) %ghost /run/munge/munged.pid
%config(noreplace) %{_tmpfilesdir}/munge.conf %config(noreplace) %{_tmpfilesdir}/munge.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/munge %config(noreplace) %{_sysconfdir}/logrotate.d/munge
%license COPYING COPYING.LESSER
%doc AUTHORS %doc AUTHORS
%doc JARGON META NEWS QUICKSTART README %doc JARGON META NEWS QUICKSTART README
%doc doc %doc doc
@ -141,7 +136,6 @@ exit 0
%files libs %files libs
%{_libdir}/libmunge.so.2 %{_libdir}/libmunge.so.2
%{_libdir}/libmunge.so.2.0.0 %{_libdir}/libmunge.so.2.0.0
%doc COPYING COPYING.LESSER
%files devel %files devel
%{_includedir}/munge.h %{_includedir}/munge.h
@ -165,6 +159,10 @@ exit 0
%changelog %changelog
* Fri Apr 24 2020 Honggang Li <honli@redhat.com> - 0.5.13-2
- Don't create temporary files in legacy directory
- Resolves: bz1805956
* Thu Jul 19 2018 Jarod Wilson <jarod@redhat.com> - 0.5.13-1 * Thu Jul 19 2018 Jarod Wilson <jarod@redhat.com> - 0.5.13-1
- Update to upstream 0.5.13 release - Update to upstream 0.5.13 release