|
 |
8031900 |
%global plugin_name fas
|
|
 |
8031900 |
%global ipa_version 4.8.2
|
|
 |
8031900 |
|
|
 |
8031900 |
%if 0%{?rhel}
|
|
 |
8031900 |
%global freeipa_prefix ipa
|
|
 |
8031900 |
%global freeipa_altprefix freeipa
|
|
 |
8031900 |
%else
|
|
 |
8031900 |
%global freeipa_prefix freeipa
|
|
 |
8031900 |
%global freeipa_altprefix ipa
|
|
 |
8031900 |
%endif
|
|
 |
8031900 |
|
|
 |
8031900 |
Name: freeipa-%{plugin_name}
|
|
 |
3b8c840 |
Version: 0.0.6
|
|
 |
645b3ce |
Release: 6%{?dist}
|
|
 |
8031900 |
Summary: Fedora Account System extension for FreeIPA
|
|
 |
8031900 |
|
|
 |
8031900 |
License: GPLv3+
|
|
 |
8031900 |
URL: https://github.com/fedora-infra/freeipa-%{plugin_name}
|
|
 |
8031900 |
Source0: %{url}/archive/v%{version}/freeipa-%{plugin_name}-%{version}.tar.gz
|
|
 |
8031900 |
|
|
 |
8031900 |
BuildArch: noarch
|
|
 |
8031900 |
|
|
 |
8031900 |
BuildRequires: python3-devel
|
|
 |
8031900 |
BuildRequires: systemd-rpm-macros
|
|
 |
8031900 |
|
|
 |
8031900 |
%if ! 0%{?rhel}
|
|
 |
8031900 |
Provides: %{freeipa_altprefix}-%{plugin_name} = %{version}-%{release}
|
|
 |
8031900 |
Requires: freeipa-server >= %{ipa_version}
|
|
 |
8031900 |
Requires(post): freeipa-server >= %{ipa_version}
|
|
 |
8031900 |
%endif
|
|
 |
8031900 |
|
|
 |
8031900 |
%description
|
|
 |
8031900 |
A module for FreeIPA with extensions for Fedora Account System.
|
|
 |
8031900 |
|
|
 |
8031900 |
%if 0%{?rhel}
|
|
 |
8031900 |
%package -n ipa-%{plugin_name}
|
|
 |
8031900 |
Summary: Fedora Account System extension for IdM
|
|
 |
8031900 |
|
|
 |
8031900 |
Provides: %{freeipa_altprefix}-%{plugin_name} = %{version}-%{release}
|
|
 |
8031900 |
Requires: ipa-server >= %{ipa_version}
|
|
 |
8031900 |
Requires(post): ipa-server >= %{ipa_version}
|
|
 |
8031900 |
|
|
 |
8031900 |
%description -n ipa-%{plugin_name}
|
|
 |
8031900 |
A module for IdM with extensions for Fedora Account System.
|
|
 |
8031900 |
%endif
|
|
 |
8031900 |
|
|
 |
8031900 |
%prep
|
|
 |
8031900 |
%autosetup -n freeipa-%{plugin_name}-%{version}
|
|
 |
8031900 |
|
|
 |
8031900 |
%build
|
|
 |
8031900 |
# Nothing to build
|
|
 |
8031900 |
|
|
 |
8031900 |
%install
|
|
 |
8031900 |
|
|
 |
8031900 |
mkdir -p %{buildroot}%{python3_sitelib}/ipaserver/plugins
|
|
 |
8031900 |
for j in $(find ipaserver/plugins -name '*.py') ; do
|
|
 |
8031900 |
cp -a $j %{buildroot}%{python3_sitelib}/ipaserver/plugins
|
|
 |
8031900 |
done
|
|
 |
8031900 |
|
|
 |
8031900 |
mkdir -p %{buildroot}/%{_datadir}/ipa/schema.d
|
|
 |
8031900 |
for j in $(find schema.d/ -name '*.ldif') ; do
|
|
 |
8031900 |
cp -a $j %{buildroot}/%{_datadir}/ipa/schema.d/
|
|
 |
8031900 |
done
|
|
 |
8031900 |
|
|
 |
8031900 |
mkdir -p %{buildroot}/%{_datadir}/ipa/updates
|
|
 |
8031900 |
for j in $(find updates/ -name '*.update') ; do
|
|
 |
8031900 |
cp -a $j %{buildroot}/%{_datadir}/ipa/updates/
|
|
 |
8031900 |
done
|
|
 |
8031900 |
|
|
 |
8031900 |
mkdir -p %{buildroot}/%{_datadir}/ipa/ui/js/plugins
|
|
 |
8031900 |
for j in $(find ui/ -name '*.js') ; do
|
|
 |
8031900 |
destdir=%{buildroot}/%{_datadir}/ipa/ui/js/plugins/$(basename ${j%%.js})
|
|
 |
8031900 |
mkdir -p $destdir
|
|
 |
