Compare commits
20 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2b0542f098 | ||
|
|
5361a6babc | ||
|
|
ef63e9707d | ||
|
|
3041734d67 | ||
|
|
6c76051c65 | ||
|
|
6210a51c2c | ||
|
|
65d0622bb1 | ||
|
|
411c7bdf6c | ||
|
|
9d5184720b | ||
|
|
f2bd717055 | ||
|
|
a9e267f988 | ||
|
|
264069f55f | ||
|
|
65e4305cf4 | ||
|
|
c9d994e884 | ||
|
|
c6fbfeaf3d | ||
|
|
d5e7fa6237 | ||
|
|
350551a3e0 | ||
|
|
98c724c7ea | ||
|
|
d038d6ef4d | ||
|
|
fcb8d963dd |
1 changed files with 81 additions and 24 deletions
105
calypso.spec
105
calypso.spec
|
|
@ -6,9 +6,10 @@
|
|||
|
||||
Name: calypso
|
||||
Version: 2.0
|
||||
Release: 0.5.%{date}git%{shortcommit}%{?dist}
|
||||
Release: 0.24.%{date}git%{shortcommit}%{?dist}
|
||||
Summary: Free and open-source CalDAV calendar server
|
||||
License: GPLv3+
|
||||
# Automatically converted from old format: GPLv3+ - review is highly recommended.
|
||||
License: GPL-3.0-or-later
|
||||
URL: https://keithp.com/blogs/calypso/
|
||||
Source0: %{name}-%{commit}.tar.xz
|
||||
Source1: %{name}-mktarball.sh
|
||||
|
|
@ -17,22 +18,17 @@ Source3: %{name}.pam
|
|||
Source4: %{name}.systemd
|
||||
# fix python-daemon dependency name
|
||||
Patch0: %{name}-daemon.patch
|
||||
BuildRequires: python3-daemon
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-iniparse
|
||||
BuildRequires: python3-vobject
|
||||
BuildRequires: systemd-rpm-macros
|
||||
%if %{with check}
|
||||
BuildRequires: git-core
|
||||
BuildRequires: python3-nose
|
||||
BuildRequires: python3-iniparse
|
||||
BuildRequires: python3-pytest
|
||||
%endif
|
||||
Requires(pre): shadow-utils
|
||||
Requires(post): git-core
|
||||
Requires: git-core
|
||||
Requires: python3-lockfile
|
||||
Recommends: python3-kerberos
|
||||
Recommends: python3-PyPAM
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
|
|
@ -44,31 +40,36 @@ patches to Radicale but was eventually split off as a separate project.
|
|||
* Uses git to retain a history of the database
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{commit}
|
||||
%patch0 -p1 -b .daemon
|
||||
%autosetup -p1 -n %{name}-%{commit}
|
||||
|
||||
# Create a sysusers.d config file
|
||||
cat >calypso.sysusers.conf <<EOF
|
||||
u calypso - 'CalDAV/CardDAV server with git storage' %{_sharedstatedir}/calypso -
|
||||
EOF
|
||||
|
||||
%generate_buildrequires
|
||||
%pyproject_buildrequires
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%py3_install
|
||||
%pyproject_install
|
||||
%pyproject_save_files -l calypso
|
||||
mkdir -p %{buildroot}%{_sharedstatedir}/calypso
|
||||
install -Dpm644 calypso.1 %{buildroot}%{_mandir}/man1/calypso.1
|
||||
install -Dpm644 %{S:2} %{buildroot}%{_sysconfdir}/calypso/config
|
||||
install -Dpm644 %{S:3} %{buildroot}%{_sysconfdir}/pam.d/calypso
|
||||
install -Dpm644 %{S:4} %{buildroot}%{_unitdir}/calypso.service
|
||||
|
||||
install -m0644 -D calypso.sysusers.conf %{buildroot}%{_sysusersdir}/calypso.conf
|
||||
|
||||
%if %{with check}
|
||||
%check
|
||||
nosetests-3
|
||||
%pyproject_check_import -t
|
||||
%pytest
|
||||
%endif
|
||||
|
||||
%pre
|
||||
getent group calypso >/dev/null || groupadd -r calypso
|
||||
getent passwd calypso >/dev/null || \
|
||||
useradd -r -g calypso -d %{_sharedstatedir}/calypso -s /sbin/nologin \
|
||||
-c "CalDAV/CardDAV server with git storage" calypso
|
||||
exit 0
|
||||
|
||||
%preun
|
||||
%systemd_preun calypso.service
|
||||
|
|
@ -90,8 +91,7 @@ fi
|
|||
%postun
|
||||
%systemd_postun_with_restart calypso.service
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%files -f %{pyproject_files}
|
||||
%doc README collection-config config
|
||||
%dir %attr(0750,root,calypso) %{_sysconfdir}/calypso
|
||||
%config(noreplace) %{_sysconfdir}/calypso/config
|
||||
|
|
@ -99,11 +99,68 @@ fi
|
|||
%{_bindir}/calypso
|
||||
%{_mandir}/man1/calypso.1*
|
||||
%{_unitdir}/calypso.service
|
||||
%{python3_sitelib}/calypso-%{version}-py%{python3_version}.egg-info
|
||||
%{python3_sitelib}/calypso
|
||||
%dir %attr(0750,calypso,calypso) %{_sharedstatedir}/calypso
|
||||
%{_sysusersdir}/calypso.conf
|
||||
|
||||
%changelog
|
||||
* Fri Sep 19 2025 Python Maint <python-maint@redhat.com> - 2.0-0.24.20190429git7317d88
|
||||
- Rebuilt for Python 3.14.0rc3 bytecode
|
||||
|
||||
* Fri Aug 15 2025 Python Maint <python-maint@redhat.com> - 2.0-0.23.20190429git7317d88
|
||||
- Rebuilt for Python 3.14.0rc2 bytecode
|
||||
|
||||
* Wed Jul 23 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-0.22.20190429git7317d88
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Mon Jul 21 2025 Dominik Mierzejewski <dominik@greysector.net> 2.0-0.21.20190429git7317d88
|
||||
- switch to modern python packaging macros (resolves rhbz#2377219)
|
||||
- drop nonexistent Recommends:
|
||||
|
||||
* Tue Jun 03 2025 Python Maint <python-maint@redhat.com> - 2.0-0.20.20190429git7317d88
|
||||
- Rebuilt for Python 3.14
|
||||
|
||||
* Tue Feb 11 2025 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.0-0.19.20190429git7317d88
|
||||
- Add sysusers.d config file to allow rpm to create users/groups automatically
|
||||
|
||||
* Thu Jan 16 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-0.18.20190429git7317d88
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
* Thu Jul 25 2024 Miroslav Suchý <msuchy@redhat.com> - 2.0-0.17.20190429git7317d88
|
||||
- convert license to SPDX
|
||||
|
||||
* Wed Jul 17 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-0.16.20190429git7317d88
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 2.0-0.15.20190429git7317d88
|
||||
- Rebuilt for Python 3.13
|
||||
|
||||
* Tue Jan 23 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-0.14.20190429git7317d88
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-0.13.20190429git7317d88
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-0.12.20190429git7317d88
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Fri Jul 07 2023 Python Maint <python-maint@redhat.com> - 2.0-0.11.20190429git7317d88
|
||||
- Rebuilt for Python 3.12
|
||||
|
||||
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-0.10.20190429git7317d88
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-0.9.20190429git7317d88
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Wed Jun 15 2022 Python Maint <python-maint@redhat.com> - 2.0-0.8.20190429git7317d88
|
||||
- Rebuilt for Python 3.11
|
||||
|
||||
* Thu Feb 17 2022 Charalampos Stratakis <cstratak@redhat.com> - 2.0-0.7.20190429git7317d88
|
||||
- Utilize pytest instead of the deprecated nose test runner
|
||||
|
||||
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-0.6.20190429git7317d88
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-0.5.20190429git7317d88
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue