Owen W. Taylor 5fafd2e
Name:           regindexer
Owen W. Taylor dd1c070
Version:        0.6.2
Owen W. Taylor fe57000
Release:        1%{?dist}
Owen W. Taylor d7211ed
Summary:        Tool for creating an index of a container registry
Owen W. Taylor d7211ed
Owen W. Taylor d7211ed
License:        MIT
Owen W. Taylor d7211ed
URL:            https://pagure.io/regindexer
Owen W. Taylor d7211ed
Source0:        https://releases.pagure.org/regindexer/regindexer-%{version}.tar.gz
Owen W. Taylor d7211ed
Source1:        regindexer.service
Owen W. Taylor d7211ed
Owen W. Taylor d7211ed
BuildArch:      noarch
Owen W. Taylor d7211ed
Owen W. Taylor 4277101
BuildRequires:  python3-setuptools
Owen W. Taylor 4277101
BuildRequires:  python3-devel
Owen W. Taylor d7211ed
BuildRequires:  systemd
Owen W. Taylor d7211ed
Owen W. Taylor 68d6ec6
%?python_enable_dependency_generator
Owen W. Taylor d7211ed
Owen W. Taylor d7211ed
%description
Owen W. Taylor d7211ed
regindexer is a tool for creating an index of a container registry. It can
Owen W. Taylor d7211ed
be run manually from the command line, or can run run as a daemon
Owen W. Taylor d7211ed
rebuilding the index when it sees messages from Bodhi.
Owen W. Taylor d7211ed
Owen W. Taylor d7211ed
%prep
Owen W. Taylor d7211ed
%autosetup
Owen W. Taylor d7211ed
Owen W. Taylor d7211ed
Owen W. Taylor d7211ed
%build
Owen W. Taylor 4277101
%py3_build
Owen W. Taylor d7211ed
Owen W. Taylor d7211ed
Owen W. Taylor d7211ed
%install
Owen W. Taylor 4277101
%py3_install
Owen W. Taylor 68d6ec6
install -p -m 0644 -D config-example.yaml $RPM_BUILD_ROOT%{_sysconfdir}/regindexer/config.yaml
Owen W. Taylor 68d6ec6
install -p -m 0755 -d $RPM_BUILD_ROOT%{_sharedstatedir}/regindexer
Owen W. Taylor d7211ed
Owen W. Taylor 68d6ec6
install -p -m 0644 -D %{SOURCE1} $RPM_BUILD_ROOT%{_unitdir}/regindexer.service
Owen W. Taylor d7211ed
Owen W. Taylor d7211ed
%pre
Owen W. Taylor d7211ed
getent group regindexer >/dev/null || groupadd -r regindexer
Owen W. Taylor d7211ed
getent passwd regindexer >/dev/null || \
Owen W. Taylor d7211ed
    useradd -r -g regindexer -d %{_sharedstatedir}/regindexer -s /sbin/nologin \
Owen W. Taylor d7211ed
    -c "regindexer daemon user" regindexer
Owen W. Taylor d7211ed
exit 0
Owen W. Taylor d7211ed
Owen W. Taylor d7211ed
%post
Owen W. Taylor d7211ed
%systemd_post regindexer.service
Owen W. Taylor d7211ed
Owen W. Taylor d7211ed
%preun
Owen W. Taylor d7211ed
%systemd_preun regindexer.service
Owen W. Taylor d7211ed
Owen W. Taylor d7211ed
%postun
Owen W. Taylor d7211ed
%systemd_postun_with_restart regindexer.service
Owen W. Taylor d7211ed
Owen W. Taylor d7211ed
%files
Owen W. Taylor d7211ed
%license LICENSE
Owen W. Taylor d7211ed
%doc README.md
Owen W. Taylor 4277101
%{python3_sitelib}/regindexer/
Owen W. Taylor 4277101
%{python3_sitelib}/regindexer*.egg-info/
Owen W. Taylor d7211ed
%{_bindir}/regindexer
Owen W. Taylor d7211ed
%{_bindir}/regindexer-daemon
Owen W. Taylor d7211ed
%{_unitdir}/*
Owen W. Taylor d7211ed
%config(noreplace) %{_sysconfdir}/regindexer
Owen W. Taylor d7211ed
%attr(-, regindexer, regindexer) %{_sharedstatedir}/regindexer
Owen W. Taylor d7211ed
Owen W. Taylor d7211ed
%changelog
Owen W. Taylor dd1c070
* Tue Feb  4 2020 Owen Taylor <otaylor@redhat.com> - 0.6.2-1
Owen W. Taylor dd1c070
- Version 0.6.2 - make required_labels work correctly
Owen W. Taylor dd1c070
Owen W. Taylor fe57000
* Wed Jan 22 2020 Owen Taylor <otaylor@redhat.com> - 0.6-1
Owen W. Taylor fe57000
- Version 0.6 (add support for Flatpak metadata in labels)
Owen W. Taylor fe57000
Owen W. Taylor 68d6ec6
* Thu Aug  8 2019 fedora-toolbox <otaylor@redhat.com> - 0.5-4
Owen W. Taylor 68d6ec6
- Use python_enable_dependency_generator (from Igor Gnatenko)
Owen W. Taylor 68d6ec6
- Use install -p to preserve timestamps (also from Igor Gnatenko)
Owen W. Taylor 68d6ec6
Owen W. Taylor 329aa4b
* Mon Aug  5 2019 Owen Taylor <otaylor@redhat.com> - 0.5-3
Owen W. Taylor 4277101
- Switch back to Python 3 (resolves #1655256)
Owen W. Taylor 4277101
dc8cddb
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.5-2
dc8cddb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
dc8cddb
Owen W. Taylor 8f7b2fc
* Thu Jun  6 2019 fedora-toolbox <otaylor@redhat.com> - 0.5-1
Owen W. Taylor 8f7b2fc
- Version 0.5 (compatibility with Bodhi v4)
Owen W. Taylor 8f7b2fc
b35f4d4
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4-2
b35f4d4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
b35f4d4
Owen W. Taylor 8093fd7
* Fri Nov 30 2018 fedora-toolbox <otaylor@redhat.com> - 0.4-1
Owen W. Taylor 8093fd7
- Version 0.4 (fixes problem with > 100 repositories)
Owen W. Taylor 8093fd7
Owen W. Taylor eb6c219
* Wed Aug 29 2018 Owen Taylor <otaylor@redhat.com> - 0.3-1
Owen W. Taylor eb6c219
- Version 0.3
Owen W. Taylor eb6c219
Owen W. Taylor d7211ed
* Sat Aug 11 2018 Owen Taylor <otaylor@redhat.com> - 0.2-1
Owen W. Taylor d7211ed
- Version 0.2 - switch from fedmsg-hub plugin to a daemon
Owen W. Taylor d7211ed
Owen W. Taylor d7211ed
* Thu Aug  2 2018 Owen Taylor <otaylor@redhat.com> - 0.1-1
Owen W. Taylor d7211ed
- Initial version