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

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.30