[jboss-web-native/f17] Initial import

Marek Goldmann goldmann at fedoraproject.org
Thu Apr 26 14:04:32 UTC 2012


commit e5f4818dcf2b8201e72c78f6c156d4935c368db2
Author: Marek Goldmann <goldmann at fedoraproject.org>
Date:   Thu Apr 26 16:04:18 2012 +0200

    Initial import

 .gitignore                                   |    1 +
 jboss-web-native-rename-so-to-jbnative.patch |  131 ++++++++++++++++++++++++++
 jboss-web-native.spec                        |   85 +++++++++++++++++
 sources                                      |    1 +
 4 files changed, 218 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..b742290 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/jboss-native-2.0.10-src-ssl.tar.gz
diff --git a/jboss-web-native-rename-so-to-jbnative.patch b/jboss-web-native-rename-so-to-jbnative.patch
new file mode 100644
index 0000000..acfba3b
--- /dev/null
+++ b/jboss-web-native-rename-so-to-jbnative.patch
@@ -0,0 +1,131 @@
+commit b311766bfd4f390542520570ea2d46e1b73dd20d
+Author: Juan Hernandez <juan.hernandez at redhat.com>
+Date:   Wed Apr 25 20:30:25 2012 +0200
+
+    rename-so-to-jbnative
+
+diff --git a/Makefile.in b/Makefile.in
+index fc84eb0..b84e09b 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -37,7 +37,7 @@ TCNATIVE_LIBS = @TCNATIVE_LIBS@
+ 
+ TARGET_LIB = lib at TCNATIVE_LIBNAME@.la
+ EXTRA_OS_LINK=@EXTRA_OS_LINK@
+-TCNATIVE_PCFILE = tcnative-$(TCNATIVE_MAJOR_VERSION).pc
++TCNATIVE_PCFILE = jbnative-$(TCNATIVE_MAJOR_VERSION).pc
+ INSTALL = @INSTALL@
+ INSTALL_DATA = @INSTALL_DATA@
+ 
+@@ -52,7 +52,7 @@ CLEAN_SUBDIRS = test
+ 
+ CLEAN_TARGETS = .make.dirs
+ DISTCLEAN_TARGETS = config.cache config.log config.status libtool \
+-	build/rules.mk tcnative.pc
++	build/rules.mk jbnative.pc
+ EXTRACLEAN_TARGETS = configure aclocal.m4 build-outputs.mk \
+ 	build/apr_common.m4 build/find_apr.m4 build/install.sh \
+ 	build/config.guess build/config.sub tcnative.spec
+@@ -69,7 +69,7 @@ top_blddir=@abs_builddir@
+ install: $(TARGET_LIB)
+ 	$(APR_MKDIR) $(DESTDIR)$(includedir) $(DESTDIR)$(libdir)/pkgconfig \
+ 		     $(DESTDIR)$(libdir) $(DESTDIR)$(bindir)
+-	$(INSTALL_DATA) tcnative.pc $(DESTDIR)$(libdir)/pkgconfig/$(TCNATIVE_PCFILE)
++	$(INSTALL_DATA) jbnative.pc $(DESTDIR)$(libdir)/pkgconfig/$(TCNATIVE_PCFILE)
+ 	list='$(INSTALL_SUBDIRS)'; for i in $$list; do \
+ 		( cd $$i ; $(MAKE) DESTDIR=$(DESTDIR) install ); \
+ 	done
+diff --git a/configure.in b/configure.in
+index c816b8b..9650365 100644
+--- a/configure.in
++++ b/configure.in
+@@ -160,7 +160,7 @@ lib_target=$APR_LIB_TARGET
+ AC_SUBST(so_ext)
+ AC_SUBST(lib_target)
+ 
+-TCNATIVE_LIBNAME="tcnative${libsuffix}"
++TCNATIVE_LIBNAME="jbnative${libsuffix}"
+ AC_SUBST(TCNATIVE_LIBNAME)
+ 
+ EXTRA_OS_LINK=""
+@@ -259,7 +259,7 @@ dnl
+ dnl everthing is done.
+ MAKEFILES="Makefile"
+ AC_OUTPUT([
+-    tcnative.pc
++    jbnative.pc
+     $MAKEFILES
+ 	],[
+ TCNATIVE_MAJOR_VERSION=$TCNATIVE_MAJOR_VERSION
+diff --git a/jbnative.pc.in b/jbnative.pc.in
+new file mode 100644
+index 0000000..d593df1
+--- /dev/null
++++ b/jbnative.pc.in
+@@ -0,0 +1,30 @@
++#
++# Licensed to the Apache Software Foundation (ASF) under one or more
++# contributor license agreements.  See the NOTICE file distributed with
++# this work for additional information regarding copyright ownership.
++# The ASF licenses this file to You under the Apache License, Version 2.0
++# (the "License"); you may not use this file except in compliance with
++# the License.  You may obtain a copy of the License at
++#
++#     http://www.apache.org/licenses/LICENSE-2.0
++#
++# Unless required by applicable law or agreed to in writing, software
++# distributed under the License is distributed on an "AS IS" BASIS,
++# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
++# See the License for the specific language governing permissions and
++# limitations under the License.
++#
++
++prefix=@prefix@
++exec_prefix=@exec_prefix@
++libdir=@libdir@
++TCNATIVE_MAJOR_VERSION=@TCNATIVE_MAJOR_VERSION@
++includedir=@includedir@
++
++Name: Tomcat native Java
++Description: Companion Native Java library
++Version: @TCNATIVE_DOTTED_VERSION@
++# assume that tcnative requires libapr of same major version
++Requires: apr- at TCNATIVE_MAJOR_VERSION@
++Libs: -L${libdir} -l at TCNATIVE_LIBNAME@ @TCNATIVE_EXPORT_LIBS@
++Cflags: -I${includedir}
+diff --git a/tcnative.pc.in b/tcnative.pc.in
+deleted file mode 100644
+index d593df1..0000000
+--- a/tcnative.pc.in
++++ /dev/null
+@@ -1,30 +0,0 @@
+-#
+-# Licensed to the Apache Software Foundation (ASF) under one or more
+-# contributor license agreements.  See the NOTICE file distributed with
+-# this work for additional information regarding copyright ownership.
+-# The ASF licenses this file to You under the Apache License, Version 2.0
+-# (the "License"); you may not use this file except in compliance with
+-# the License.  You may obtain a copy of the License at
+-#
+-#     http://www.apache.org/licenses/LICENSE-2.0
+-#
+-# Unless required by applicable law or agreed to in writing, software
+-# distributed under the License is distributed on an "AS IS" BASIS,
+-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+-# See the License for the specific language governing permissions and
+-# limitations under the License.
+-#
+-
+-prefix=@prefix@
+-exec_prefix=@exec_prefix@
+-libdir=@libdir@
+-TCNATIVE_MAJOR_VERSION=@TCNATIVE_MAJOR_VERSION@
+-includedir=@includedir@
+-
+-Name: Tomcat native Java
+-Description: Companion Native Java library
+-Version: @TCNATIVE_DOTTED_VERSION@
+-# assume that tcnative requires libapr of same major version
+-Requires: apr- at TCNATIVE_MAJOR_VERSION@
+-Libs: -L${libdir} -l at TCNATIVE_LIBNAME@ @TCNATIVE_EXPORT_LIBS@
+-Cflags: -I${includedir}
diff --git a/jboss-web-native.spec b/jboss-web-native.spec
new file mode 100644
index 0000000..e41e119
--- /dev/null
+++ b/jboss-web-native.spec
@@ -0,0 +1,85 @@
+%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:          2%{?dist}
+Summary:          JBoss Web Native
+Group:            Development/Libraries
+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/Libraries
+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 %{?_smp_mflags}
+
+%install
+make install DESTDIR=%{buildroot}
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%{_libdir}/libjbnative-1.so.*
+
+%files devel
+%{_libdir}/libjbnative-1.*a
+%{_libdir}/libjbnative-1.so
+%{_libdir}/pkgconfig/jbnative-1.pc
+
+%changelog
+* Tue Apr 24 2012 Marek Goldmann <mgoldman at 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 at redhat.com> 2.0.10-1
+- Initial packaging
+
diff --git a/sources b/sources
index e69de29..9de73b6 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+56f0f497ef7b916af53808b728f4edb7  jboss-native-2.0.10-src-ssl.tar.gz


More information about the scm-commits mailing list