File sbig.spec of Package sbig

#
# spec file for package sbigudrv (Version 1.0.0)
#
# Copyright (c) 2007 Santa Barbara Instrument Group
# 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://indi.sourceforge.net
#

# norootforbuild

Name:           sbig
BuildRequires:  cmake gcc-c++
Requires:	fxload
Url:            http://indi.sourceforge.net
License:        Attribution 3.0
Group:          Development/Libraries
Autoreqprov:    on
Version:        2.0.0
Release:        1
Summary:        SBIG CCD Univesral Driver Library & Firmware.
BuildRoot:	%{_tmppath}/%{name}_%{version}-build
Source:         %{name}_%{version}.tar.gz

%if 0%{?fedora_version}
Provides:		libsbigudrv.so
%endif

%description
The Santa Barbra Instrument Group (SBIG) Universal Library Driver is used by applications to access and control the USB, Parallel Port, and Ethernet versions of the CCD cameras and filter wheels including SBIG ST-7/8/9/10/2K cameras, ST-L cameras, and ST-402/1603/3200 cameras. The firmware is included for all classes of cameras.

Authors:
--------
    <mutlaqja@ikarustech.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  
  ln -sf %{_libdir}/libsbigudrv.so.2.0.0 $RPM_BUILD_ROOT%{_libdir}/libsbigudrv.so.2
  ln -sf %{_libdir}/libsbigudrv.so.2 $RPM_BUILD_ROOT%{_libdir}/libsbigudrv.so 
 
%post
%postun
%clean
%files
%defattr(-,root,root)
%dir /etc/udev
%dir /etc/udev/rules.d
/etc/udev/rules.d/99-sbig.rules
/lib/firmware/sbigucam.hex
/lib/firmware/sbigfcam.hex
/lib/firmware/sbiglcam.hex
/lib/firmware/stfga.bin
%{_libdir}/*.so*
openSUSE Build Service is sponsored by