public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Milan Bouchet-Valat <nalimilan@club.fr>
To: git-commits@fedoraproject.org
Subject: [rpms/openlibm] epel10: Add .spec file
Date: Thu, 05 Nov 2026 10:23:10 GMT	[thread overview]
Message-ID: <179387419099.1.418447249210943775.rpms-openlibm-188fde0fa323@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/openlibm
Branch : epel10
Commit : 188fde0fa3230a6635ccc0ba53f60c0a5d9563e4
Author : Milan Bouchet-Valat <nalimilan@club.fr>
Date   : 2014-05-19T23:19:57+02:00
Stats  : +116/-0 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/openlibm/c/188fde0fa3230a6635ccc0ba53f60c0a5d9563e4?branch=epel10

Log:
Add .spec file

---
diff --git a/openlibm.spec b/openlibm.spec
new file mode 100644
index 0000000..8cc461f
--- /dev/null
+++ b/openlibm.spec
@@ -0,0 +1,116 @@
+%bcond_with static_libs # don't build static libraries
+
+Summary:        High quality system independent, open source libm
+Name:           openlibm
+Version:        0.3
+Release:        6%{?dist}
+License:        BSD and MIT and ISC and Public Domain
+Group:          System Environment/Libraries
+Source0:        https://github.com/JuliaLang/openlibm/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
+URL:            https://github.com/JuliaLang/openlibm/
+# openlibm does not currently build properly on non-x86 architectures
+# https://github.com/JuliaLang/openlibm/issues/18
+ExclusiveArch:  %{ix86} x86_64
+
+%description
+OpenLIBM is an effort to have a high quality standalone LIBM library.
+It is meant to be used standalone in applications and programming language
+implementations. The OpenLIBM code derives from the FreeBSD msun implementation,
+which in turn derives from FDLIBM 5.3. As a result, it has a number of fixes
+and updates that have accumulated over the years in msun, and also optimized
+assembly versions of many functions.
+
+%package devel
+Summary:    High quality system independent, open source libm
+Group:      Development/Libraries
+Requires:   %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+Contains header files for developing applications that use the %{name}
+library.
+
+%package static
+Summary:    High quality system independent, open source libm
+Group:      Development/Libraries
+Requires:   %{name}-devel%{?_isa} = %{version}-%{release}
+
+%description static
+Static %{name} library.
+
+%prep
+%setup -q %{name}-%{version}
+
+# File under the Apple Public Source License Version 1.1
+rm -f deps/openlibm/test/ieeetestnew.c
+# File under the Apple Public Source License Version 2.0
+rm -f deps/openlibm/i387/osx_asm.h
+
+%build
+# openlibm uses the arch name to choose which directory to build
+# and the name is "arm"
+%ifarch arm7hl
+%global arch arm
+%else
+%global arch %{_arch}
+%endif
+
+make %{?_smp_mflags} \
+      FFLAGS="%{optflags}" \
+      CFLAGS="%{optflags}" \
+      ARCH=%{arch}
+
+# %%check
+# cd test/
+# This test sometimes currently fails due to a very small difference:
+# https://github.com/JuliaLang/openlibm/issues/53
+#./test-float
+# This test fails on i686:
+# https://github.com/JuliaLang/openlibm/issues/55
+#./test-double
+
+%install
+make install prefix=%{_prefix} \
+             libdir=%{_libdir} \
+             includedir=%{_includedir} \
+             DESTDIR=%{buildroot}
+
+%if ! %{with static_libs}
+rm %{buildroot}/%{_libdir}/libopenlibm.a
+%endif
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%doc LICENSE.md README.md
+%{_libdir}/libopenlibm.so.0*
+
+%files devel
+%{_libdir}/libopenlibm.so
+%{_includedir}/openlibm.h
+%{_includedir}/openlibm/
+
+%if %{with static_libs}
+%files static
+%{_libdir}/libopenlibm.a
+%endif
+
+%changelog
+* Sun May 4 2014 Milan Bouchet-Valat <nalimilan@club.fr> - 0.3-6
+- Disable tests for now.
+
+* Thu May 1 2014 Milan Bouchet-Valat <nalimilan@club.fr> - 0.3-5
+- Add tests.
+
+* Tue Apr 29 2014 Milan Bouchet-Valat <nalimilan@club.fr> - 0.3-4
+- Add ISC to list of licenses.
+- Add bug reference about the failing tests.
+
+* Mon Apr 21 2014 Milan Bouchet-Valat <nalimilan@club.fr> - 0.3-3
+- Use Group System Environment/Libraries for base package.
+
+* Sun Apr 20 2014 Milan Bouchet-Valat <nalimilan@club.fr> - 0.3-2
+- Put libopenlibm.so.0 in base package instead of in -devel.
+
+* Sat Apr 19 2014 Milan Bouchet-Valat <nalimilan@club.fr> - 0.3-1
+- Initial version.

                 reply	other threads:[~2026-11-05 10:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179387419099.1.418447249210943775.rpms-openlibm-188fde0fa323@fedoraproject.org \
    --to=nalimilan@club.fr \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox