File clips.spec of Package CLIPS
#
# spec file for package clips
#
# Copyright (c) 2022 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: clips
Version: 6.42
Release: 0
Summary: A forward chaining production system written by NASA
# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses
License: MIT-0
Group: Development/Languages/Other
URL: http://www.clipsrules.net
Source: %{name}_core_source_642.tar.gz
Source1: %{name}_examples_642.tar.gz
Source2: %{name}_documentation_642.tar.gz
BuildRequires: gcc
%description
"C" Language Integrated Production System
CLIPS is an OPS-like forward chaining production system written
in ANSI C by NASA. The CLIPS inference engine includes truth maintenance,
dynamic rule addition, and customizable conflict resolution strategies.
.
CLIPS, including the runtime version, is easily embeddable in other
applications. CLIPS includes an object-oriented language called COOL
(CLIPS Object-Oriented Language) which is directly integrated with the
inference engine.
%package doc
Summary: CLIPS documentation
Group: Development/Languages/Other
Requires: %{name}
BuildArch: noarch
%description doc
This package contains the CLIPS documentation including the user guide, basic
and advanced programming guide from http://www.clipsrules.net.
%prep
%setup
%setup -q -D -b1
%setup -q -TD -b2
%build
make -f makefile
strip clips
cp readme.txt COPYING
%install
install -d %{buildroot}%{_bindir}/
install -c -m 555 clips %{buildroot}%{_bindir}/
install -d %{buildroot}%{_datadir}/%{name}/examples
tar cf - examples|( cd %{buildroot}%{_datadir}/%{name}/; tar xf - )
install -d %{buildroot}%{_docdir}/clips/
install -c -m 444 users_guide.pdf %{buildroot}%{_docdir}/clips/
install -c -m 444 third_clips_conference_proceedings.pdf %{buildroot}%{_docdir}/clips/
install -c -m 444 advanced_programming_guide.pdf %{buildroot}%{_docdir}/clips/
install -c -m 444 basic_programming_guide.pdf %{buildroot}%{_docdir}/clips/
install -c -m 444 application_abstracts.pdf %{buildroot}%{_docdir}/clips/
install -c -m 444 architecture_manual_v5_1.pdf %{buildroot}%{_docdir}/clips/
install -c -m 444 interfaces_guide.pdf %{buildroot}%{_docdir}/clips/
%files
%defattr(-,root,root,755)
%{_bindir}/clips
%license COPYING
%dir %{_datadir}/clips/
%dir %{_datadir}/clips/examples
%{_datadir}/clips/examples/*
%files doc
%{_docdir}/clips/
%changelog