File capi4yaps.spec of Package capi4yaps

#
# spec file for package capi4yaps
#
# Copyright (c) 2022, Martin Hauke <mardnh@gmx.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/
#

Name:           capi4yaps
Version:        0.96+git20080117
Release:        0
Summary:        Yet Another Pager Software - with patches for CAPI
License:        GPL-2.0-only
Group:          Hardware/Mobile
URL:            https://sites.google.com/view/melware-org/capi4yaps
#Git-Clone:     https://github.com/MelwareDE/capi4yaps.git
Source:         %{name}-%{version}.tar.xz
Patch0:         yaps-0.96.diff
Patch1:         yaps-0.96-getline.diff
Requires(pre):  permissions
BuildRequires:  libcapi20-devel
Conflicts:      yaps

%description
This software is primarily designed to send messages to pager devices,
including cellular phones which are able to receive textual messages
(sometimes called SMS, short message system/service.)

%prep
%setup -q
%patch0
%patch1

%build
%make_build

%install
install -d %{buildroot}%{_bindir}
%make_install
install -Dm 0644 yaps.rc %{buildroot}%{_sysconfdir}/yaps.rc
install -Dm 0644 yaps.1 %{buildroot}%{_mandir}/man1/yaps.1

%post
%set_permissions %{_bindir}/yaps
%verifyscript
%verify_permissions -e %{_bindir}/yaps

%files
%license COPYING.GPL COPYRIGHT
%doc README contrib yaps.doc yaps.html
%config %{_sysconfdir}/yaps.rc
%verify(not mode) %attr(0755,root,uucp) %{_bindir}/yaps
%{_mandir}/man1/yaps.1%{?ext_man}

%changelog
openSUSE Build Service is sponsored by