[proftpd] Add -devel subpackage for building third-party modules

Paul Howarth pghmcfc at fedoraproject.org
Tue Jan 10 22:23:26 UTC 2012


commit 4de4614798a1b4eeb27e4874bc1a0cfe981f2193
Author: Paul Howarth <paul at city-fan.org>
Date:   Tue Jan 10 22:07:23 2012 +0000

    Add -devel subpackage for building third-party modules

 proftpd.spec |   37 ++++++++++++++++++++++++++++++++++---
 1 files changed, 34 insertions(+), 3 deletions(-)
---
diff --git a/proftpd.spec b/proftpd.spec
index d5764fb..93ca11d 100644
--- a/proftpd.spec
+++ b/proftpd.spec
@@ -117,6 +117,33 @@ visibility.
 This package defaults to the standalone behavior of ProFTPD, but all the
 needed scripts to have it run by xinetd instead are included.
 
+%package devel
+Summary:	ProFTPD - Tools and header files for developers
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+# devel package requires the same devel packages as were build-required
+# for the main package
+Requires:	gcc, libtool
+Requires:	GeoIP-devel
+Requires:	libacl-devel
+Requires:	libcap-devel
+Requires:	mysql-devel
+Requires:	openldap-devel
+Requires:	openssl-devel
+Requires:	pam-devel
+Requires:	pcre-devel
+Requires:	postgresql-devel
+Requires:	pkgconfig
+Requires:	ncurses-devel
+Requires:	zlib-devel
+Requires:	/usr/include/tcpd.h
+%if 0%{?have_libmemcached:1}
+Requires:	libmemcached-devel >= 0.41
+%endif
+
+%description devel
+This package is required to build additional modules for ProFTPD.
+
 %package ldap
 Summary:	Module to add LDAP support to the ProFTPD FTP server
 Group:		System Environment/Daemons
@@ -385,7 +412,6 @@ fi
 %{_bindir}/ftpquota
 %{_bindir}/ftptop
 %{_bindir}/ftpwho
-%exclude %{_bindir}/prxs
 %{_sbindir}/ftpscrub
 %{_sbindir}/ftpshut
 %{_sbindir}/in.proftpd
@@ -401,8 +427,6 @@ fi
 %{_mandir}/man8/ftpscrub.8*
 %{_mandir}/man8/ftpshut.8*
 %{_mandir}/man8/proftpd.8*
-%exclude %{_includedir}/proftpd/
-%exclude %{_libdir}/pkgconfig/
 %dir %{_libexecdir}/proftpd/
 %{_libexecdir}/proftpd/mod_ban.so
 %{_libexecdir}/proftpd/mod_ctrls_admin.so
@@ -441,6 +465,12 @@ fi
 %attr(331, ftp, ftp) %dir %{_localstatedir}/ftp/uploads/
 %attr(750, root, root) %dir %{_localstatedir}/log/proftpd/
 
+%files devel
+%defattr(-,root,root)
+%{_bindir}/prxs
+%{_includedir}/proftpd/
+%{_libdir}/pkgconfig/proftpd.pc
+
 %files ldap
 %defattr(-,root,root,-)
 %doc README.LDAP contrib/mod_quotatab_ldap.ldif contrib/mod_quotatab_ldap.schema
@@ -460,6 +490,7 @@ fi
 - Make mod_vroot a DSO, loaded by default (#772354)
 - VRootAlias for /etc/security/pam_env.conf is redundant, so remove it
 - Add BanMessage (#772354)
+- Add -devel subpackage for building third-party modules
 
 * Fri Nov 11 2011 Paul Howarth <paul at city-fan.org> 1.3.4a-1
 - Update to 1.3.4a:


More information about the scm-commits mailing list