From bdb7a1d85570db9d2cc6ffa35dc01cfadd537049 Mon Sep 17 00:00:00 2001 From: Toshaan Bharvani Date: Thu, 21 Dec 2023 00:36:11 +0100 Subject: [PATCH] initial package creation Signed-off-by: Toshaan Bharvani --- SOURCES/.gitkeeper | 0 SPECS/libtomcrypt.spec | 224 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 224 insertions(+) create mode 100644 SOURCES/.gitkeeper create mode 100644 SPECS/libtomcrypt.spec diff --git a/SOURCES/.gitkeeper b/SOURCES/.gitkeeper new file mode 100644 index 0000000..e69de29 diff --git a/SPECS/libtomcrypt.spec b/SPECS/libtomcrypt.spec new file mode 100644 index 0000000..9cb6d01 --- /dev/null +++ b/SPECS/libtomcrypt.spec @@ -0,0 +1,224 @@ +%if 0%{?fedora} +%global _with_docs 1 +%endif + +Name: libtomcrypt +Version: 1.18.2 +Release: 12%{?dist} +Summary: A comprehensive, portable cryptographic toolkit +License: Public Domain or WTFPL +URL: http://www.libtom.net/ + +Source0: https://github.com/libtom/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz + +BuildRequires: libtommath-devel >= 1.0 +BuildRequires: libtool + +%{?_with_docs: +BuildRequires: ghostscript +BuildRequires: texlive-latex-bin-bin +BuildRequires: texlive-makeindex-bin +BuildRequires: texlive-mfware-bin +BuildRequires: tex(alltt.sty) +BuildRequires: tex(amssymb.sty) +BuildRequires: tex(cmr10.tfm) +BuildRequires: tex(color.sty) +BuildRequires: tex(fancyhdr.sty) +BuildRequires: tex(float.sty) +BuildRequires: tex(geometry.sty) +BuildRequires: tex(graphicx.sty) +BuildRequires: tex(hyperref.sty) +BuildRequires: tex(hyphen.tex) +BuildRequires: tex(layout.sty) +BuildRequires: tex(makeidx.sty) +BuildRequires: tex(mf.mf) +BuildRequires: tex(tcti1000.tfm) +BuildRequires: make +} + +%description +A comprehensive, modular and portable cryptographic toolkit that provides +developers with a vast array of well known published block ciphers, one-way hash +functions, chaining modes, pseudo-random number generators, public key +cryptography and a plethora of other routines. + +Designed from the ground up to be very simple to use. It has a modular and +standard API that allows new ciphers, hashes and PRNGs to be added or removed +without change to the overall end application. It features easy to use functions +and a complete user manual which has many source snippet examples. + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + +%{?_with_docs: +%package doc +Summary: Documentation files for %{name} +BuildArch: noarch +Provides: %{name}-doc = %{version}-%{release} +Obsoletes: %{name}-doc < 1.17-19 + +%description doc +The %{name}-doc package contains documentation for use with %{name}. +} + +%prep +%setup -q + +%build +%set_build_flags +export PREFIX="%{_prefix}" +export INCPATH="%{_includedir}" +export LIBPATH="%{_libdir}" +export EXTRALIBS="-ltommath" +export CFLAGS="%{build_cflags} -DLTM_DESC -DUSE_LTM" +%make_build V=1 -f makefile.shared library +%make_build V=1 -f makefile.shared test +%{?_with_docs: +%make_build V=1 -f makefile docs +} + +%check +./test + +%install +%make_install INSTALL_OPTS="-m 755" INCPATH="%{_includedir}" LIBPATH="%{_libdir}" -f makefile.shared + +# Remove unneeded files +find %{buildroot} -name '*.la' -delete +find %{buildroot} -name '*.a' -delete + +# Fix pkgconfig path +sed -i \ + -e 's|^prefix=.*|prefix=%{_prefix}|g' \ + -e 's|^libdir=.*|libdir=${prefix}/%{_lib}|g' \ + %{buildroot}%{_libdir}/pkgconfig/%{name}.pc + +%ldconfig_scriptlets + +%files +%license LICENSE +%{_libdir}/*.so.* + +%files devel +%{_includedir}/*.h +%{_libdir}/*.so +%{_libdir}/pkgconfig/*.pc + +%{?_with_docs: +%files doc +%doc doc/crypt.pdf +} + +%changelog +* Tue Mar 30 2021 Petr Pisar - 1.18.2-12 +- Build-require more TeX packages (bug #1943028) + +* Tue Jan 26 2021 Fedora Release Engineering - 1.18.2-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Thu Aug 13 2020 Gerd Pokorra - 1.18.2-10 +- Add missing dependency tex(tcti1000.tfm), bug-id 1863674 + +* Sat Aug 01 2020 Fedora Release Engineering - 1.18.2-9 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 1.18.2-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sat Apr 11 2020 Gerd Pokorra - 1.18.2-7 +- Rebuilt with libtommath 1.2.0 + +* Wed Jan 29 2020 Fedora Release Engineering - 1.18.2-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Wed Oct 16 2019 Simone Caronni - 1.18.2-5 +- Do not build documentation on RHEL/CentOS. + +* Thu Jul 25 2019 Fedora Release Engineering - 1.18.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri Feb 01 2019 Fedora Release Engineering - 1.18.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 1.18.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Sun Jul 08 2018 Simone Caronni - 1.18.2-1 +- Udpate to 1.18.2. + +* Wed Apr 18 2018 Simone Caronni - 1.18.1-5 +- Update build requirement for texlive rebase. + +* Mon Apr 09 2018 Rafael Santos - 1.18.1-4 +- Fix missing Fedora linker flags (bug #1548709) + +* Wed Feb 07 2018 Fedora Release Engineering - 1.18.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Sat Feb 03 2018 Igor Gnatenko - 1.18.1-2 +- Switch to %%ldconfig_scriptlets + +* Fri Dec 08 2017 Simone Caronni - 1.18.1-1 +- Update to 1.18.1. + +* Mon Oct 23 2017 Simone Caronni - 1.18.0-1 +- Update to final 1.18.0. + +* Sun Sep 17 2017 Simone Caronni - 1.18-2.20170915git0ceb1c1 +- Update to latest snapshot post rc3. +- Remove RHEL 6 support. +- Clean up SPEC file. +- Trim changelog. + +* Mon Sep 11 2017 Simone Caronni - 1.18-1.20170910git32d60ac +- Update to latest snapshot (post rc3). +- Version is now at 1.18. + +* Thu Aug 03 2017 Fedora Release Engineering - 1.17-36.20170720gitab8c5b8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 1.17-35.20170720gitab8c5b8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sun Jul 23 2017 Simone Caronni - 1.17-34.20170720gitab8c5b8 +- Update to latest snapshot from the 1.18 release branch. +- Update license. + +* Sun Jun 25 2017 Simone Caronni - 1.17-33.20170623gitcd6e602 +- Update to latest snapshot. +- Update URL (#1463608, #1463547) + +* Thu Jun 15 2017 Simone Caronni - 1.17-32.20170614git2cd69fb +- Update to latest snapshot, adjust build. +- Temporarily disable tests. + +* Mon Mar 27 2017 Simone Caronni - 1.17-31.20170327git7532b89 +- Update to latest snapshot. +- Use correct format for snapshots as per packaging guidelines. +- Use default compiler flags. + +* Fri Feb 10 2017 Fedora Release Engineering - 1.17-30 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Wed Mar 09 2016 Than Ngo - 1.17-29 +- fix endian issues on s390x/ppc64 + +* Tue Feb 23 2016 Simone Caronni - 1.17-28 +- Fix shared object name: + https://github.com/libtom/libtomcrypt/commit/14272976d0615b546e9e0215ec4e2f01854a2dc9 + +* Tue Feb 23 2016 Simone Caronni - 1.17-27 +- Fix FTBFS (#1307740). +- Update sources, requires libtommath 1.x, drop upstreamed patches. +- Update URL. +- Use license macro. +- Clean up SPEC file. + +* Thu Feb 04 2016 Fedora Release Engineering - 1.17-26 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild