File fzclips.spec of Package fzclips

#
# spec file for package fzclips
#

Summary:	Language for developing expert systems
Name:		fzclips
Version:	6.10.4
Release:	1
Url:		http://www.nrc-cnrc.gc.ca/eng/ibp/iit/past-projects/fuzzy-reasoning.html
License:	GPLv2
Group:		Development/Tools/IDE
Source0:	fzclips-6.10d.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:	ncurses-devel 
BuildRequires:	xorg-x11-server xorg-x11-devel xorg-x11-libs gcc-c++
BuildRequires:	update-desktop-files fdupes
BuildRequires:	automake autoconf libtool

%description
FuzzyCLIPS is an extension of the CLIPS (C Language Integrated Production System) expert system shell from NASA. Developed by the Integrated Reasoning Group at the NRC Institute for Information Technology, the extension has been widely distributed for a number of years.

%package	devel
Summary:	C headers for developing programs that will embed CLIPS
Group:		Development/Libraries/Other
Url:		https://github.com/cygal/FuzzyCLIPS
Requires:	ncurses-devel pkgconfig

%description	devel
This package contains the libraries and header files needed for
developing embedded FuzzyCLIPS applications.


%prep
%setup -n fzclips-6.10d

%build
make -f Makefile.cl fz_clips
make clean
make -f Makefile.lib libfzclips.a
make clean
make -f Makefile.x  fz_xclips
make clean

%install
mkdir %{buildroot}/usr
mkdir %{buildroot}/usr/bin
mkdir %{buildroot}/usr/%{_lib}
mkdir %{buildroot}/usr/include
mkdir %{buildroot}/usr/include/fzclips
mv fz_clips %{buildroot}/usr/bin/
mv fz_xclips %{buildroot}/usr/bin/
mv libfzclips.a %{buildroot}/usr/%{_lib}/
mv * %{buildroot}/usr/include/fzclips/
%fdupes %{buildroot}

%clean
rm -rf %{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
%{_bindir}/fz_clips
%{_bindir}/fz_xclips

%files devel
%defattr(-,root,root,-)
%{_includedir}/fzclips/
%{_libdir}/libfzclips.a

%changelog
openSUSE Build Service is sponsored by