%global namedreltag .GA %global namedversion %{version}%{?namedreltag} # The version of tomcat native that this package is based on: %global tcn_version 1.1.22 Name: jboss-web-native Version: 2.0.10 Release: %mkrel 6 Summary: JBoss Web Native Group: Development/Java License: LGPLv2+ and ASL 2.0 URL: http://www.jboss.org/ Source0: http://downloads.jboss.org/jbossnative/%{namedversion}/jboss-native-%{version}-src-ssl.tar.gz # In order to avoid a conflict with the tomcat-native package it is necessary # to rename the library from libtcnative to libjbnative: Patch0: %{name}-rename-so-to-jbnative.patch BuildRequires: apr-devel BuildRequires: autoconf BuildRequires: automake BuildRequires: gcc BuildRequires: java-devel BuildRequires: jpackage-utils BuildRequires: make BuildRequires: openssl-devel %description This package contains support for Apache Portable Runtime (APR) in JBoss AS. %package devel Group: Development/Java Summary: JBoss Web Native development files Requires: jboss-web-native = %{version}-%{release} Requires: apr-devel Requires: openssl-devel %description devel This package provides the support files which can be used to build applications using the JBoss Web native library. %prep %setup -q -n jboss-native-%{version}-src-ssl/srclib/tomcat-native-%{tcn_version} %patch0 -p1 %build # In order to rename the output library we need to modify the configure.in file # (with patch 0) and then regenerate the configure script: autoreconf --force # Now we can run the modified configure script: %configure \ --with-apr=%{_bindir}/apr-1-config \ --with-java-home=%{java_home} \ --with-java-platform=2 # And build: %make %install %makeinstall_std %files %{_libdir}/libjbnative-1.so.* %files devel %{_libdir}/libjbnative-1.*a %{_libdir}/libjbnative-1.so %{_libdir}/pkgconfig/jbnative-1.pc %changelog * Wed Oct 15 2014 umeabot <umeabot> 2.0.10-6.mga5 + Revision: 750436 - Second Mageia 5 Mass Rebuild * Tue Sep 16 2014 umeabot <umeabot> 2.0.10-5.mga5 + Revision: 680738 - Mageia 5 Mass Rebuild * Fri Oct 18 2013 umeabot <umeabot> 2.0.10-4.mga4 + Revision: 521099 - Mageia 4 Mass Rebuild * Wed Jan 16 2013 dmorgan <dmorgan> 2.0.10-3.mga3 + Revision: 388612 - imported package jboss-web-native * Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.10-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Tue Apr 24 2012 Marek Goldmann <mgoldman@redhat.com> 2.0.10-2 - Thanks to Juan Hernandez updated the spec file - Removed jar, it's not necessary - Renamed produced files to jbnative * Tue Apr 24 2012 Marek Goldmann <mgoldman@redhat.com> 2.0.10-1 - Initial packaging