e9d34b8
Name:           antic
83f858a
Version:        0.2.4
83f858a
Release:        1%{?dist}
e9d34b8
Summary:        Algebraic Number Theory In C
e9d34b8
e9d34b8
License:        LGPLv2+
e9d34b8
URL:            https://github.com/wbhart/%{name}
83f858a
Source0:        %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
e9d34b8
e9d34b8
BuildRequires:  flint-devel
e9d34b8
BuildRequires:  gmp-devel
e9d34b8
BuildRequires:  gcc
fb9a02a
BuildRequires:  make
e9d34b8
BuildRequires:  pkgconfig(mpfr)
e9d34b8
e9d34b8
%description
e9d34b8
Antic is an algebraic number theory library written in C.
e9d34b8
e9d34b8
%package        devel
e9d34b8
Summary:        Development files for antic
e9d34b8
Requires:       %{name}%{?_isa} = %{version}-%{release}
e9d34b8
Requires:       flint-devel%{?_isa}
e9d34b8
Requires:       gmp-devel%{?_isa}
e9d34b8
e9d34b8
%description    devel
e9d34b8
The %{name}-devel package contains libraries and header files for
e9d34b8
developing applications that use %{name}.
e9d34b8
e9d34b8
%prep
e9d34b8
%autosetup
e9d34b8
e9d34b8
# Kill rpath
e9d34b8
sed -i '/rpath/d' configure
e9d34b8
e9d34b8
# Fix end-of-line encodings
e9d34b8
sed -i.orig 's/\r//' NEWS
e9d34b8
touch -r NEWS.orig NEWS
e9d34b8
rm NEWS.orig
e9d34b8
e9d34b8
%build
e9d34b8
# This is NOT an autoconf-generated configure script.  Do NOT use %%configure.
e9d34b8
./configure --prefix=%{_prefix} --disable-static CFLAGS="%{optflags}"
e9d34b8
%make_build verbose LDFLAGS="$RPM_LD_FLAGS"
e9d34b8
e9d34b8
%install
e9d34b8
%make_install LIBDIR=%{_lib}
e9d34b8
e9d34b8
%check
e9d34b8
make check
e9d34b8
e9d34b8
%files
e9d34b8
%doc AUTHORS NEWS README
cf7fd17
%license LICENSE
e9d34b8
%{_libdir}/libantic.so.0*
e9d34b8
e9d34b8
%files          devel
e9d34b8
%{_includedir}/%{name}/
e9d34b8
%{_libdir}/libantic.so
e9d34b8
e9d34b8
%changelog
83f858a
* Mon Jul  5 2021 Jerry James <loganjerry@gmail.com> - 0.2.4-1
83f858a
- Version 0.2.4
83f858a
a3b2bcc
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2-2
a3b2bcc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
a3b2bcc
cf7fd17
* Mon Aug  3 2020 Jerry James <loganjerry@gmail.com> - 0.2.2-1
cf7fd17
- Version 0.2.2
cf7fd17
e9d34b8
* Thu Jul 30 2020 Jerry James <loganjerry@gmail.com> - 0.2.1-1
e9d34b8
- Initial RPM