Compare commits

...

42 Commits
f26 ... master

Author SHA1 Message Date
Fedora Release Engineering 19e5b49261 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-27 05:03:54 +00:00
Nick Bebout af91d38583 Merge branch 'master' of ssh://pkgs.fedoraproject.org/rpms/znc 2019-07-05 16:26:48 -05:00
Nick Bebout 623fd0a1ad Update to 1.7.4 to fix CVE-2019-12816 2019-07-05 16:26:03 -05:00
Jitka Plesnikova c5aa0f5e28 Perl 5.30 rebuild 2019-05-30 13:34:27 +02:00
Nick Bebout 8a55901c02 Fix build 2019-04-09 08:31:28 -05:00
Nick Bebout 95f8a308e7 Update to 1.7.3 2019-04-09 08:25:30 -05:00
Nick Bebout 75ee78d08d Update to 1.7.3 2019-03-27 08:47:23 -05:00
Nick Bebout 74fc3f07da Update to 1.7.3-rc1 to fix CVE-2019-9917 2019-03-27 08:37:04 -05:00
Fedora Release Engineering 7c6b28aaa9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-03 13:14:01 +00:00
Jason Tibbitts 0b633c2df2 Update to 1.7.2.
Also add a quick sed call to fix three references to /usr/local/ in the
manpage.
2019-01-29 15:32:05 -06:00
Pete Walter 8d389a3cca Rebuild for ICU 63 2019-01-23 21:49:03 +00:00
Björn Esser 46164dba2d
Add missing source file (GPG signature) 2019-01-04 00:16:26 +01:00
Nick Bebout 11e6e873f5 Merge #1 `RFC - misc packaging cleanups and improvements` 2018-11-16 17:00:20 +00:00
Miro Hrončok 4b3ade3e9a https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_2 2018-11-15 12:53:57 +01:00
Todd Zullinger 7eb901b93c Bump release 2018-08-26 21:11:12 -04:00
Todd Zullinger dcd0ebc78e Add rpmlint config file
Filter several expected warnings and error messages from rpmlint.
2018-08-26 04:24:21 -04:00
Todd Zullinger cfed6841db Move znc-buildmod.1 to znc-devel
The znc-buildmod command is in znc-devel.  The man-page belongs there as
well.
2018-08-26 04:24:21 -04:00
Todd Zullinger c3743a066e Add ChangeLog.md and NOTICE files to %doc
The ChangeLog file was added in 1.6.0 and contains useful information
for users.

The AUTHORS file was removed from %doc in znc-1.7.0-1, because the file
was no longer present in the upstream tarball.  Prior to that, the
AUTHORS file was a symlink to the (unpackaged) NOTICES file from
znc-1.2-0.1.alpha1 through znc-1.6.6.
2018-08-26 04:24:21 -04:00
Todd Zullinger f0d7b66afa Use %license tag for LICENSE file 2018-08-26 04:24:21 -04:00
Todd Zullinger 9048b9f36a Use system-wide crypto policy
Upstream uses reasonable defaults and keeps them updated.  However,
Fedora packages should use the system-wide crypto policy.

Reference: https://fedoraproject.org/wiki/Packaging:CryptoPolicies
2018-08-26 04:24:21 -04:00
Todd Zullinger 878da480e8 Drop obsolete Group tag
The packaging guidelines specify that this tag should not be used.
2018-08-26 04:24:21 -04:00
Todd Zullinger d97d3c4cd4 Capitalize 'Perl' and 'Python' in Summary
This is minor, but rpmlint complains about the summaries for the perl
and python modules otherwise.

