diff options
-rw-r--r-- | factor/INSTALL.md | 1 | ||||
-rw-r--r-- | factor/README.md | 3 | ||||
-rw-r--r-- | factor/msieve/msieve.spec | 43 | ||||
-rw-r--r-- | factor/yafu/yafu.spec | 50 |
4 files changed, 97 insertions, 0 deletions
diff --git a/factor/INSTALL.md b/factor/INSTALL.md new file mode 100644 index 0000000..da9b84f --- /dev/null +++ b/factor/INSTALL.md @@ -0,0 +1 @@ +`yum install yafu` diff --git a/factor/README.md b/factor/README.md new file mode 100644 index 0000000..c82e76a --- /dev/null +++ b/factor/README.md @@ -0,0 +1,3 @@ +Tools and libraries to factor large integers. + + * [yafu](http://sourceforge.net/projects/yafu/): Automated integer factorization diff --git a/factor/msieve/msieve.spec b/factor/msieve/msieve.spec new file mode 100644 index 0000000..6539334 --- /dev/null +++ b/factor/msieve/msieve.spec @@ -0,0 +1,43 @@ +Name: msieve +Version: 1.52 +Release: 1%{?dist} +Summary: Msieve is a C library to factor large integers. + +Group: Applications/Engineering +License: Public Domain +URL: http://sourceforge.net/projects/msieve +Source0: http://downloads.sourceforge.net/project/msieve/msieve/Msieve v1.52/msieve152.tar.gz + +BuildRequires: gmp-ecm-devel, zlib-devel +Requires: zlib-devel + +%description +Msieve is a C library implementing a suite of algorithms to factor large +integers. It contains an implementation of the SIQS and GNFS algorithms; the +latter has helped complete some of the largest public factorizations known. + +%prep +%setup -qn %{name}-%{version} + + +%build +make %{?_smp_mflags} all ECM=1 + + +%install +mkdir -p %{buildroot}%{_bindir} +mkdir -p %{buildroot}%{_libdir} +install -m 755 msieve %{buildroot}%{_bindir} +install -m 644 libmsieve.a %{buildroot}%{_libdir} + + +%files +%{_bindir}/msieve +%{_libdir}/libmsieve.a +%doc Changes Readme Readme.nfs Readme.qs + + + +%changelog +* Thu Dec 25 2014 Ting-Wei Lan <lantw44@gmail.com> - 1.52-1 +- Initial packaging diff --git a/factor/yafu/yafu.spec b/factor/yafu/yafu.spec new file mode 100644 index 0000000..14a8856 --- /dev/null +++ b/factor/yafu/yafu.spec @@ -0,0 +1,50 @@ +Name: yafu +Version: 1.34 +Release: 1%{?dist} +Summary: Automated integer factorization + +Group: Applications/Engineering +License: Public Domain +URL: http://sourceforge.net/projects/yafu +Source0: http://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 +%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 Dec 25 2014 Ting-Wei Lan <lantw44@gmail.com> - 1.34-1 +- Initial packaging |