From eae1c14976365e5a9c52b1e5cba36253a19e3998 Mon Sep 17 00:00:00 2001 From: blekot Date: Sun, 27 Jul 2008 16:05:17 +0000 Subject: [PATCH] - new - added patch for missing libs Changed files: libbrahe-missing_libs.patch -> 1.1 libbrahe.spec -> 1.1 --- libbrahe-missing_libs.patch | 7 ++++ libbrahe.spec | 78 +++++++++++++++++++++++++++++++++++++ 2 files changed, 85 insertions(+) create mode 100644 libbrahe-missing_libs.patch create mode 100644 libbrahe.spec diff --git a/libbrahe-missing_libs.patch b/libbrahe-missing_libs.patch new file mode 100644 index 0000000..7466f91 --- /dev/null +++ b/libbrahe-missing_libs.patch @@ -0,0 +1,7 @@ +--- src/Makefile.am.orig 2008-05-01 02:21:34.000000000 +0200 ++++ src/Makefile.am 2008-05-01 02:21:47.000000000 +0200 +@@ -14,3 +14,4 @@ + + AM_CFLAGS = -std=gnu99 -pedantic -Wall -Wno-format + DEFS = -I. -I$(srcdir) ++LIBS = -lm diff --git a/libbrahe.spec b/libbrahe.spec new file mode 100644 index 0000000..a425f8f --- /dev/null +++ b/libbrahe.spec @@ -0,0 +1,78 @@ +Summary: A Heterogenous C Library of Numeric Functions +Name: libbrahe +Version: 1.1.0 +Release: 1 +License: GPL +Group: Libraries +URL: http://www.coyotegulch.com/products/brahe/ +Source0: http://www.coyotegulch.com/distfiles/%{name}-%{version}.tar.gz +# Source0-md5: 6b02428844db18f8c51e2857346fe132 +Patch0: %{name}-missing_libs.patch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Brahe is where I put all sorts of useful mathematic functions that +don't seem to fit anywhere else. Among the bits and pieces here, +you'll find: +- A function, brahe_sigdig, that rounds floating-point values to a + specific number of significant digits -- very useful in scientific and + engineering applications. +- Several pseudorandom number generators, including the Marsenne + Twister, various algorithms by Marsaglia, and ISAAC. +- Least common multiple and greatest common denominator functions. +- A few trigonometry functions for finding the inversions of + hyperbolic sine, cosine, and tangent. + +%package devel +Summary: libbrahe headers and documentation +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +libcoyotl libraries headers and documentation + +%package static +Summary: libbrahe static libraries +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description static +libbrahe static libraries + +%prep +%setup -q +%patch -p0 + +%build +%{__libtoolize} +%{__aclocal} +%{__automake} +%{__autoconf} + +%configure +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/* +%attr(755,root,root) %{_libdir}/lib*.so.* + +%files devel +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/*.so +%{_libdir}/lib*.la +%dir %{_includedir}/%{name} +%{_includedir}/%{name}/*.h + +%files static +%defattr(644,root,root,755) +%{_libdir}/lib*.a -- 2.44.0