dfc32d4
Summary: A signing server and related software client
dfc32d4
Name: sigul
a9ee65f
35dc439
Version: 0.205
45fd64d
Release: 2%{?dist}
dfc32d4
License: GPLv2
a9ee65f
a9ee65f
URL: https://pagure.io/sigul/
a9ee65f
Source0: https://pagure.io/releases/sigul/sigul-%{version}.tar.bz2
c1ff378
Source1: sigul_bridge.service
c1ff378
Source2: sigul_server.service
dfc32d4
Source3: sigul.logrotate
a9ee65f
a9ee65f
Requires: logrotate, python
95e7ee8
Requires: python-nss >= 0.11
a9ee65f
Requires: koji
dfc32d4
# For sigul_setup_client
dfc32d4
Requires: coreutils nss-tools
dfc32d4
Requires(pre): shadow-utils
dfc32d4
BuildRequires: python
dfc32d4
# To detect the path correctly in configure
dfc32d4
BuildRequires: gnupg
a9ee65f
# To run the test suite
a9ee65f
BuildRequires: python-nss, gnupg, koji, pexpect, pygpgme, python, python-fedora
6ec1a17
BuildRequires: rpm-sign python-urlgrabber python-sqlalchemy git
c1ff378
BuildRequires: systemd
811c90a
BuildRequires: ostree
a9ee65f
BuildRequires: ostree-devel
714f103
%ifnarch ppc64 ppc64le
714f103
# Skopeo fails to build for ppc64le
d1e30e2
BuildRequires: skopeo
714f103
%endif
dfc32d4
37777d3
%if 0%{?rhel}
37777d3
# There is no ostree package for RHEL other than x86_64, as that's in Atomic Host
37777d3
ExclusiveArch: x86_64
37777d3
%endif
37777d3
dfc32d4
%description
dfc32d4
A signing server, which lets authorized users sign data without having any
dfc32d4
access to the necessary private key, a client for the server, and a "bridge"
dfc32d4
that connects the two.
dfc32d4
a9ee65f
a9ee65f
%package server
a9ee65f
Summary: Sigul server component
a9ee65f
Requires: %{name}%{?_isa} = %{version}-%{release}
a9ee65f
%if 0%{?rhel} && 0%{?rhel} <= 5
a9ee65f
Requires: python-sqlite2
a9ee65f
%endif
a9ee65f
Requires: gnupg
a9ee65f
Requires: pygpgme
a9ee65f
Requires: pexpect
a9ee65f
Requires: ostree
a9ee65f
Requires: rpm-sign
a9ee65f
Requires: python-sqlalchemy >= 0.5
a9ee65f
# For systemd unit macros
a9ee65f
Requires(post): systemd
a9ee65f
Requires(preun): systemd
a9ee65f
Requires(postun): systemd
a9ee65f
a9ee65f
%description server
a9ee65f
The server part of sigul that keeps the keys and performs the actual signing.
a9ee65f
a9ee65f
a9ee65f
%package bridge
a9ee65f
Summary: Sigul bridge
a9ee65f
Requires: %{name}%{?_isa} = %{version}-%{release}
a9ee65f
Requires: python-fedora
a9ee65f
Requires: python-urlgrabber
a9ee65f
# For systemd unit macros
a9ee65f
Requires(post): systemd
a9ee65f
Requires(preun): systemd
a9ee65f
Requires(postun): systemd
a9ee65f
a9ee65f
%description bridge
a9ee65f
The bridge part of sigul that facilitates connection between the client and server.
a9ee65f
a9ee65f
dfc32d4
%prep
dfc32d4
%setup -q
dfc32d4
dfc32d4
%build
7794037
%if 0%{?rhel} >= 7
7794037
export GPG=/usr/bin/gpg1
7794037
%endif
dfc32d4
%configure
dfc32d4
make %{?_smp_mflags}
dfc32d4
a9ee65f
%check
45fd64d
%ifnarch ppc64 ppc64le
714f103
# Skopeo fails to build for ppc64le
45fd64d
%if 0%{?fedora}
45fd64d
    if make check; then
45fd64d
        echo "Tests passed"
45fd64d
    else