Use "%{summary}." for the %description of the mod(perl|python|tcl)
packages.
2018-08-26 04:24:21 -04:00
Todd Zullinger ef6ca56209 Pass --with-tcl to ensure tclConfig.sh is found
On x86_64 the default search path configure uses for tclConfig.sh
does not include /usr/lib64.  The tcl module builds with default
settings, but we can do better by explicitly setting --with-tcl.  This
ensures that TCL_FLAGS is set by tclConfig.sh rather than guessed.
2018-08-26 04:24:21 -04:00
Todd Zullinger 48fada5db5 Enable verbose make
A quiet make might be easier to read but it's useless for debugging
build issues and verifying that the proper compilation options are used.
2018-08-26 04:24:21 -04:00
Todd Zullinger d939722801 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.
2018-08-26 04:24:21 -04:00
Todd Zullinger 7e502cc8e6 Check upstream GPG signature in %prep
Upstream provides signatures for the source tarballs.  Automatically
verify them in %prep.  This is one less manual step for maintainers.

The upstream tarballs are signed by Alexey Sokolov, AKA DarthGandalf.
The key was initially taken from Alexey's profile page at
savannah.gnu.org¹.  The key was then refreshed from the public
keyservers to pick up changes to the expiration date.  Lastly, it was
exported via the following command:

    gpg2 --armor --export-options export-minimal --export \
        D5823CACB477191CAC0075555AE420CC0209989E > gpgkey-5AE420CC0209989E.asc

¹ https://savannah.gnu.org/users/darthgandalf
2018-08-26 04:22:23 -04:00
Todd Zullinger b4e64ed274 Use https for URL and SOURCE tags
While upstream redirects to https these days, avoid sending users to the
non-secure site.  As %url is used for Source0 it's preferable to
download source tarballs via a secure channel.
2018-08-26 04:18:44 -04:00
Todd Zullinger 2e6612f513 Use %autosetup, %make_build, and %make_install macros
Using %autosetup removes the need to manually define %patchN macros.

Using %make_build and %make_install handles %{?_smp_mflags} and DESTDIR.

Also remove cruft related to the znc systemd service file install, left
after a53b3b8 ("cleanup conditionals, use upstream unit file",
2016-10-07).
2018-08-26 04:18:17 -04:00
Todd Zullinger 21befc622d Remove cruft from %prep
The znc.cpp file was moved in znc-1.0 and the pattern used in the perl
replacement changed.  No one seems to have missed the addition of the
%%{release} macro which was intended.  Drop the command and avoid an rpm
build warning.

Similarly, the q.cpp file mode no longer needs to be fixed.
2018-08-26 04:16:24 -04:00
Todd Zullinger a61baffdc8 Clean up ancient Fedora and RHEL conditionals
RHEL-5 reached EOL in March of 2017.  Fedora-24 is similarly EOL.
2018-08-24 20:07:44 -04:00
Todd Zullinger 434c418ed5 Simplify and improve git ignore rules
Using a pattern to match the source tar.gz files prevents fedpkg upload
from needlessly appending each new source file to .gitignore.

Also ignore *.rpm, the results dir from mockbuild, and expanded source
directories.
2018-08-24 20:04:30 -04:00
Nick Bebout 5e81aa65ec Add gcc-c++ and redhat-rpm-config to dependencies of znc-devel 2018-07-23 11:06:25 -05:00
Nick Bebout c9332deeed Merge branch 'master' of ssh://pkgs.fedoraproject.org/rpms/znc 2018-07-23 11:05:41 -05:00
Nick Bebout 16c5bdf70b Add gcc-c++ and redhat-rpm-config to dependencies 2018-07-23 11:05:26 -05:00
Nick Bebout 18f3e665cd Add admindebug.so to files 2018-07-17 19:05:14 -05:00
Nick Bebout 2b698f2c1f Update to 1.7.1 2018-07-17 18:51:09 -05:00
Fedora Release Engineering ec1af11616 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-14 09:52:27 +00:00
Pete Walter 6ce4d60bbb Add missing BuildRequires: gcc-c++ 2018-07-10 23:46:45 +01:00
Pete Walter 04dd6d84b9 Rebuild for ICU 62 2018-07-10 22:06:13 +01:00
Petr Písař 5ac3db7ead Perl 5.28 rebuild 2018-07-03 12:35:56 +02:00
Jitka Plesnikova 35493f64d0 Perl 5.28 rebuild 2018-06-28 03:33:43 +02:00
Miro Hrončok 853357be18 Rebuilt for Python 3.7 2018-06-19 11:31:02 +02:00
6 changed files with 268 additions and 131 deletions

