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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1520651 - (hide annotations) (download)
Fri Feb 14 15:26:47 2020 UTC (5 years, 5 months ago) by umeabot
File size: 2569 byte(s)
Mageia 8 Mass Rebuild
1 neoclust 916802 %global namedreltag .Fork2
2     %global namedversion %{version}%{?namedreltag}
3    
4     Name: netty-tcnative
5     Version: 1.1.30
6 umeabot 1520651 Release: %mkrel 11
7 neoclust 974495 Group: Development/Java
8 neoclust 916802 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 ovitters 1145259 BuildRequires: pkgconfig(apr-1)
22 neoclust 916802 BuildRequires: maven-hawtjni-plugin
23 guillomovitch 1155363 BuildRequires: compat-openssl10-devel
24 daviddavid 1309982 BuildRequires: maven-antrun-plugin
25     BuildRequires: maven-hawtjni-plugin
26     BuildRequires: maven-plugin-build-helper
27     BuildRequires: maven-plugin-bundle
28     BuildRequires: maven-remote-resources-plugin
29     BuildRequires: maven-source-plugin
30 neoclust 916802 #parent pom is needed
31     BuildRequires: netty
32 daviddavid 1309982 BuildRequires: sonatype-oss-parent
33 neoclust 916802 BuildRequires: mvn(kr.motd.maven:os-maven-plugin)
34    
35     %description
36     netty-tcnative is a fork of Tomcat Native. It includes a set of changes
37     contributed by Twitter, Inc, such as:
38     * Simplified distribution and linkage of native library
39     * Complete mavenization of the project
40     * Improved OpenSSL support
41     To minimize the maintenance burden, we create a dedicated branch for each stable
42     upstream release and apply our own changes on top of it, while keeping the
43     number of maintained branches to minimum
44    
45    
46     %package javadoc
47     Summary: API documentation for %{name}
48     Group: Documentation
49     BuildArch: noarch
50    
51     %description javadoc
52     %{summary}.
53    
54     %prep
55     %setup -q -n %{name}-%{name}-%{namedversion}
56     patch=`mktemp`
57     sed "s;@PATH@;%{_libdir}/%{name};g" < %{PATCH1} > $patch
58     patch -p1 < $patch
59     %patch2 -p1
60    
61    
62     %build
63 wally 1474365 %set_build_flags
64 neoclust 916802 %mvn_build -f
65    
66     %install
67     %mvn_install
68     mkdir -p $RPM_BUILD_ROOT%{_libdir}/%{name}/
69     cp target/native-build/target/lib/lib%{name}-%{namedversion}.so $RPM_BUILD_ROOT%{_libdir}/%{name}/lib%{name}.so
70    
71    
72     %check
73     javac -d . -cp $RPM_BUILD_ROOT%{_jnidir}/%{name}/%{name}.jar %{SOURCE1}
74     #don't know how to test load(path) without more and more patching, however the test class can be used for manual testing
75     #java -cp .:$RPM_BUILD_ROOT%%{_jnidir}/%%{name}/%%{name}.jar CheckLibrary
76    
77    
78     %files -f .mfiles
79     %dir %{_libdir}/%{name}
80     %dir %{_jnidir}/%{name}
81     %dir %{_mavenpomdir}/%{name}
82     %{_libdir}/%{name}/lib%{name}.so
83    
84     %files javadoc -f .mfiles-javadoc
85    

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.30