File pg_rrule.spec of Package pg_rrule
#
# spec file for package pg_rrule
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2025 Dominik George <nik@naturalnet.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define pg_name @BUILD_FLAVOR@%{nil}
%define ext_name pg_rrule
%if "%{pg_name}" == ""
%global main_build 1
%else
%global main_build 0
%{pg_version_from_name}
%endif
%if %{main_build}
Name: %{ext_name}
ExclusiveArch: do_not_build
%else
Name: %{pg_name}-%{ext_name}
BuildRequires: %{pg_name}-server-devel
%pg_server_requires
%endif
BuildRequires: libical-devel
Version: 0.3.1
Release: 0
Summary: RRULE data type for PostgreSQL
License: MIT
Group: Productivity/Databases/Tools
URL: https://github.com/Natureshadow/pg_rrule
Source: https://github.com/Natureshadow/pg_rrule/archive/refs/tags/%{version}.tar.gz
%description
pg-rrule can expand recurrence rules (RRULE) as defined in the
iCalendar specification (RFC 5545). It allows expanding RRULEs
into concrete occurences as timestamps, which can then be queried
against.
%prep
%autosetup -p1 -n %{ext_name}-%{version}
%build
%make_pgxs
%install
%make_install
rm -rv %{buildroot}/usr/share/doc/
%files
%license LICENSE
%doc README.md
%{pg_config_pkglibdir}/pg_rrule*.so
%{pg_config_sharedir}/extension/pg_rrule*
%changelog