47
.gitignore vendored
View File

@ -1,40 +1,7 @@
/znc-0.096.tar.gz
/znc-0.097.svn2196.tar.bz2
/znc-0.097.svn2197.tar.bz2
/znc-0.097.svn2202.tar.bz2
/znc-0.097.svn2213.tar.bz2
/znc-0.097.svn2214.tar.bz2
/znc-0.097.svn2255.tar.bz2
/znc-0.097.svn2269.tar.bz2
/znc-0.097.svn2272.tar.xz
/znc-0.097.svn2277.tar.xz
/znc-0.097.tar.xz
/znc-0.098-alpha1.tar.gz
/znc-0.098-beta.tar.gz
/znc-0.098-rc1.tar.gz
/znc-0.098.tar.gz
/znc-0.099.tar.xz
/znc-0.2-alpha1.tar.gz
/znc-0.2-beta1.tar.gz
/znc-0.200-rc1.tar.gz
/znc-0.200.tar.gz
/znc-0.202.tar.gz
/znc-0.204.tar.gz
/znc-0.206.tar.gz
/znc-1.0-alpha1.tar.gz
/znc-1.0-beta1.tar.gz
/znc-1.0.tar.gz
/znc-1.2-alpha1.tar.gz
/znc-1.2-beta1.tar.gz
/znc-1.2-rc2.tar.gz
/znc-1.2.tar.gz
/znc-1.4.tar.gz
/znc-1.6.0.tar.gz
/znc-1.6.1.tar.gz
/znc-1.6.2.tar.gz
/znc-1.6.3.tar.gz
/znc-1.6.4-rc2.tar.gz
/znc-1.6.4.tar.gz
/znc-1.6.5.tar.gz
/znc-1.6.6.tar.gz
/znc-1.7.0.tar.gz
/*.rpm
/gpgkey-*.gpg
/results_*/
/znc-*/
/znc-*.tar.gz
/znc-*.tar.gz.sig
/gpgkey-5AE420CC0209989E.asc

View File

@ -0,0 +1,42 @@
From f0f51d75c160baeb212090940ec1dc35af9bd565 Mon Sep 17 00:00:00 2001
From: Todd Zullinger <tmz@pobox.com>
Date: Sun, 26 Aug 2018 01:31:13 -0400
Subject: [PATCH] Use system-wide crypto policy
Reference: https://fedoraproject.org/wiki/Packaging:CryptoPolicies
---
src/Socket.cpp | 17 +++--------------
1 file changed, 3 insertions(+), 14 deletions(-)
diff --git a/src/Socket.cpp b/src/Socket.cpp
index fa510462..e40c76ea 100644
--- a/src/Socket.cpp
+++ b/src/Socket.cpp
@@ -28,21 +28,10 @@
#endif
#ifdef HAVE_LIBSSL
-// Copypasted from
-// https://wiki.mozilla.org/Security/Server_Side_TLS#Intermediate_compatibility_.28default.29
-// at 2018-04-01
+// Use system-wide crypto policy
+// https://fedoraproject.org/wiki/Packaging:CryptoPolicies
static CString ZNC_DefaultCipher() {
- return "ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-"
- "ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-"
- "AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-"
- "SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-"
- "RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:"
- "ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-"
- "SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:"
- "DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:"
- "ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:"
- "AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-"
- "SHA:DES-CBC3-SHA:!DSS";
+ return "PROFILE=SYSTEM";
}
#endif
--
2.19.0.rc0

View File

