LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File libsbigudrv.spec.in of Package libsbigudrv (Project home:lupinix-indi:fedora-bleeding)

%global rev @REVISION@
%global upname libsbig

%global _firmwarepath   /usr/lib/firmware
%global major 2
%global debug_package %{nil}

Name:           libsbigudrv
Version:        @VERSION@
Release:        2%{?dist}
Summary:        Library to access SBIG CCD cameras and CFW

License:        SBIG
URL:            http://indilib.org/
Source0:        %{upname}-%{version}.git%{rev}.tar.xz
Source1:        %{name}-generate-tarball.sh

BuildRequires:  cmake
BuildRequires:  systemd-devel

Requires:	sbig-firmware

Provides:       libsbig = %{version}-%{release}
%ifarch x86_64
Provides: libsbig.so()(64bit)
%else
Provides: libsbig.so
%endif
     

%description
Library to access SBIG CCD cameras and filter wheels

%package -n     sbig-firmware
Summary:        Firmware for SBIG CCD devices
License:        Redistributable, no modification permitted
BuildArch:      noarch
Requires:       fxload

%description -n sbig-firmware
Firmware for SBIG CCD devices and filter wheels


%prep
%setup -q -n %{upname}-%{version}.git%{rev}
sed -i 's|/lib/udev/rules.d|%{_udevrulesdir}|g' CMakeLists.txt
sed -i 's|/lib/firmware|%{_firmwarepath}|g' CMakeLists.txt


%build
%cmake .
make VERBOSE=1 %{?_smp_mflags}


%install
%make_install
cd %{buildroot}%{_libdir}
ln -sf libsbig.so.%{version} libsbig.so
ln -sf libsbig.so.%{version} libsbig.so.%{major}
find %{buildroot} -name '*.la' -exec rm -f {} ';'


%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig


%files
%{_libdir}/*.so*
%{_includedir}/*

%files -n sbig-firmware
%doc LICENSE.firmware
%{_udevrulesdir}/51-sbig-debian.rules
%{_firmwarepath}/*.hex
%{_firmwarepath}/*.bin

#%files devel
#%{_includedir}/*
#%{_libdir}/*.so


%changelog
* Thu Mar 05 2015 Christian Dersch <chrisdersch@gmail.com> - 2.1.0-2
- rebuilt

* Tue Mar  3 2015 Christian Dersch <chrisdersch@gmail.com> - 2.1.0-1
- initial