File libfli.spec of Package libfli

#
# spec file for package libfli (Version 1.71)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# SO Version: 1

# norootforbuild


Name:           libfli1
BuildRequires:  cmake gcc-c++
Url:            http://www.flicamera.com
License:        BSD
Group:          Development/Libraries
Autoreqprov:    on
Summary:        Library for FLI CCD Camera & Filter Wheels
Version:        1.7
Release:        1
BuildRoot:	%{_tmppath}/%{name}_%{version}-build
Source:         %{name}_%{version}.tar.gz
Packager:       Jasem Mutlaq <mutlaqja@ikarustech.com>


%description
Finger Lakes Instrument library is used by applications to control FLI line of CCDs and Filter wheels

%package devel
License:      BSD
Group:        Development/Libraries
Summary:      Development headers for Finger Lakes Instruments Library
Requires:     %{name} >= %{version}
%description devel
Development headers and files for Finger Lakes Instruments library. 

Authors:
--------
    Finger Lakes Instruments <support@flicamera.com>

# Determine build arch for CMake
%define ARCH_POSTFIX ""
%ifarch amd64 x86_64
%define ARCH_POSTFIX 64
%endif

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

%build

cmake . -DCMAKE_INSTALL_PREFIX=/usr -DLIB_POSTFIX=%{ARCH_POSTFIX}

 make %{?jobs:-j %jobs}

%install
  make DESTDIR=$RPM_BUILD_ROOT install  

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT
rm -rf filelists

%files
%defattr(-,root,root)
%{_libdir}/libfli.so.*

%files devel
%defattr(-,root,root)
%{_libdir}/libfli.so
%{_includedir}/libfli.h

%changelog
* Fri Oct 03 2008 Jasem Mutlaq <mutlaqja@ikarustech.com> - 1.7
- Initial version
openSUSE Build Service is sponsored by