@ -0,0 +1,89 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBE66oWABEADT/ix/xviuWpwAeySocHnYozbjO4L1lKzaj4OMfAZfP+KvwX8H
jy0Ymf4KwxVkub0R2znLlmYiSjHaelMNwK9EDaY48uodV7EMHBostP6u+tjUJQsZ
tQI3ErUYOv0Qlx3xfZ8UvlCT6AWdvlZQha8oAs3EzaUPrBD5dsnUFE6wq0UsBBoA
5xCh/2eGEqKjtSNTf1ZtSCF1StfRPPX8bqkEMpBsTTak3G6+3yt9GYRAqDwSTkB2
usMroWrDAIG2+mLKqpHtRKz3T/VP4sL7v03w+DDPyQXMajHepAdAwkMweRWQgZBi
n3Qb5tOHPQTzR/3zz80XidyxjwL9hNdrRA5tHoH3uoNCZ1XNZrsK8XnCBDHQJdVK
jD2TOceTH/khobjm+187PcmCunkHuiFH0qY1rX7vsv9F4Zy78ZV4UD76Lky5UE7Y
nns4oyQqfjRGyCC9kw7hmUDQ0LBMPaoxAf5IOuXQlLc7RHmdcwvML6nBzIV2ueJG
AMWnNh4G8Ms4N6buZHHAipZ8EzL9itbNVjvKdh2K02wq6M8/QvRKlp1kcmpJsDAC
501tUXMyPA1K9FppWRrXjmAzYvSSXXRcXT8U6RXxVA48JI6UaO4AL2iV1MjmsXo6
Sda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BpvCabJUw0DUv0ZUp6FfuRA99VwYXy+MbtY6+EqdcF3t/pmiYOcXWPEt
hJAeJ2zwxF+8dA/uvXjfVyb6NAbMuYyHYzaZmCYW+Bz3+LS8ct3QDOqi2L0cj3vb
pLcOQD2WzS1tMqx4o8GzVCn0W0246y3rMURYBrd/4wGpSLogbyPk/HbUH+UqVmrO
HeVXUp88oP91o/nU+8zP5y02Yc3JqllqT8275m1w3NuSwaTa6PiHCmT542OfpBNp
PuhQ7IPPmwK5unOgFtQH8EydnMopuQjQeNHgrFKmfifn2++aTYnUdOV16qVy4oEv
aBjF+RqFDkTtSbB4ji72JCpEAtiXStouSWU9K8eIi+Su5J31/jBJV8xyf+MZ3aAE
By3K3LSty7l4Ie7XqsMD8HMxXUQUj7rUEoysw1YZALeEIR7mzEW5+go+Lq/F71RP
GcrDrdtKA5xNJZpoOB2IgS2ZBTlrjOdu9QGX8sZdr9I5SNsATtmOvlYHCsKiasQj
yyIpbKrNT4ugmrTrkOXU85APrub821Rp+g==
=HB3n
-----END PGP PUBLIC KEY BLOCK-----

View File

@ -1 +1 @@
SHA512 (znc-1.7.0.tar.gz) = 718dec65dfa2374c568b2694e4faef1f8cf313ae96d171e2263656e077e0fae5f8037c69a23ae33f4ea314ac6e15480c7dccef73ad3ac9324eb79caca622d54b
SHA512 (znc-1.7.4.tar.gz) = ea559ee9e06bfbc51c03ef08e145bc39ee7402638cc153fab7dc1dcedae01548fa0743d726304f9e4631a66241eb96c03940b76093954093a35f69641133b2ae

13
znc.rpmlintrc Normal file
View File

@ -0,0 +1,13 @@
from Config import *
# Ignore dangling symlinks in .build-id dirs
addFilter("znc\..*: W: dangling-relative-symlink /usr/lib/.build-id/.*")
# No documentation is expected in these packages
addFilter("znc-(devel|modperl|modpython|modtcl)\..*: W: no-documentation")
# /var/lib/znc is expected to be owned by the znc user/group
addFilter("znc\..*: W: non-standard-[gu]id /var/lib/znc znc")
# Some template files are expected to be empty
addFilter("znc\..*: E: zero-length /usr/share/znc/webskins/.*/tmpl/.*\.tmpl")

206
znc.spec
View File

