kind: autotools
depends:
- bluetooth.bst
- icu-common.bst
- input-common.bst
- data-indexing-management.bst
- vala-common.bst
- geolocation.bst
- gtk2.bst
- gtk3.bst
- libsoup-common.bst
- NetworkManager-common.bst
- multimedia-gstreamer.bst
- network-security.bst
- privileges-management.bst
- python3-gobject.bst
- wayland-generic.bst
- ruby.bst
- samba.bst
- secret-service.bst
- sound-server-pulseaudio.bst
- spell-checking.bst
- cups.bst
sources:
- kind: git
  url: upstream:cracklib
  track: cracklib-2.9.6
  ref: 1dd5ca2114c0dd478b17e68e38d2c9f7094552cc
config:
  configure-commands:
  - cd src && autopoint -f && cd m4 && echo EXTRA_DIST = *.m4 > Makefile.am && cd
    .. && autoreconf -f -i
  - cd src && ./configure --prefix="%{prefix}" --sysconfdir=/etc --with-default-dict=/lib/cracklib/pw_dict
  build-commands:
  - make -C src
  - make -C words cracklib-words.gz
  install-commands:
  - make -j1 -C src DESTDIR="%{install-root}" install
  - install -m644 -D words/cracklib-words.gz %{install-root}%{prefix}/share/dict/cracklib-words.gz
  - install -v -m755 -d %{install-root}/lib/cracklib
public:
  bst:
    integration-commands:
    - create-cracklib-dict /usr/share/dict/cracklib-words.gz
