69 lines
2.1 KiB
RPMSpec
69 lines
2.1 KiB
RPMSpec
%global name_reltag .Fork2
|
|
%global name_ver %{version}%{name_reltag}
|
|
|
|
Name: netty-tcnative
|
|
Version: 1.1.30
|
|
Release: 13
|
|
Summary: Fork of Tomcat Native with improved OpenSSL and mavenized build
|
|
License: ASL 2.0
|
|
URL: https://github.com/netty/netty/wiki/Forked-Tomcat-Native
|
|
Source0: https://github.com/netty/netty-tcnative/archive/%{name}-%{name_ver}.tar.gz
|
|
Source1: CheckLibrary.java
|
|
Patch1: i388aprFix.patch
|
|
Patch2: fixLibNames.patch.in
|
|
|
|
BuildRequires: apr-devel autoconf automake compat-openssl10-devel glibc-devel
|
|
BuildRequires: libtool maven-antrun-plugin maven-hawtjni-plugin maven-local
|
|
BuildRequires: maven-plugin-build-helper maven-plugin-bundle
|
|
BuildRequires: maven-remote-resources-plugin maven-source-plugin netty
|
|
BuildRequires: sonatype-oss-parent
|
|
BuildRequires: mvn(kr.motd.maven:os-maven-plugin)
|
|
|
|
Provides: netty-tcnative-javadoc
|
|
Obsoletes: netty-tcnative-javadoc
|
|
|
|
%description
|
|
netty-tcnative is a fork of Tomcat Native. It includes a set of changes
|
|
contributed by Twitter, Inc, such as:
|
|
* Simplified distribution and linkage of native library
|
|
* Complete mavenization of the project
|
|
* Improved OpenSSL support
|
|
To minimize the maintenance burden, we create a dedicated branch for each stable
|
|
upstream release and apply our own changes on top of it, while keeping the
|
|
number of maintained branches to minimum
|
|
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{name}-%{name_ver}
|
|
%patch1 -p1
|
|
patch=`mktemp`
|
|
sed "s;@PATH@;%{_libdir}/%{name};g" < %{PATCH2} > $patch
|
|
patch -p1 < $patch
|
|
|
|
|
|
%build
|
|
%set_build_flags
|
|
%mvn_build -f
|
|
|
|
%install
|
|
%mvn_install
|
|
mkdir -p %{buildroot}%{_libdir}/%{name}/
|
|
cp target/native-build/target/lib/lib%{name}-%{name_ver}.so %{buildroot}%{_libdir}/%{name}/lib%{name}.so
|
|
|
|
|
|
%check
|
|
javac -d . -cp %{buildroot}%{_jnidir}/%{name}/%{name}.jar %{SOURCE1}
|
|
|
|
|
|
%files -f .mfiles
|
|
%doc %{_javadocdir}/%{name}
|
|
%dir %{_jnidir}/%{name}
|
|
%dir %{_libdir}/%{name}
|
|
%dir %{_mavenpomdir}/%{name}
|
|
%{_libdir}/%{name}/lib%{name}.so
|
|
|
|
|
|
%changelog
|
|
* Fri Dec 6 2019 huyan <hu.huyan@huawei.com> - 1.1.30-13
|
|
- Package Initialization
|