parent
b9587ed48c
commit
e4c30b1143
@ -0,0 +1 @@
|
|||||||
|
/zxcvbn-c-2.5.tar.gz
|
@ -0,0 +1 @@
|
|||||||
|
SHA512 (zxcvbn-c-2.5.tar.gz) = d7199b3cc36cd0e401bd8f857132425908307aefcdb1bb635ee81c34cf71ccbcdf0fe36a336a55da1281692b508881b54773afa41379a448863095f4abd5c0e8
|
@ -0,0 +1,71 @@
|
|||||||
|
%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
|
||||||
|
%autochangelog
|
Loading…
Reference in new issue