Initial checkin.
This commit is contained in:
parent
2f4973ddca
commit
e9d34b88bd
3 changed files with 64 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
/antic-*.tar.gz
|
||||
62
antic.spec
Normal file
62
antic.spec
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
Name: antic
|
||||
Version: 0.2.1
|
||||
Release: 1%{?dist}
|
||||
Summary: Algebraic Number Theory In C
|
||||
|
||||
# See https://github.com/wbhart/antic/issues/43
|
||||
License: LGPLv2+
|
||||
URL: https://github.com/wbhart/%{name}
|
||||
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: flint-devel
|
||||
BuildRequires: gmp-devel
|
||||
BuildRequires: gcc
|
||||
BuildRequires: pkgconfig(mpfr)
|
||||
|
||||
%description
|
||||
Antic is an algebraic number theory library written in C.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for antic
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
Requires: flint-devel%{?_isa}
|
||||
Requires: gmp-devel%{?_isa}
|
||||
|
||||
%description devel
|
||||
The %{name}-devel package contains libraries and header files for
|
||||
developing applications that use %{name}.
|
||||
|
||||
%prep
|
||||
%autosetup
|
||||
|
||||
# Kill rpath
|
||||
sed -i '/rpath/d' configure
|
||||
|
||||
# Fix end-of-line encodings
|
||||
sed -i.orig 's/\r//' NEWS
|
||||
touch -r NEWS.orig NEWS
|
||||
rm NEWS.orig
|
||||
|
||||
%build
|
||||
# This is NOT an autoconf-generated configure script. Do NOT use %%configure.
|
||||
./configure --prefix=%{_prefix} --disable-static CFLAGS="%{optflags}"
|
||||
%make_build verbose LDFLAGS="$RPM_LD_FLAGS"
|
||||
|
||||
%install
|
||||
%make_install LIBDIR=%{_lib}
|
||||
|
||||
%check
|
||||
make check
|
||||
|
||||
%files
|
||||
%doc AUTHORS NEWS README
|
||||
%license gpl-2.0.txt
|
||||
%{_libdir}/libantic.so.0*
|
||||
|
||||
%files devel
|
||||
%{_includedir}/%{name}/
|
||||
%{_libdir}/libantic.so
|
||||
|
||||
%changelog
|
||||
* Thu Jul 30 2020 Jerry James <loganjerry@gmail.com> - 0.2.1-1
|
||||
- Initial RPM
|
||||
1
sources
Normal file
1
sources
Normal file
|
|
@ -0,0 +1 @@
|
|||
SHA512 (antic-0.2.1.tar.gz) = 4f589dca98f614a24e740d9aaebd6bc2bfb8c33b8fb355cdb7f014abdf1699239dc5d956de2cafff6561b4ceadd823df477a841bb54f1dc5803726e3ce02e58d
|
||||
Reference in a new issue