File libindi.spec of Package libindi
#
# spec file for package libindi (Version 0.6)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: libindi
BuildRequires: cmake gcc-c++ zlib-devel
BuildRequires: libcfitsio-devel libnova-devel libusb-devel
Url: http://indi.sourceforge.net/
License: GPL v2 or later; LGPL v2.1 or later
Group: Development/Libraries/C and C++
Summary: Instrument Neutral Distributed Interface
Version: 0.6
Release: 3
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: %{name}0_%{version}.tar.bz2
Requires: libindi0 = %version
%description
INDI is an Instrument Neutral Distributed Interface control protocol
for astronomical devices, which provides a framework that decouples low
level hardware drivers from high level front end clients. Clients that
use the device drivers are completely unaware of the device
capabilities and communicate with the device drivers and build a
completely dynamic GUI based on the services provided by the device.
Authors:
--------
Elwood Downey <ecdowney@clearskyinstitute.com>
Jasem Mutlaq <mutlaqja@ikarustech.com>
%package devel
License: GPL v2 or later; LGPL v2.1 or later
Group: Development/Libraries/C and C++
Summary: Instrument Neutral Distributed Interface
Requires: libindi0 = %{version} glibc-devel
%description devel
INDI is an Instrument Neutral Distributed Interface control protocol
for astronomical devices, which provides a framework that decouples low
level hardware drivers from high level front end clients. Clients that
use the device drivers are completely unaware of the device
capabilities and communicate with the device drivers and build a
completely dynamic GUI based on the services provided by the device.
Authors:
--------
Elwood Downey <ecdowney@clearskyinstitute.com>
Jasem Mutlaq <mutlaqja@ikarustech.com>
%package -n libindi0
License: GPL v2 or later; LGPL v2.1 or later
Group: Development/Libraries/C and C++
Summary: Instrument Neutral Distributed Interface
%description -n libindi0
INDI is an Instrument Neutral Distributed Interface control protocol
for astronomical devices, which provides a framework that decouples low
level hardware drivers from high level front end clients. Clients that
use the device drivers are completely unaware of the device
capabilities and communicate with the device drivers and build a
completely dynamic GUI based on the services provided by the device.
Authors:
--------
Elwood Downey <ecdowney@clearskyinstitute.com>
Jasem Mutlaq <mutlaqja@ikarustech.com>
%define ARCH_POSTFIX ""
%ifarch amd64 x86_64
%define ARCH_POSTFIX 64
%endif
%prep
%setup -q -n %{name}0-%{version}
%build
export CFLAGS="%optflags"
export CXXFLAGS="%optflags"
cmake . -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_ROOT=$RPM_BUILD_ROOT -DLIB_POSTFIX=%{ARCH_POSTFIX}
make %{?jobs:-j %jobs} VERBOSE=1
%install
%makeinstall
%clean
rm -rf $RPM_BUILD_ROOT
%post -n libindi0 -p /sbin/ldconfig
%postun -n libindi0 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%dir %{_datadir}/indi
%{_datadir}/indi/drivers.xml
%{_bindir}/indi*
%files -n libindi0
%defattr(-,root,root)
%{_libdir}/lib*.so*
%files devel
%defattr(-,root,root)
%dir %{_includedir}/libindi/
%{_includedir}/libindi/*.h
%{_libdir}/libindidriver.a
%changelog
* Fri Mar 20 2009 crrodriguez@suse.de
- run ldconfig
- use RPM_OPT_FLAGS
- fix -devel package dependencies
* Tue Jan 06 2009 dmueller@suse.de
- Initial package (v0.6)