LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File fispro.spec of Package fispro (Project home:mistea)

%define name			fispro
%define release		1
%define version 	3.4
%define buildroot %{_tmppath}/%{name}-%{version}-build

BuildRoot:	%{buildroot}

BuildRequires: gcc >= 3.0 gcc-c++
BuildRequires: -post-build-checks
Requires: java-1.6.0-openjdk

%if 0%{?mandriva_version}
%ifarch i586
BuildRequires: libgsl0-devel
Requires:  libgsl0
%else
BuildRequires: lib64gsl-devel
Requires:  lib64gsl0
%endif
%else
BuildRequires: gsl-devel
Requires:      gsl
%endif
%if 0%{?suse_version}
BuildRequires: java-devel
%endif


Summary: fispro
License: CECIL
Name: %{name}
Version: %{version}
Release: %{release}
Source: %{name}-%{version}.tar.gz
Group: Applications
Provides: FisPro

%description

FisPro (Fuzzy Inference System Professional) allows to create fuzzy inference systems and to use them for reasoning purposes, especially for simulating a physical or biological system. 
%prep
%setup -q

%build
make all

%install
export NO_BRP_CHECK_BYTECODE_VERSION=true

rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/opt/fispro-%{version}
mkdir -p $RPM_BUILD_ROOT/opt/fispro-%{version}/bin

make install DESTDIR=$RPM_BUILD_ROOT/opt/fispro-%{version}

%files
%defattr(-,root,root)
%doc README
%doc README-building-MacOSX
%doc LISEZMOI

/opt/fispro-%{version}

%post 
ln -f -s /opt/fispro-%{version}/bin/fispro %_bindir/fispro
mkdir -p /usr/share/pixmaps
cp -f /opt/fispro-%{version}/fispro.xpm /usr/share/pixmaps
mkdir -p /usr/share/applications
cp -f /opt/fispro-%{version}/mandriva-fispro.desktop /usr/share/applications

%clean
rm -rf $RPM_BUILD_ROOT

%postun
rm -f %_bindir/fispro
rm -f /usr/share/applications/mandriva-fispro.desktop