You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Jonas Pasche <ma...@jonaspasche.com> on 2006/11/16 18:29:58 UTC

Bugfixes for tcnative-1.1.7 specfile

Hi out there,

while trying to install the tcnative module found in the tarball of
Tomcat 6.0.2-alpha (subpackaged into bin/tomcat-native.tar.gz) I found
that the specfile - even if it includes the current version number - is
heavily broken and doesn't build a valid package. The tcnative specfile
in the tarball of Tomcat 5.5.20 is even more broken, so I started to
rework the specfile of the most current version, tcnative 1.1.7.

I fixed the following errors:

- The Makefile no longer provides "make dox", so the equivalent call in
  the specfile fails. I removed it, together with the doxygen
  requirement (as there's nothing left doxygen could work on), the
  manual doc install section and the %doc parts of the %files section.

- The Makefile no longer provides "make testall", so the equivalent call
  in the specfile fails. I removed the %check section.

- The %files section for tcnative-devel lists *.h but the Makefile
  simply doesn't install these files so they either don't get included
  in tcnative-devel or building the package completely fails, depending
  on RPM's settings. I added a section to Makefile.in that installs the
  *.h files.

The result is a specfile that cleanly builds:

$ rpm -qpl tcnative-1.1.7-2.i386.rpm
/usr/lib/libtcnative-1.so.0
/usr/lib/libtcnative-1.so.0.1.7

$ rpm -qpl tcnative-devel-1.1.7-2.i386.rpm
/usr/include/apr-1/ssl_private.h
/usr/include/apr-1/tcn.h
/usr/include/apr-1/tcn_api.h
/usr/include/apr-1/tcn_version.h
/usr/lib/libtcnative-1.a
/usr/lib/libtcnative-1.la
/usr/lib/libtcnative-1.so
/usr/lib/pkgconfig/tcnative-1.pc

I created a diff file to implement these changes:

http://jonaspasche.com/patches/tcnative-1.1.7-bugfixes.patch

Please verify if it's okay for inclusion into the main tree to help
others cleanly building RPMs with tcnative. Thank you!

Jonas


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org