From 9cc051bd455ee3baac47ac6e3b3b9dd4b82272d1 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Sun, 22 Dec 2024 23:14:05 +0300 Subject: [PATCH] import zxcvbn-c-2.5-3.el10 --- .gitignore | 1 + .zxcvbn-c.metadata | 1 + SOURCES/README.md | 3 ++ SPECS/zxcvbn-c.spec | 93 +++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 98 insertions(+) create mode 100644 .gitignore create mode 100644 .zxcvbn-c.metadata create mode 100644 SOURCES/README.md create mode 100644 SPECS/zxcvbn-c.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..47ab438 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/zxcvbn-c-2.5.tar.gz diff --git a/.zxcvbn-c.metadata b/.zxcvbn-c.metadata new file mode 100644 index 0000000..998ee3e --- /dev/null +++ b/.zxcvbn-c.metadata @@ -0,0 +1 @@ +f6f234ba5cbc448081ff10e7ed89a7afb42c4853 SOURCES/zxcvbn-c-2.5.tar.gz diff --git a/SOURCES/README.md b/SOURCES/README.md new file mode 100644 index 0000000..9799601 --- /dev/null +++ b/SOURCES/README.md @@ -0,0 +1,3 @@ +# zxcvbn-c + +The zxcvbn-c package diff --git a/SPECS/zxcvbn-c.spec b/SPECS/zxcvbn-c.spec new file mode 100644 index 0000000..f0e8a2c --- /dev/null +++ b/SPECS/zxcvbn-c.spec @@ -0,0 +1,93 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.6.5) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 3; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +%global forgeurl https://github.com/tsyrogit/zxcvbn-c +Version: 2.5 +%forgemeta + +Name: zxcvbn-c +Release: %autorelease +Summary: C/C++ version of the zxcvbn password strength estimator +License: MIT +URL: %{forgeurl} +Source0: %{forgesource} + +# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval +ExcludeArch: %{ix86} + +BuildRequires: gcc-c++ + + +%description +This is a C/C++ implementation of the zxcvbn password strength estimation. +The code is intended to be included as part of the source of a C/C++ program. + + +%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} + + +%prep +%forgesetup + + +%build +%make_build + + +%install +# Make install is currently broken +#%%make_install + +%{__mkdir_p} %{buildroot}%{_libdir} +%{__mkdir_p} %{buildroot}%{_bindir} +%{__mkdir_p} %{buildroot}{%{_includedir},%{_datadir}}/zxcvbn +install -p -m 0644 *.h %{buildroot}%{_includedir}/zxcvbn +cp -a libzxcvbn.so* %{buildroot}%{_libdir} +install -p -m 0755 dictgen %{buildroot}%{_bindir} +install -p -m 0644 zxcvbn.dict %{buildroot}%{_datadir}/zxcvbn + + +%check +make test + + +%files +%doc README.md +%license LICENSE.txt +%{_bindir}/dictgen +%{_libdir}/libzxcvbn.so.0* +%{_datadir}/zxcvbn + + +%files devel +%{_includedir}/zxcvbn +%{_libdir}/libzxcvbn.so + + +%changelog +* Sun Dec 22 2024 MSVSphere Packaging Team - 2.5-3 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Sat Jul 20 2024 Fedora Release Engineering - 2.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sat Jan 27 2024 Fedora Release Engineering - 2.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Dec 15 2023 Mattia Verga - 2.5-1 +- Initial release (fedora#2253977) +## END: Generated by rpmautospec