Name: libapogee
Version: 2.2
Release: 2%{?dist}
Summary: Library for Apogee CCD Cameras
%define majorver 2
Group: Development/Libraries
License: GPLv2+
URL: http://indi.sourceforge.net/index.php
Source0: http://downloads.sourceforge.net/indi/%{name}%{majorver}_%{version}.tar.gz
Patch0: libapogee-suffix.patch
# Patch to build in ppc ppc64
#https://sourceforge.net/tracker2/?func=detail&aid=2215787&group_id=90275&atid=593019
Patch1: libapogee-sysio.patch
Buildroot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
# Bug upstream about libapogee calling exit()
# https://sourceforge.net/tracker2/?func=detail&aid=2595732&group_id=90275&atid=593019
BuildRequires: cmake libusb-devel libcurl-devel
%description
Apogee library is used by applications to control Apogee CCDs.
%package devel
Summary: Libraries, includes, etc. used to develop an application with %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
These are the header files needed to develop a %{name} application
%prep
%setup -q -n %{name}%{majorver}-%{version}
%patch0 -p1
%patch1 -p1
%build
%cmake
make VERBOSE=1 %{?_smp_mflags}
%install
rm -fr %{buildroot}
make install DESTDIR=%{buildroot}
%clean
rm -fr %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog README LICENSE
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root,-)
%doc LICENSE
%{_includedir}/*
%{_libdir}/*.so
%changelog
* Fri Feb 13 2009 Sergio Pascual <sergiopr at fedoraproject.org> - 2.2-2
- Fixing license tag
- Patch to remove sys/io.h
- Bug filled upstream about calling exit()
* Sat Feb 07 2009 Sergio Pascual <sergiopr at fedoraproject.org> - 2.2-1
- Initial spec file