File epic5.spec of Package epic5

#
# spec file for package epic5
#
# Copyright (c) 2024 SUSE LLC
#
# 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/
#


Name:           epic5
Version:        3.0
Release:        0
Summary:        Enhanced Programmable ircII Client
License:        BSD-3-Clause
Group:          Productivity/Networking/IRC
URL:            https://www.epicsol.org
Source0:        http://ftp.epicsol.org/pub/epic/EPIC5-PRODUCTION/epic5-%{version}.tar.xz
BuildRequires:  ncurses-devel
BuildRequires:  openssl-devel
Provides:       epic = 5.%{version}
Provides:       ircii = 5.%{version}
Provides:       irciihlp = 5.%{version}
# in the "network" project we have epic4 as "epic", try to obsolete all its "Provides"
Obsoletes:      epic < %{version}
Obsoletes:      epic < 5.%{version}
Obsoletes:      ircii < %{version}
Obsoletes:      ircii < 5.%{version}
Obsoletes:      irciihlp < %{version}
Obsoletes:      irciihlp < 5.%{version}

%description
EPIC is an IRC client almost 100% compatible with the old ircII client
from which it was derived. It has improved scripting, better
configurability, and more.

%prep
%autosetup

%build
%configure \
	--with-ipv6 \
%{nil}
%make_build

%install
%make_install

# it installs a binary with a commit number in its name and an unversioned symlink to it
{
  printf '%{_bindir}/%{name}-'
  grep -oPm1 'commit_id = \K(\d+)' source/irc.c
  echo '%{_bindir}/%{name}'
} > rpmfiles

%files -f rpmfiles
%doc UPDATES BUG_FORM EPIC4-USERS-README FILES README README-CRYPTO VOTES WISHLIST KNOWNBUGS
%{_datadir}/%{name}
%{_libexecdir}/%{name}-wserv4
%{_mandir}/man1/%{name}.1%{?ext_man}

%changelog
openSUSE Build Service is sponsored by