/[packages]/cauldron/netty-tcnative/current/SPECS/netty-tcnative.spec
ViewVC logotype

Contents of /cauldron/netty-tcnative/current/SPECS/netty-tcnative.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 955155 - (show annotations) (download)
Thu Feb 11 15:40:32 2016 UTC (9 years, 5 months ago) by neoclust
File size: 2235 byte(s)
imported package netty-tcnative
1 %global namedreltag .Fork2
2 %global namedversion %{version}%{?namedreltag}
3
4 Name: netty-tcnative
5 Version: 1.1.30
6 Release: 2%{?dist}
7 Summary: Fork of Tomcat Native with improved OpenSSL and mavenized build
8 License: ASL 2.0
9 URL: https://github.com/netty/netty/wiki/Forked-Tomcat-Native
10 Source0: https://github.com/netty/netty-tcnative/archive/%{name}-%{namedversion}.tar.gz
11 Source1: CheckLibrary.java
12 Patch1: fixLibNames.patch.in
13 Patch2: i388aprFix.patch
14
15 BuildRequires: maven-local
16 BuildRequires: autoconf
17 BuildRequires: automake
18 BuildRequires: libtool
19 BuildRequires: glibc-devel
20 BuildRequires: apr-devel
21 BuildRequires: openssl-devel
22 BuildRequires: maven-hawtjni-plugin
23 #parent pom is needed
24 BuildRequires: netty
25 BuildRequires: mvn(kr.motd.maven:os-maven-plugin)
26
27
28 %description
29 netty-tcnative is a fork of Tomcat Native. It includes a set of changes
30 contributed by Twitter, Inc, such as:
31 * Simplified distribution and linkage of native library
32 * Complete mavenization of the project
33 * Improved OpenSSL support
34 To minimize the maintenance burden, we create a dedicated branch for each stable
35 upstream release and apply our own changes on top of it, while keeping the
36 number of maintained branches to minimum
37
38
39 %package javadoc
40 Summary: API documentation for %{name}
41 Group: Documentation
42 BuildArch: noarch
43
44 %description javadoc
45 %{summary}.
46
47 %prep
48 %setup -q -n %{name}-%{name}-%{namedversion}
49 patch=`mktemp`
50 sed "s;@PATH@;%{_libdir}/%{name};g" < %{PATCH1} > $patch
51 patch -p1 < $patch
52 %patch2 -p1
53
54
55 %build
56 %mvn_build -f
57
58 %install
59 %mvn_install
60 mkdir -p $RPM_BUILD_ROOT%{_libdir}/%{name}/
61 cp target/native-build/target/lib/lib%{name}-%{namedversion}.so $RPM_BUILD_ROOT%{_libdir}/%{name}/lib%{name}.so
62
63
64 %check
65 javac -d . -cp $RPM_BUILD_ROOT%{_jnidir}/%{name}/%{name}.jar %{SOURCE1}
66 #don't know how to test load(path) without more and more patching, however the test class can be used for manual testing
67 #java -cp .:$RPM_BUILD_ROOT%%{_jnidir}/%%{name}/%%{name}.jar CheckLibrary
68
69
70 %files -f .mfiles
71 %dir %{_libdir}/%{name}
72 %dir %{_jnidir}/%{name}
73 %dir %{_mavenpomdir}/%{name}
74 %{_libdir}/%{name}/lib%{name}.so
75
76 %files javadoc -f .mfiles-javadoc
77

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.30