Simplify %{_libdir}/znc/ file list
Manually maintaining the module list is tedious and error-prone. Include all files under %{_libdir}/znc by default. Use %exclude to filter out the modperl, modpython, and modtcl files.
This commit is contained in:
parent
7e502cc8e6
commit
d939722801
73
znc.spec
73
znc.spec
|
@ -170,64 +170,21 @@ getent passwd znc >/dev/null || \
|
|||
%doc LICENSE README.md
|
||||
%{_bindir}/znc
|
||||
%{_mandir}/man1/*
|
||||
%dir %{_libdir}/znc
|
||||
%{_libdir}/znc/admindebug.so
|
||||
%{_libdir}/znc/adminlog.so
|
||||
%{_libdir}/znc/alias.so
|
||||
%{_libdir}/znc/autoattach.so
|
||||
%{_libdir}/znc/autocycle.so
|
||||
%{_libdir}/znc/autoop.so
|
||||
%{_libdir}/znc/autoreply.so
|
||||
%{_libdir}/znc/autovoice.so
|
||||
%{_libdir}/znc/awaynick.so
|
||||
%{_libdir}/znc/awaystore.so
|
||||
%{_libdir}/znc/block_motd.so
|
||||
%{_libdir}/znc/blockuser.so
|
||||
%{_libdir}/znc/bouncedcc.so
|
||||
%{_libdir}/znc/buffextras.so
|
||||
%{_libdir}/znc/cert.so
|
||||
%{_libdir}/znc/certauth.so
|
||||
%{_libdir}/znc/chansaver.so
|
||||
%{_libdir}/znc/clearbufferonmsg.so
|
||||
%{_libdir}/znc/clientnotify.so
|
||||
%{_libdir}/znc/controlpanel.so
|
||||
%{_libdir}/znc/crypt.so
|
||||
%{_libdir}/znc/ctcpflood.so
|
||||
%{_libdir}/znc/cyrusauth.so
|
||||
%{_libdir}/znc/dcc.so
|
||||
%{_libdir}/znc/disconkick.so
|
||||
%{_libdir}/znc/fail2ban.so
|
||||
%{_libdir}/znc/flooddetach.so
|
||||
%{_libdir}/znc/identfile.so
|
||||
%{_libdir}/znc/imapauth.so
|
||||
%{_libdir}/znc/keepnick.so
|
||||
%{_libdir}/znc/kickrejoin.so
|
||||
%{_libdir}/znc/lastseen.so
|
||||
%{_libdir}/znc/listsockets.so
|
||||
%{_libdir}/znc/log.so
|
||||
%{_libdir}/znc/missingmotd.so
|
||||
%{_libdir}/znc/modules_online.so
|
||||
%{_libdir}/znc/nickserv.so
|
||||
%{_libdir}/znc/notes.so
|
||||
%{_libdir}/znc/notify_connect.so
|
||||
%{_libdir}/znc/partyline.so
|
||||
%{_libdir}/znc/perform.so
|
||||
%{_libdir}/znc/q.so
|
||||
%{_libdir}/znc/raw.so
|
||||
%{_libdir}/znc/route_replies.so
|
||||
%{_libdir}/znc/sample.so
|
||||
%{_libdir}/znc/samplewebapi.so
|
||||
%{_libdir}/znc/sasl.so
|
||||
%{_libdir}/znc/savebuff.so
|
||||
%{_libdir}/znc/schat.so
|
||||
%{_libdir}/znc/send_raw.so
|
||||
%{_libdir}/znc/shell.so
|
||||
%{_libdir}/znc/simple_away.so
|
||||
%{_libdir}/znc/stickychan.so
|
||||
%{_libdir}/znc/stripcontrols.so
|
||||
%{_libdir}/znc/watch.so
|
||||
%{_libdir}/znc/webadmin.so
|
||||
%{_libdir}/znc
|
||||
# exclude modperl, modpython, and modtcl files
|
||||
%exclude %{_libdir}/znc/modperl/
|
||||
%exclude %{_libdir}/znc/modperl.so
|
||||
%exclude %{_libdir}/znc/perleval.pm
|
||||
%if 0%{?with_modpython}
|
||||
%exclude %{_libdir}/znc/__pycache__/
|
||||
%exclude %{_libdir}/znc/modpython/
|
||||
%exclude %{_libdir}/znc/modpython.so
|
||||
%exclude %{_libdir}/znc/pyeval.py
|
||||
%endif # 0%{?with_modpython}
|
||||
%exclude %{_libdir}/znc/modtcl.so
|
||||
%{_datadir}/znc/
|
||||
# exclude modtcl files
|
||||
%exclude %{_datadir}/znc/modtcl/
|
||||
%{_unitdir}/znc.service
|
||||
%attr(-,znc,znc) %{_sharedstatedir}/znc/
|
||||
|
||||
|
@ -238,6 +195,7 @@ getent passwd znc >/dev/null || \
|
|||
|
||||
%files modtcl
|
||||
%{_libdir}/znc/modtcl.so
|
||||
%{_datadir}/znc/modtcl/
|
||||
|
||||
%if 0%{?with_modperl}
|
||||
%files modperl
|
||||
|
@ -262,6 +220,7 @@ getent passwd znc >/dev/null || \
|
|||
- Use %%autosetup, %%make_build, and %%make_install macros
|
||||
- Use https for URL and SOURCE tags
|
||||
- Check upstream GPG signature in %%prep
|
||||
- Simplify %%{_libdir}/znc/ file list
|
||||
|
||||
* Mon Jul 23 2018 Nick Bebout <nb@fedoraproject.org> - 1.7.1-2
|
||||
- Add gcc-c++ and redhat-rpm-config to znc-devel's dependencies
|
||||
|
|
Loading…
Reference in New Issue