8031900 |
cp -a $j $destdir/
|
|
 |
8031900 |
done
|
|
 |
8031900 |
|
|
 |
3b8c840 |
mkdir -p %{buildroot}/%{_bindir}
|
|
 |
3b8c840 |
install -p -m 755 create-agreement.py %{buildroot}/%{_bindir}/ipa-create-agreement
|
|
 |
3b8c840 |
|
|
 |
3b8c840 |
|
|
 |
8031900 |
%posttrans -n %{freeipa_prefix}-%{plugin_name}
|
|
 |
8031900 |
%python3 -c "import sys; from ipaserver.install import installutils; sys.exit(0 if installutils.is_ipa_configured() else 1);" > /dev/null 2>&1
|
|
 |
8031900 |
|
|
 |
8031900 |
if [ $? -eq 0 ]; then
|
|
 |
8031900 |
# This must be run in posttrans so that updates from previous
|
|
 |
8031900 |
# execution that may no longer be shipped are not applied.
|
|
 |
8031900 |
/usr/sbin/ipa-server-upgrade --quiet >/dev/null || :
|
|
 |
8031900 |
|
|
 |
8031900 |
# Restart IPA processes. This must be also run in postrans so that plugins
|
|
 |
8031900 |
# and software is in consistent state
|
|
 |
8031900 |
# NOTE: systemd specific section
|
|
 |
8031900 |
/bin/systemctl try-restart ipa.service >/dev/null 2>&1 || :
|
|
 |
8031900 |
fi
|
|
 |
8031900 |
|
|
 |
8031900 |
%files -n %{freeipa_prefix}-%{plugin_name}
|
|
 |
8031900 |
%license COPYING
|
|
 |
8031900 |
%doc README.md CONTRIBUTORS.txt
|
|
 |
8031900 |
%{python3_sitelib}/ipaserver/plugins/*.py
|
|
 |
8031900 |
%{python3_sitelib}/ipaserver/plugins/__pycache__/*.pyc
|
|
 |
8031900 |
%{_datadir}/ipa/schema.d/*.ldif
|
|
 |
8031900 |
%{_datadir}/ipa/updates/*.update
|
|
 |
8031900 |
%{_datadir}/ipa/ui/js/plugins/*
|
|
 |
3b8c840 |
%{_bindir}/ipa-create-agreement
|
|
 |
8031900 |
|
|
 |
8031900 |
%changelog
|
|
 |
645b3ce |
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.6-6
|
|
 |
645b3ce |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
 |
645b3ce |
|
|
 |
7470209 |
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.0.6-5
|
|
 |
7470209 |
- Rebuilt for Python 3.11
|
|
 |
7470209 |
|
|
 |
f0373e0 |
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.6-4
|
|
 |
f0373e0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
 |
f0373e0 |
|
|
 |
678a680 |
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.6-3
|
|
 |
678a680 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
 |
678a680 |
|
|
 |
f8fc5fd |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.0.6-2
|
|
 |
f8fc5fd |
- Rebuilt for Python 3.10
|
|
 |
f8fc5fd |
|
|
 |
3b8c840 |
* Mon Mar 22 2021 Neal Gompa <ngompa13@gmail.com> - 0.0.6-1
|
|
 |
3b8c840 |
- Update to 0.0.6
|
|
 |
3b8c840 |
|
|
 |
96fb75f |
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.4-2
|
|
 |
96fb75f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
 |
96fb75f |
|
|
 |
8031900 |
* Fri Oct 30 2020 Neal Gompa <ngompa13@gmail.com> - 0.0.4-1
|
|
 |
8031900 |
- Update to 0.0.4
|
|
 |
8031900 |
|
|
 |
8031900 |
* Sun Oct 04 2020 Neal Gompa <ngompa13@gmail.com> - 0.0.2-1.git20200921.04a0d2b
|
|
 |
8031900 |
- Update to new git snapshot
|
|
 |
8031900 |
|
|
 |
8031900 |
* Sun Jul 26 2020 Neal Gompa <ngompa13@gmail.com> - 0.0.2-1.git20200610.b82302d
|
|
 |
8031900 |
- Update to new git snapshot
|
|
 |
8031900 |
|
|
 |
8031900 |
* Mon Apr 20 2020 Neal Gompa <ngompa13@gmail.com> - 0.0.2-1.git20200422.2b4470e
|
|
 |
8031900 |
- Small cleanups and consistency fixes of the packaging
|
|
 |
8031900 |
|
|
 |
8031900 |
* Wed Feb 12 2020 Christian Heimes <cheimes@redhat.com> - 0.0.2-1
|
|
 |
8031900 |
- Make new fields readable
|
|
 |
8031900 |
- Make mail attribute writeable
|
|
 |
8031900 |
|
|
 |
8031900 |
* Tue Nov 19 2019 Christian Heimes <cheimes@redhat.com> - 0.0.1-1
|
|
 |
8031900 |
- Initial release
|