45fd64d
        echo "Tests failed. Log output follows"
45fd64d
        cat testsuite.log
45fd64d
        cat testsuite.dir/*/{testsuite.log,bridge/sigul_bridge.log,server/sigul_server.log}
45fd64d
        exit 1
45fd64d
    fi
45fd64d
%endif
45fd64d
%endif
a9ee65f
dfc32d4
%install
dfc32d4
make DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' install
c1ff378
mkdir -p $RPM_BUILD_ROOT%{_unitdir} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d
c1ff378
install -m 0644 -p %{SOURCE1} $RPM_BUILD_ROOT%{_unitdir}/sigul_bridge.service
c1ff378
install -m 0644 -p %{SOURCE2} $RPM_BUILD_ROOT%{_unitdir}/sigul_server.service
dfc32d4
install -m 0644 -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/sigul
dfc32d4
dfc32d4
%pre
dfc32d4
getent group sigul >/dev/null || groupadd -r sigul
dfc32d4
getent passwd sigul >/dev/null || \
dfc32d4
useradd -r -g sigul -d %{_localstatedir}/lib/sigul -s /sbin/nologin \
dfc32d4
        -c "Signing server or bridge" sigul
dfc32d4
exit 0
dfc32d4
a9ee65f
%post bridge
c1ff378
%systemd_post sigul_bridge.service
a9ee65f
a9ee65f
%post server
c1ff378
%systemd_post sigul_server.service
dfc32d4
a9ee65f
%preun bridge
c1ff378
%systemd_preun sigul_bridge.service
a9ee65f
a9ee65f
%preun server
c1ff378
%systemd_preun sigul_server.service
dfc32d4
a9ee65f
%postun bridge
c1ff378
%systemd_postun_with_restart sigul_bridge.service
a9ee65f
a9ee65f
%postun server
c1ff378
%systemd_postun_with_restart sigul_server.service
dfc32d4
a9ee65f
dfc32d4
%files
dfc32d4
%defattr(-,root,root,-)
6a7b91a
%doc AUTHORS COPYING NEWS README
dfc32d4
%dir %{_sysconfdir}/sigul
dfc32d4
%config(noreplace) %{_sysconfdir}/sigul/client.conf
dfc32d4
%config(noreplace) %{_sysconfdir}/logrotate.d/sigul
a9ee65f
%{_bindir}/sigul
a9ee65f
%{_bindir}/sigul_setup_client
dfc32d4
%{_mandir}/man1/sigul*.1*
dfc32d4
%{_mandir}/man8/sigul*.8*
a9ee65f
%dir %{_datadir}/sigul
a9ee65f
%{_datadir}/sigul/bind_methods.py*
a9ee65f
%{_datadir}/sigul/client.py*
a9ee65f
%{_datadir}/sigul/double_tls.py*
a9ee65f
%{_datadir}/sigul/errors.py*
a9ee65f
%{_datadir}/sigul/settings.py*
a9ee65f
%{_datadir}/sigul/utils.py*
a9ee65f
a9ee65f
a9ee65f
%files bridge
a9ee65f
%config(noreplace) %attr(640,root,sigul) %{_sysconfdir}/sigul/bridge.conf
a9ee65f
%{_unitdir}/sigul_bridge.service
a9ee65f
%{_sbindir}/sigul_bridge
a9ee65f
%{_datadir}/sigul/bridge*
a9ee65f
a9ee65f
%files server
a9ee65f
%config(noreplace) %attr(640,root,sigul) %{_sysconfdir}/sigul/server.conf
a9ee65f
%{_unitdir}/sigul_server.service
a9ee65f
%{_bindir}/sigul-ostree-helper
a9ee65f
%{_sbindir}/sigul_server
a9ee65f
%{_sbindir}/sigul_server_add_admin
a9ee65f
%{_sbindir}/sigul_server_create_db
dfc32d4
%dir %attr(700,sigul,sigul) %{_localstatedir}/lib/sigul
dfc32d4
%dir %attr(700,sigul,sigul) %{_localstatedir}/lib/sigul/gnupg
a9ee65f
%{_datadir}/sigul/server*
a9ee65f
dfc32d4
dfc32d4
%changelog
45fd64d
* Wed Mar 01 2017 Patrick Uiterwijk <puiterwijk@redhat.com> - 0.205-2
45fd64d
- Enable tests
45fd64d
35dc439
* Wed Mar 01 2017 Patrick Uiterwijk <puiterwijk@redhat.com> - 0.205-1
35dc439
- Rebase to upstream 0.205
35dc439
acb6873
* Tue Feb 21 2017 Patrick Uiterwijk <puiterwijk@redhat.com> - 0.204-3
acb6873
- Add PIN reading fix
acb6873
38488d6
* Tue Feb 21 2017 Patrick Uiterwijk <puiterwijk@redhat.com> - 0.204-2
38488d6
- rebuilt
38488d6
0640091
* Mon Feb 20 2017 Patrick Uiterwijk <puiterwijk@redhat.com> - 0.204-1
0640091
- Rebase to upstream 0.204
0640091
11eae26
* Mon Feb 13 2017 Patrick Uiterwijk <puiterwijk@redhat.com> - 0.203-1
11eae26
- Rebase to 0.203
11eae26
cdf8cd0
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.202-5
cdf8cd0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
cdf8cd0
70821c2
* Sun Dec 11 2016 Patrick Uiterwijk <puiterwijk@redhat.com> - 0.202-4
70821c2
- Add patch for krb5 support
70821c2
714f103
* Sat Oct 29 2016 Patrick Uiterwijk <puiterwijk@redhat.com> - 0.202-3
714f103
- Disable test suite for ppc64, since skopeo failed to build
c1b6eb9
- Enable test suite on Fedora instead of RHEL
714f103
96f4fcc
* Wed Oct 19 2016 Patrick Uiterwijk <puiterwijk@redhat.com> - 0.202-2
96f4fcc
- Do not run tests on el7
96f4fcc
a0a9210
* Tue Oct 11 2016 Patrick Uiterwijk <puiterwijk@redhat.com> - 0.202-1
a0a9210
- Update to 0.202
a0a9210
3f8d855
* Tue Sep 20 2016 Patrick Uiterwijk <puiterwijk@redhat.com> - 0.201-2
3f8d855
- Rebuild with test suite on
3f8d855
3d9a8ef
* Fri Sep 16 2016 Patrick Uiterwijk <puiterwijk@redhat.com> - 0.201-1
3d9a8ef
- New upstream release
3d9a8ef
a9ee65f
* Wed Sep 07 2016 Patrick Uiterwijk <puiterwijk@redhat.com> - 0.200-1
a9ee65f
- New upstream release
a9ee65f
607a097
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.102-3
607a097
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
607a097
c1ff378
* Mon Jan 25 2016 Miloslav Trmač <mitr@redhat.com> - 0.102-2
c1ff378
- Migrate to systemd unit files, based on a patch by Kevin Fenzi
c1ff378
  <kevin@scrye.com>.
c1ff378
  Resolves: #1301297
c1ff378
1cb7610
* Thu Nov 26 2015 Miloslav Trmač <mitr@redhat.com> - 0.102-1
1cb7610
- Update to sigul-0.102.
1cb7610
  Resolves: #1283364
1cb7610
  Related: #1272535
1cb7610
db6f5d6
* Wed Nov 18 2015 Miloslav Trmač <mitr@redhat.com> - 0.101-1
db6f5d6
- Update to sigul-0.101.
db6f5d6
  Related: #1272535
db6f5d6
a95d746
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.100-6
a95d746
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
a95d746
f90df08
* Mon Apr 27 2015 Miloslav Trmač <mitr@redhat.com> - 0.100-5
f90df08
- Add Requires: rpm-sign
f90df08
  Resolves: #1215678
f90df08
a35c9c6
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.100-4
a35c9c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
a35c9c6
1bd3420
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.100-3
1bd3420
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
1bd3420
b7c7f2a
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.100-2
b7c7f2a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
b7c7f2a
2b8ee1f
* Tue Jul 17 2012 Miloslav Trmač <mitr@redhat.com> - 0.100-1
2b8ee1f
- Update to sigul-0.100.
2b8ee1f
7586a3f
* Wed Feb  8 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 0.99-3
7586a3f
- Remove the python-sqlite2 dep in Fedora as that package is being retired and
7586a3f
  sigul can use the sqlite3  module from the python stdlib
7586a3f
3831993
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99-2
3831993
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
3831993
8adfd25
* Mon Jun  6 2011 Miloslav Trmač <mitr@redhat.com> - 0.99-1
8adfd25
- Update to sigul-0.99.
8adfd25
8fa3c43
* Thu Jun  2 2011 Miloslav Trmač <mitr@redhat.com> - 0.98-2
8fa3c43
- Add Requires: gnupg
8fa3c43
  Resolves: #664536
8fa3c43
95e7ee8
* Tue May 31 2011 Miloslav Trmač <mitr@redhat.com> - 0.98-1
95e7ee8
- Update to sigul-0.98.
95e7ee8
672ad10
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.97-3
672ad10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
672ad10
259f785
* Wed Aug 11 2010 David Malcolm <dmalcolm@redhat.com>
259f785
- recompiling .py files against Python 2.7 (rhbz#623359)
259f785
2c1a6ca
- Drop no longer necessary references to BuildRoot:
2c1a6ca
6a7b91a
* Fri Jul 31 2009 Miloslav Trmač <mitr@redhat.com> - 0.97-1
6a7b91a
- Update to sigul-0.97.
6a7b91a
- Ship NEWS.
6a7b91a
1e59edf
* Tue Jul 28 2009 Jesse Keating <jkeating@redhat.com> - 0.96-6
1e59edf
- Fix the patch in -4
1e59edf
1a8b159
* Tue Jul 28 2009 Jesse Keating <jkeating@redhat.com> - 0.96-5
1a8b159
- Add a dist tag
1a8b159
3278d90
* Tue Jul 28 2009 Jesse Keating <jkeating@redhat.com> - 0.96-4
3278d90
- Add another patch to temporarily work around a stale koji issue.
3278d90
- Bump python-nss reqs up now that we have a newer one in EPEL
3278d90
3278d90
* Mon Jul 27 2009 Jesse Keating <jkeating@redhat.com> - 0.96-3
3278d90
- Setup the Requires right for EL5
3278d90
dfc32d4
* Mon Jul 27 2009 Jesse Keating <jkeating@redhat.com> - 0.96-2
dfc32d4
- Fix various bugs while testing (release by Mitr)
dfc32d4
- Patch from jkeating for srpm signing.
dfc32d4
dfc32d4
* Sat Jul 18 2009 Miloslav Trmač <mitr@redhat.com> - 0.95-0.mitr.1
dfc32d4
- Update to 0.95.
dfc32d4
- Add missing Requires: m2crypto.
dfc32d4
dfc32d4
* Wed Jul  1 2009 Miloslav Trmač <mitr@redhat.com> - 0.94-0.mitr.1
dfc32d4
- Update to 0.94.
dfc32d4
dfc32d4
* Fri Apr 10 2009 Miloslav Trmač <mitr@redhat.com> - 0.93-0.mitr.1
dfc32d4
- Update to 0.93.
dfc32d4
dfc32d4
* Wed Jan 28 2009 Miloslav Trmač <mitr@redhat.com> - 0.92-0.mitr.1
dfc32d4
- Update to 0.92.
dfc32d4
dfc32d4
* Mon Jan 12 2009 Miloslav Trmač <mitr@redhat.com> - 0.91-0.mitr.1
dfc32d4
- Update to 0.91.
dfc32d4
dfc32d4
* Sun Jan 11 2009 Miloslav Trmač <mitr@redhat.com> - 0.90-0.mitr.2
dfc32d4
- Requires: koji, python-sqlite2
dfc32d4
dfc32d4
* Sun Jan 11 2009 Miloslav Trmač <mitr@redhat.com> - 0.90-0.mitr.1
dfc32d4
- s/rpmsigner/sigul/g
dfc32d4
dfc32d4
* Sun Nov 30 2008 Miloslav Trmač <mitr@redhat.com> - 0.90-0.mitr.1
dfc32d4
- Initial package.