@ -1,3 +1,7 @@
# This package depends on automagic byte compilation
# https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_2
%global _python_bytecompile_extra 1
# ZNC is a daemon application and that's why needs hardening
%global _hardened_build 1
@ -12,26 +16,33 @@
%endif # 0%{?fedora} || 0%{?rhel} >= 7
Name: znc
Version: 1.7.0
Release: 3%{?dist}
Version: 1.7.4
Release: 2%{?dist}
Summary: An advanced IRC bouncer
Group: System Environment/Daemons
License: ASL 2.0
URL: http://znc.in
URL: https://znc.in
Source0: %{url}/releases/%{name}-%{version}.tar.gz
Source1: %{url}/releases/%{name}-%{version}.tar.gz.sig
Source2: gpgkey-5AE420CC0209989E.asc
# Use system-wide crypto policy
# https://fedoraproject.org/wiki/Packaging:CryptoPolicies
Patch0: 0001-Use-system-wide-crypto-policy.patch
BuildRequires: automake
BuildRequires: c-ares-devel
BuildRequires: cyrus-sasl-devel
BuildRequires: gcc-c++
BuildRequires: gettext-devel
BuildRequires: gnupg2
BuildRequires: libicu-devel
BuildRequires: openssl-devel >= 0.9.8
BuildRequires: perl(ExtUtils::Embed)
%if (0%{?fedora} && 0%{?fedora} <= 24) || (0%{?rhel} && 0%{?rhel} <= 9)
%if 0%{?rhel} && 0%{?rhel} <= 9
Obsoletes: znc-extra <= %{version}-%{release}
%endif # (0%{?fedora} && 0%{?fedora} <= 24) || (0%{?rhel} && 0%{?rhel} <= 9)
%endif # 0%{?rhel} && 0%{?rhel} <= 9
Requires(pre): shadow-utils
BuildRequires: systemd
@ -44,10 +55,10 @@ DCC bouncing, Perl and C++ module support to name a few.
%package devel
Summary: Development files needed to compile ZNC modules
Group: Development/Libraries
Requires: %{name} = %{version}-%{release} pkgconfig
Requires: openssl-devel c-ares-devel glibc-devel libicu-devel%{?_isa}
BuildRequires: pkgconfig
Requires: gcc-c++ redhat-rpm-config
%description devel
All includes and program files you need to compile your own znc
@ -55,7 +66,6 @@ modules.
%package modtcl
Summary: TCL module for ZNC
Group: Development/Libraries
BuildRequires: tcl-devel
@ -63,12 +73,11 @@ Requires: %{name} = %{version}-%{release}
Requires: tcl
%description modtcl
TCL module for ZNC
%{summary}.
%if 0%{?with_modperl}
%package modperl
Summary: perl module for ZNC
Group: Development/Libraries
Summary: Perl module for ZNC
BuildRequires: perl-devel
BuildRequires: perl-generators
@ -80,14 +89,13 @@ Requires: perl-interpreter
Provides: perl(ZNC::Module) = %{version}-%{release}
%description modperl
perl module for ZNC
%{summary}.
%endif # 0%{?with_modperl}
%if 0%{?with_modpython}
%package modpython
Summary: python3 module for ZNC
Group: Development/Libraries
Summary: Python3 module for ZNC
%if 0%{?rhel}
BuildRequires: python34-devel
@ -104,15 +112,22 @@ Requires: python3
%endif # 0%{?rhel}
%description modpython
python3 module for ZNC
%{summary}.
%endif # 0%{?with_modpython}
%prep
%setup -q
%__perl -pi.add_release -e 's|(?<="ZNC \%1\.3f)|-%{release}|' znc.cpp
chmod -x modules/q.cpp
# Verify GPG signature
gpghome="$(mktemp -qd)" # Ensure we don't use any existing gpg keyrings
key="%{SOURCE2}"
gpg2 --dearmor --quiet --batch --yes $key >/dev/null
gpgv2 --homedir "$gpghome" --quiet --keyring $key.gpg %{SOURCE1} %{SOURCE0}
rm -rf "$gpghome" $key.gpg # Cleanup tmp gpg home dir and dearmored key
%autosetup -p1
# The manual page references /usr/local/; fix that
sed -ie 's!/usr/local/!/usr/!' man/znc.1
%build
%configure \
@ -128,26 +143,15 @@ chmod -x modules/q.cpp
%else # 0%{?with_modpython}
--disable-python \
%endif # 0%{?with_modpython}
--enable-ipv6 --enable-cyrus --enable-tcl
%__make %{?_smp_mflags}
--enable-ipv6 --enable-cyrus --enable-tcl --with-tcl=%{_libdir}
%make_build V=1
%install
%if 0%{?rhel} && 0%{?rhel} <= 5
%__rm -Rf "%{buildroot}"
%endif # 0%{?rhel} && 0%{?rhel} <= 5
%__make install DESTDIR="%{buildroot}"
mkdir -p %buildroot%{_unitdir}
#install -m 0644 %{SOURCE1} %buildroot%{_unitdir}/znc.service
%make_install
install -d "%{buildroot}%{_sharedstatedir}/znc"
%if 0%{?rhel} && 0%{?rhel} <= 5
%clean
%__rm -Rf "%{buildroot}"
%endif # 0%{?rhel} && 0%{?rhel} <= 5
%pre
getent group znc >/dev/null || groupadd -r znc
getent passwd znc >/dev/null || \
@ -168,66 +172,25 @@ getent passwd znc >/dev/null || \
%files
%doc LICENSE README.md
%doc ChangeLog.md NOTICE README.md
%license LICENSE
%{_bindir}/znc
%{_mandir}/man1/*
%dir %{_libdir}/znc
%{_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
%{_mandir}/man1/znc.1*
%{_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/
@ -235,9 +198,11 @@ getent passwd znc >/dev/null || \
%{_bindir}/znc-buildmod
%{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/znc/
%{_mandir}/man1/znc-buildmod.1*
%files modtcl
%{_libdir}/znc/modtcl.so
%{_datadir}/znc/modtcl/
%if 0%{?with_modperl}
%files modperl
@ -256,6 +221,67 @@ getent passwd znc >/dev/null || \
%changelog
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Fri Jul 5 2019 Nick Bebout <nb@fedoraproject.org> - 1.7.4-1
- Update to 1.7.4 to fix CVE-2019-12816
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.7.3-2
- Perl 5.30 rebuild
* Tue Apr 9 2019 Nick Bebout <nb@fedoraproject.org> - 1.7.3-1
- Update to 1.7.3
* Wed Mar 27 2019 Nick Bebout <nb@fedoraproject.org> - 1.7.3-0.1
- Update to 1.7.3-rc1 to fix CVE-2019-9917
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Tue Jan 29 2019 Jason L Tibbitts III <tibbs@math.uh.edu> - 1.7.2-1
- Update to 1.7.2.
- Fix three paths in the manpage (#1624519).
* Wed Jan 23 2019 Pete Walter <pwalter@fedoraproject.org> - 1.7.1-4
- Rebuild for ICU 63
* Fri Aug 24 2018 Todd Zullinger <tmz@pobox.com> - 1.7.1-3
- Clean up ancient Fedora and RHEL conditionals
- Remove cruft from %%prep
- 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
- Enable verbose make
- Pass --with-tcl to ensure tclConfig.sh is found
- Remove Group tag
- Use system-wide crypto policy
- Use %%license tag for LICENSE file
- Add ChangeLog.md and NOTICE files to %%doc
- Move znc-buildmod.1 to znc-devel
* 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
* Tue Jul 17 2018 Nick Bebout <nb@fedoraproject.org> - 1.7.1-1
- Update to 1.7.1
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.0-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Tue Jul 10 2018 Pete Walter <pwalter@fedoraproject.org> - 1.7.0-7
- Rebuild for ICU 62
* Tue Jul 03 2018 Petr Pisar <ppisar@redhat.com> - 1.7.0-6
- Perl 5.28 rebuild
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.7.0-5
- Perl 5.28 rebuild
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.7.0-4
- Rebuilt for Python 3.7
* Fri May 18 2018 Nick Bebout <nb@usi.edu> - 1.7.0-3
- Fix %%files to not use wildcard