cln/cln.spec

83 lines
1.9 KiB
RPMSpec
Raw Normal View History

2022-09-07 20:34:29 +08:00
Name: cln
2022-11-14 17:07:41 +00:00
Version: 1.3.6
2023-05-08 16:43:20 +08:00
Release: 2
2022-09-07 20:34:29 +08:00
Summary: Class Library for Numbers
2022-11-14 17:07:41 +00:00
License: GPL-2.0-or-later
URL: https://www.ginac.de/CLN/
Source0: https://www.ginac.de/CLN/%{name}-%{version}.tar.bz2
2022-09-07 20:34:29 +08:00
BuildRequires: gcc-c++
BuildRequires: gmp-devel
BuildRequires: texi2html
BuildRequires: texinfo-tex
2023-05-08 16:43:20 +08:00
BuildRequires: make
2022-09-07 20:34:29 +08:00
%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
2022-11-14 17:07:41 +00:00
2022-09-07 20:34:29 +08:00
%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
2023-05-08 16:43:20 +08:00
* Mon May 08 2023 misaka00251 <liuxin@iscas.ac.cn> - 1.3.6-2
- Remove patch, it's merged upstream
2022-11-14 17:07:41 +00:00
* Tue Nov 15 2022 hkgy <kaguyahatu@outlook.com> - 1.3.6-1
- Upgrade to v1.3.6
2023-05-08 16:43:20 +08:00
* Fri Jul 15 2022 misaka00251 <liuxin@iscas.ac.cn> - 1.3.4-1
2022-09-07 20:34:29 +08:00
- Init package