diff --git a/.cvsignore b/.gitignore similarity index 100% rename from .cvsignore rename to .gitignore diff --git a/Makefile b/Makefile deleted file mode 100644 index b0fc9f0..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: libnova -# $Id$ -NAME := libnova -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/libnova.spec b/libnova.spec new file mode 100644 index 0000000..1d56dd6 --- /dev/null +++ b/libnova.spec @@ -0,0 +1,64 @@ +Name: libnova +Version: 0.12.1 +Release: 2%{?dist} +Summary: Libnova is a general purpose astronomy & astrodynamics library +Group: Development/Libraries +License: LGPLv2+ +URL: http://sourceforge.net/projects/libnova/ +Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +%description +Libnova is a general purpose, double precision, celestial mechanics, +astrometry and astrodynamics library + +%package devel +Summary: Development files for libnova +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +Contains library and header files for libnova + +%prep +%setup -q + + +%build +%configure --disable-static +make CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%doc ChangeLog README AUTHORS NEWS COPYING +%{_libdir}/libnova-0.12.so.1.0.0 +%{_libdir}/libnova-0.12.so.1 +%{_bindir}/libnovaconfig + +%files devel +%doc COPYING examples/*.c +%{_includedir}/libnova +%{_libdir}/libnova.so + + +%changelog +* Sat Jan 12 2007 Huzaifa Sidhpurwala - 0.12.1-2 +- Made changes to the Groups + +* Mon Jan 07 2007 Huzaifa Sidhpurwala - 0.12.1-1 +- Made small changes to make it more complaint with fedora packaging standards + +* Thu Jan 04 2007 Huzaifa Sidhpurwala - 0.12.1-0 +- Initial version. + diff --git a/sources b/sources index e69de29..378990e 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +8f4c6860aa627c5d0694b8bb5699fe7f libnova-0.12.1.tar.gz