aboutsummaryrefslogtreecommitdiffstats
path: root/factor/yafu/yafu.spec
blob: dbcbc7b189b22a2af047beeeb7606feadb2d08c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
Name:       yafu
Version:    1.34
Release:    5%{?dist}
Summary:    Automated integer factorization

Group:      Applications/Engineering
License:    Public Domain
URL:        https://sourceforge.net/projects/yafu
Source0:    https://downloads.sourceforge.net/project/yafu/%{version}/%{name}-%{version}-src.zip

BuildRequires: msieve, gmp-ecm-devel

%description
YAFU (with assistance from other free software) uses the most powerful modern
algorithms (and implementations of them) to factor input integers in a
completely automated way. The automation within YAFU is state-of-the-art,
combining factorization algorithms in an intelligent and adaptive methodology
that minimizes the time to find the factors of arbitrary input integers.
Most algorithm implementations are multi-threaded, allowing YAFU to fully
utilize multi- or many-core processors (including SNFS, GNFS, SIQS, and ECM).


%prep
%setup -qn %{name}-%{version}.3


%build
sed -i 's|-lmsieve|-lmsieve -lz|' Makefile

%ifarch x86_64
make %{?_smp_mflags} x86_64 NFS=1 USE_SSE41=1 CC="gcc %{optflags} %{__global_ldflags}"
%else
false
%endif


%install
mkdir -p %{buildroot}%{_bindir}
install -m 755 yafu %{buildroot}%{_bindir}


%files
%{_bindir}/yafu
%doc CHANGES docfile.txt README yafu.ini



%changelog
* Thu Mar 03 2016 Ting-Wei Lan <lantw44@gmail.com> - 1.34-5
- Rebuilt for Fedora 24 and 25

* Fri Nov 20 2015 Ting-Wei Lan <lantw44@gmail.com> - 1.34-4
- Rebuilt for hardening flags

* Tue Jul 28 2015 Ting-Wei Lan <lantw44@gmail.com> - 1.34-3
- Rebuilt for Fedora 23 and 24

* Fri Mar 20 2015 Ting-Wei Lan <lantw44@gmail.com> - 1.34-2
- Rebuilt for Fedora 22 and 23
- Use HTTPS to download the source

* Thu Dec 25 2014 Ting-Wei Lan <lantw44@gmail.com> - 1.34-1
- Initial packaging