Sophie

Sophie

distrib > Mageia > 5 > i586 > by-pkgid > d498b0ad10f8b5102df3948f2c5015d7 > files > 2

fuzzylite-5.0-1.20141102.1.mga5.src.rpm

%define major   5.0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d
%define snapshot 20141102

Name:           fuzzylite
Version:        5.0
Release:        %mkrel 1.%{snapshot}.1
Summary:        A fuzzy logic control library in C++
Group:          System/Libraries
License:        LGPLv3
URL:            http://www.fuzzylite.com
#Source0:        https://github.com/fuzzylite/fuzzylite/archive/v%{version}/%{name}-%{version}.tar.gz
Source0:        %{name}-%{version}+%{snapshot}.tar.xz

BuildRequires:  boost-devel
BuildRequires:  cmake
BuildRequires:  pkgconfig(sdl)
Requires:       %{libname} = %{version}-%{release}

%description
Fuzzylite is a free and open-source fuzzy logic control library
programmed in C++ for multiple platforms (Windows, Linux, Mac, iOS).
Its goal is to allow you to easily create fuzzy logic controllers
in a few steps utilizing object-oriented programming without
requiring any third-party libraries.

This package contains the %{name} console application.

%files
%doc README.md
%{_bindir}/%{name}

#----------------------------------------------------------------------

%package -n     %{libname}
Summary:        A fuzzy logic control library in C++
Group:          System/Libraries

%description -n %{libname}
Fuzzylite is a free and open-source fuzzy logic control library
programmed in C++ for multiple platforms (Windows, Linux, Mac, iOS).
Its goal is to allow you to easily create fuzzy logic controllers
in a few steps utilizing object-oriented programming without
requiring any third-party libraries.

%files -n       %{libname}
%{_libdir}/lib%{name}.so.*

#----------------------------------------------------------------------

%package -n     %{devname}
Summary:        Development files for %{name}
Group:          Development/C++
Requires:       %{libname} = %{version}-%{release}
Provides:       %{name}-devel = %{version}-%{release}

%description -n %{devname}
Development headers and library for %{name}.

%files -n       %{devname}
%doc AUTHOR ChangeLog LICENSE README.md
%{_includedir}/fl/
%{_libdir}/lib%{name}.so

#----------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}+%{snapshot}

%build
pushd fuzzylite
%cmake -DFL_BUILD_STATIC=OFF \
       -DFL_BACKTRACE=ON
%make
popd

%install
%makeinstall_std -C fuzzylite/build


%changelog
* Sun Nov 02 2014 akien <akien> 5.0-1.20141102.1.mga5
+ Revision: 795285
- imported package fuzzylite