# RPM Spec file for mod_dav_calendar

Name:      mod_dav_calendar
Version:   0.2.0
Release:   1%{?dist}
Summary:   Apache CalDav module
License:   ASL 2.0
Source:    https://github.com/minfrin/%{name}/releases/download/%{name}-%{version}/%{name}-%{version}.tar.bz2
Url:       https://github.com/minfrin/%{name}
BuildRequires: gcc, pkgconfig(apr-1), pkgconfig(apr-util-1), (httpd-devel or apache-devel or apache2-devel), pkgconfig(libical)
Requires: (httpd or apache or apache2)

%description
The Apache mod_dav_calendar module adds CalDav support.

%prep
%setup -q
%build
%configure
%make_build

%install
%make_install

%files
%if 0%{?sle_version} || 0%{?is_opensuse}
%{_libdir}/apache2/%{name}.so
%else
%{_libdir}/httpd/modules/%{name}.so
%endif

%doc AUTHORS ChangeLog README.md

%changelog
* Mon Feb 14 2022 Graham Leggett <minfrin@sharp.fm> - 0.1.0-1
- Initial version of the package