File libnova.spec of Package libnova

#
# spec file for package libnova
#
# Copyright (c) 2011 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

%define debug_package_requires libnova-0_14-0 = %{version}-%{release}

Name:           libnova
Version:        0.14.0
Release:        1
License:        LGPL-2.0+
Summary:        Celestial Mechanics, Astrometry and Astrodynamics Library
Url:            http://libnova.sourceforge.net/
Group:          System/Libraries
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
BuildRequires:  gcc-c++
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%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-2.0+
Summary:        Development files for libnova
Group:          Development/Libraries/C and C++
Requires:       glibc-devel
Requires:       libnova-0_14-0 = %{version}

%description devel
This package contains development files for libnova.

%package -n libnova-0_14-0
License:        LGPL-2.0+
Summary:        Celestial Mechanics, Astrometry and Astrodynamics Library
Group:          System/Libraries

%description -n libnova-0_14-0
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.

%prep
%setup -q

%build
%configure --disable-static --with-pic
make CFLAGS+="%{optflags}" %{?_smp_mflags}

%install
%make_install

# Not needed
rm -f %{buildroot}%{_libdir}/*.la

%post -n libnova-0_14-0 -p /sbin/ldconfig

%postun -n libnova-0_14-0 -p /sbin/ldconfig

%clean
rm -rf %{buildroot}

%files devel
%defattr(-,root,root,-)
%doc AUTHORS COPYING ChangeLog NEWS
%{_includedir}/libnova/
%{_libdir}/libnova.so
%{_bindir}/libnovaconfig

%files -n libnova-0_14-0
%defattr(-,root,root,-)
%{_libdir}/libnova-0.14.so.0*

%changelog
openSUSE Build Service is sponsored by