File libnova.spec of Package libnova

#
# spec file for package libnova (Version 0.12.2)
#
# Copyright (c) 2005 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://www.suse.de/feedback/
#

# norootforbuild

Name:         libnova0
BuildRequires:  gcc-c++ cmake
License:      LGPL
Group:        Development/Libraries
Autoreqprov:  on
Version:      0.12.2
Release:      1
Summary:      Astrodynamics Library
Source:       %{name}_%{version}.tar.gz
URL:          http://libnova.sourceforge.net/
BuildRoot:    %{_tmppath}/%{name}_%{version}-build
Packager:     Jasem Mutlaq <mutlaqja@ikarustech.com>

%description
libnova is a general purpose, double precision, Celestial Mechanics, Astrometry and Astrodynamics library. The intended audience of libnova is C & C++ programmers, astronomers and anyone else interested in calculating positions of astronomical objects or celestial mechanics.

%package devel
License:      LGPL
Group:        Development/Libraries
Summary:      Astrodynamics Library Development Files
Requires:     %{name} >= %{version}
%description devel
libnova is a general purpose, double precision, Celestial Mechanics, Astrometry and Astrodynamics library. The intended audience of libnova is C & C++ programmers, astronomers and anyone else interested in calculating positions of astronomical objects or celestial mechanics. libnova-devel contain header files required for development.


Authors:
--------
    Liam Girdwood <liam@gnova.org>
    Petr Kubanek <petr@kubanek.net>

# 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 %{buildroot}  

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

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

%changelog
* Sat Jul 12 2008 Jasem Mutlaq <mutlaqja@ikarustech.com> - 0.12.2
- Initial version.
openSUSE Build Service is sponsored by