diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2022-04-10 13:38:24 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2022-04-10 13:38:24 -0700 |
commit | 4e53bd43b19b08adb4148b5b2293ba2fd8c7e72a (patch) | |
tree | 5a4fb41cf47b2183e9974a3b5f589c6b65d7ce3e /rpm/libzxcvbn.spec | |
parent | b34d774dc6543b90048e947ca25b3abbde179a90 (diff) | |
parent | ae6944468217b433a062bb493888d7e993bea96a (diff) | |
download | zxcvbn-c-4e53bd43b19b08adb4148b5b2293ba2fd8c7e72a.tar.gz |
Update to upstream 2.5+dfsg
[git-debrebase anchor: new upstream 2.5+dfsg, merge]
Diffstat (limited to 'rpm/libzxcvbn.spec')
-rw-r--r-- | rpm/libzxcvbn.spec | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/rpm/libzxcvbn.spec b/rpm/libzxcvbn.spec new file mode 100644 index 0000000..7985c91 --- /dev/null +++ b/rpm/libzxcvbn.spec @@ -0,0 +1,65 @@ +Summary: A library for password entropy checking +Name: libzxcvbn +Version: 2.4 +Release: 3%{?dist} +License: MIT +Source0: https://github.com/tsyrogit/zxcvbn-c/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +Patch1: libzxcvbn-2.4-makefile-install.patch + +# For some reason adding the libzxcvbn.so in the Makefile messes up the provides +%define ldversion 0 +Provides: libzxcvbn.so.%{ldversion}()(%{__isa_bits}bit) + +%global reponame zxcvbn-c + +%description +This is a library for password entropy checks based on common names, words and +patterns in US English. + +%package devel +Group: Development/Libraries +Summary: Support for development of applications using the libzxcvbn library +Requires: libzxcvbn%{?_isa} = %{version}-%{release} +Requires: pkgconfig + +%description devel +Files needed for development of applications using the libzxcvbn library. + +%prep +%setup -q -n %{reponame}-%{version} +%patch1 -p1 -b .makefile-install + +%build +make %{?_smp_mflags} package + +%install +make install DESTDIR=$RPM_BUILD_ROOT LIBDIR=%{_libdir} INSTALL='install -p' + +%check +make test + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%doc README.md LICENSE.txt +%{_bindir}/zxcvbn-dictgen +%{_libdir}/libzxcvbn.so* +%{_datarootdir}/zxcvbn/zxcvbn.dict + +%files devel +%defattr(-,root,root,-) +%{_includedir}/zxcvbn/*.h +%{_libdir}/libzxcvbn.a + +%changelog +* Sun Oct 6 2019 Erik Ogan <erik@stealthymonkeys.com> 2.4-3 +- Add make test to %check + +* Sat Sep 28 2019 Erik Ogan <erik@stealthymonkeys.com> 2.4-2 +- Add libzxcvbn.so link so ld can find the library + +* Sat Sep 21 2019 Erik Ogan <erik@stealthymonkeys.com> 2.4-1 +- Initial Spec |