cln/cln.spec
2022-09-07 20:34:29 +08:00

80 lines
1.8 KiB
RPMSpec

Name: cln
Version: 1.3.4
Release: 1
Summary: Class Library for Numbers
License: GPLv2+
URL: http://www.ginac.de/CLN/
Source0: http://www.ginac.de/CLN/%{name}-%{version}.tar.bz2
BuildRequires: gcc-c++
BuildRequires: gmp-devel
BuildRequires: texi2html
BuildRequires: perl(Unicode::EastAsianWidth)
BuildRequires: texinfo-tex
BuildRequires: make
# Didn't pickup this
BuildRequires: texlive-ec texlive-cm-super
Patch01: add-riscv-support.patch
%description
A collection of C++ math classes and functions, which are designed for
memory and speed efficiency, and enable type safety and algebraic
syntax.
%package devel
Summary: Development files for programs using the CLN library
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: gmp-devel%{?_isa}
%description devel
A collection of C++ math classes and functions, which are designed for
memory and speed efficiency, and enable type safety and algebraic
syntax.
This package is necessary if you wish to develop software based on
the CLN library.
%ifarch %{arm}
%global XFLAGS %{optflags} -DNO_ASM
%else
%global XFLAGS %{optflags}
%endif
%prep
%setup -q
%ifarch riscv64
%patch1 -p1
%endif
%build
%configure --disable-static CXXFLAGS="%{XFLAGS}" CFLAGS="%{XFLAGS}"
make %{?_smp_mflags}
make pdf
make html
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
rm -f %{buildroot}%{_infodir}/dir
rm -rf %{buildroot}%{_bindir} %{buildroot}%{_mandir}/man1/pi.*
%check
make %{_smp_mflags} check
%ldconfig_scriptlets
%files
%doc COPYING NEWS README TODO
%{_libdir}/*.so.*
%files devel
%{_libdir}/*.so
%{_libdir}/pkgconfig/cln.pc
%{_includedir}/cln/
%{_infodir}/*.info*
%doc doc/cln.pdf doc/cln.html
%changelog
* Fri Jul 15 2022 misaka00251 <misaka00251@misakanet.cn> - 1.3.4-1
- Init package