You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
libtommath/libtommath.spec

62 lines
1.6 KiB

18 years ago
Name: libtommath
5 years ago
Version: 1.2.0
Release: %autorelease
17 years ago
Summary: A portable number theoretic multiple-precision integer library
18 years ago
License: Public Domain
URL: http://www.libtom.net/
Source0: https://github.com/libtom/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch: CVE-2023-36328.patch
4 years ago
BuildRequires: make
BuildRequires: libtool
18 years ago
%description
A free open source portable number theoretic multiple-precision integer library
written entirely in C. (phew!). The library is designed to provide a simple to
work with API that provides fairly efficient routines that build out of the box
without configuration.
18 years ago
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
18 years ago
%description devel
The %{name}-devel package contains libraries and header files for developing
applications that use %{name}.
18 years ago
%prep
%autosetup -p1
8 years ago
# Fix permissions on installed library
sed -i -e 's/644 $(LIBNAME)/755 $(LIBNAME)/g' makefile.shared
# Fix pkgconfig path
9 years ago
sed -i \
8 years ago
-e 's|^prefix=.*|prefix=%{_prefix}|g' \
-e 's|^libdir=.*|libdir=%{_libdir}|g' \
%{name}.pc.in
18 years ago
%build
%set_build_flags
%make_build V=1 CFLAGS="$CFLAGS -I./" -f makefile.shared
18 years ago
%install
%make_install V=1 CFLAGS="$CFLAGS -I./" PREFIX=%{_prefix} LIBPATH=%{_libdir} -f makefile.shared
find %{buildroot} -name '*.la' -delete
find %{buildroot} -name '*.a' -delete
18 years ago
%ldconfig_scriptlets
18 years ago
%files
9 years ago
%license LICENSE
18 years ago
%{_libdir}/*.so.*
%files devel
%{_includedir}/*.h
18 years ago
%{_libdir}/*.so
8 years ago
%{_libdir}/pkgconfig/*.pc
18 years ago
%changelog
%autochangelog