diff --git a/calypso.spec b/calypso.spec index b31039e..251bbcb 100644 --- a/calypso.spec +++ b/calypso.spec @@ -6,7 +6,7 @@ Name: calypso Version: 2.0 -Release: 0.24.%{date}git%{shortcommit}%{?dist} +Release: 0.17.%{date}git%{shortcommit}%{?dist} Summary: Free and open-source CalDAV calendar server # Automatically converted from old format: GPLv3+ - review is highly recommended. License: GPL-3.0-or-later @@ -18,17 +18,22 @@ 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-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 @@ -40,36 +45,31 @@ patches to Radicale but was eventually split off as a separate project. * Uses git to retain a history of the database %prep -%autosetup -p1 -n %{name}-%{commit} - -# Create a sysusers.d config file -cat >calypso.sysusers.conf </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 @@ -91,7 +91,8 @@ fi %postun %systemd_postun_with_restart calypso.service -%files -f %{pyproject_files} +%files +%license COPYING %doc README collection-config config %dir %attr(0750,root,calypso) %{_sysconfdir}/calypso %config(noreplace) %{_sysconfdir}/calypso/config @@ -99,32 +100,11 @@ 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 - 2.0-0.24.20190429git7317d88 -- Rebuilt for Python 3.14.0rc3 bytecode - -* Fri Aug 15 2025 Python Maint - 2.0-0.23.20190429git7317d88 -- Rebuilt for Python 3.14.0rc2 bytecode - -* Wed Jul 23 2025 Fedora Release Engineering - 2.0-0.22.20190429git7317d88 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild - -* Mon Jul 21 2025 Dominik Mierzejewski 2.0-0.21.20190429git7317d88 -- switch to modern python packaging macros (resolves rhbz#2377219) -- drop nonexistent Recommends: - -* Tue Jun 03 2025 Python Maint - 2.0-0.20.20190429git7317d88 -- Rebuilt for Python 3.14 - -* Tue Feb 11 2025 Zbigniew Jędrzejewski-Szmek - 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 - 2.0-0.18.20190429git7317d88 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild - * Thu Jul 25 2024 Miroslav Suchý - 2.0-0.17.20190429git7317d88 - convert license to SPDX