3b4fcee
Name:           tomcat-native
add57d4
Version:        1.2.12
638dbfd
Release:        1%{?dist}
3b4fcee
Summary:        Tomcat native library
3b4fcee
eb0d1af
Group:          System Environment/Libraries
3b4fcee
License:        ASL 2.0
9256bb4
URL:            http://tomcat.apache.org/tomcat-8.0-doc/apr.html
e8bc0a4
Source0:        http://www.apache.org/dist/tomcat/tomcat-connectors/native/%{version}/source/%{name}-%{version}-src.tar.gz
eb0d1af
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
3b4fcee
3b4fcee
BuildRequires:  java-devel
3b4fcee
BuildRequires:  jpackage-utils
e47df88
BuildRequires:  apr-devel >= 1.4.3
e47df88
BuildRequires:  openssl-devel >= 1.0.2
3b4fcee
# Upstream compatibility:
3b4fcee
Provides:       tcnative = %{version}-%{release}
3b4fcee
3b4fcee
%description
3b4fcee
Tomcat can use the Apache Portable Runtime to provide superior
3b4fcee
scalability, performance, and better integration with native server
3b4fcee
technologies.  The Apache Portable Runtime is a highly portable library
3b4fcee
that is at the heart of Apache HTTP Server 2.x.  APR has many uses,
3b4fcee
including access to advanced IO functionality (such as sendfile, epoll
3b4fcee
and OpenSSL), OS level functionality (random number generation, system
3b4fcee
status, etc), and native process handling (shared memory, NT pipes and
3b4fcee
Unix sockets).  This package contains the Tomcat native library which
3b4fcee
provides support for using APR in Tomcat.
3b4fcee
3b4fcee
3b4fcee
%prep
3b4fcee
%setup -q -n %{name}-%{version}-src
be8024f
f=CHANGELOG.txt ; iconv -f iso-8859-1 -t utf-8 $f > $f.utf8 ; mv $f.utf8 $f
3b4fcee
3b4fcee
3b4fcee
%build
e47df88
cd native
3b4fcee
%configure \
3b4fcee
    --with-apr=%{_bindir}/apr-1-config \
e47df88
    --with-java-home=%{java_home}
3b4fcee
make %{?_smp_mflags}
3b4fcee
3b4fcee
3b4fcee
%install
3b4fcee
rm -rf $RPM_BUILD_ROOT
e47df88
make -C native install DESTDIR=$RPM_BUILD_ROOT
3b4fcee
# Perhaps a devel package sometime?  Not for now; no headers are installed.
3b4fcee
rm -f $RPM_BUILD_ROOT%{_libdir}/libtcnative*.*a
3b4fcee
rm -rf $RPM_BUILD_ROOT%{_libdir}/pkgconfig
3b4fcee
3b4fcee
eb0d1af
%clean
eb0d1af
rm -rf $RPM_BUILD_ROOT
eb0d1af
eb0d1af
3b4fcee
%post -p /sbin/ldconfig
3b4fcee
3b4fcee
%postun -p /sbin/ldconfig
3b4fcee
3b4fcee
3b4fcee
%files
eb0d1af
%defattr(-,root,root,-)
9256bb4
%{!?_licensedir:%global license %%doc}
9256bb4
%license LICENSE NOTICE
9256bb4
%doc CHANGELOG.txt TODO.txt
147ffc5
# Note: unversioned *.so needed here due to how Tomcat loads the lib :(
3b4fcee
%{_libdir}/libtcnative*.so*
3b4fcee
3b4fcee
3b4fcee
%changelog
add57d4
* Wed Feb 22 2017 Coty Sutherland <csutherl@redhat.com> - 1.2.12-1
add57d4
- Update to 1.2.12 (#1425783)
add57d4
f9e44bf
* Tue Nov 01 2016 Coty Sutherland <csutherl@redhat.com> - 1.2.10-1
f9e44bf
- Update to 1.2.10
f9e44bf
8e6ef65
* Tue Aug 16 2016 Coty Sutherland <csutherl@redhat.com> - 1.2.8-1
8e6ef65
- Update to 1.2.8
8e6ef65
5f9eae0
* Tue May 10 2016 Lorenzo Dalrio <lorenzo.dalrio@gmail.com> - 1.2.7-1
5f9eae0
- Update to 1.2.7
5f9eae0
638dbfd
* Thu Apr 28 2016 Lorenzo Dalrio <lorenzo.dalrio@gmail.com> - 1.2.6-1
638dbfd
- Update to 1.2.6
638dbfd
be7fdce
* Tue Mar 08 2016 Lorenzo Dalrio <lorenzo.dalrio@gmail.com> - 1.2.5-2
be7fdce
- Update to 1.2.5 (#1315533)
be7fdce
575a1b2
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-2
575a1b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
575a1b2
e47df88
* Tue Jan 12 2016 Lorenzo Dalrio <lorenzo.dalrio@gmail.com> - 1.2.4-1
e47df88
- Update to 1.2.4
e47df88
27cf80b
* Sun Dec 27 2015 Lorenzo Dalrio <lorenzo.dalrio@gmail.com> - 1.1.34-1
27cf80b
- Update to 1.1.34
27cf80b
4da9d65
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.33-2
4da9d65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
4da9d65
af40666
* Mon Mar 23 2015 Ville Skyttä <ville.skytta@iki.fi> - 1.1.33-1
af40666
- Update to 1.1.33
af40666
9256bb4
* Mon Oct 27 2014 Ville Skyttä <ville.skytta@iki.fi> - 1.1.32-1
9256bb4
- Update to 1.1.32
9256bb4
- Mark LICENSE and NOTICE as %%license where available
9256bb4
448cd2c
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.31-2
448cd2c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
448cd2c
bb90200
* Tue Jul  8 2014 Ville Skyttä <ville.skytta@iki.fi> - 1.1.31-1
bb90200
- Update to 1.1.31
bb90200
2dc78a2
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.30-2
2dc78a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2dc78a2
f283917
* Tue Apr 15 2014 Ville Skyttä <ville.skytta@iki.fi> - 1.1.30-1
f283917
- Update to 1.1.30
f283917
13c8ecf
* Tue Oct 15 2013 Ville Skyttä <ville.skytta@iki.fi> - 1.1.29-1
13c8ecf
- Update to 1.1.29.
13c8ecf
eb0d1af
* Mon Sep 16 2013 Ville Skyttä <ville.skytta@iki.fi> - 1.1.28-1
eb0d1af
- Update to 1.1.28.
eb0d1af
- Make buildable on EL5 again; min supported APR version lowered back to 1.2.1.
eb0d1af
70f9b01
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.27-3
70f9b01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
70f9b01
c94c9bc
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.27-2
c94c9bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
c94c9bc
66916fc
* Wed Feb 13 2013 Ville Skyttä <ville.skytta@iki.fi> - 1.1.27-1
66916fc
- Update to 1.1.27.
66916fc
- Clean up specfile constructs no longer needed in Fedora or EL6+.
66916fc
557d8ed
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.24-2
557d8ed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
557d8ed
92435d7
* Thu Jun 14 2012 Ville Skyttä <ville.skytta@iki.fi> - 1.1.24-1
92435d7
- Update to 1.1.24.
92435d7
38e9e23
* Wed Mar  7 2012 Ville Skyttä <ville.skytta@iki.fi> - 1.1.23-1
38e9e23
- Update to 1.1.23.
38e9e23
84a2684
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.22-2
84a2684
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
84a2684
be8024f
* Tue Aug  9 2011 Ville Skyttä <ville.skytta@iki.fi> - 1.1.22-1
be8024f
- Update to 1.1.22.
be8024f
8762197
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.20-2
8762197
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
8762197
7ef2df0
* Wed Feb 17 2010 Ville Skyttä <ville.skytta@iki.fi> - 1.1.20-1
7ef2df0
- Update to 1.1.20 (#566131).
7ef2df0
52ca7a1
* Mon Jan 11 2010 Ville Skyttä <ville.skytta@iki.fi> - 1.1.19-1
52ca7a1
- Update to 1.1.19 (#554315), OpenSSL 1.0 patch applied upstream.
52ca7a1
ae42820
* Tue Nov 24 2009 Ville Skyttä <ville.skytta@iki.fi> - 1.1.18-1
ae42820
- Update to 1.1.18 (security; CVE-2009-3555).
ae42820
e8bc0a4
* Wed Nov  4 2009 Ville Skyttä <ville.skytta@iki.fi> - 1.1.17-1
e8bc0a4
- Update to 1.1.17 (#532931).
e8bc0a4
cf8ba52
* Wed Aug 26 2009 Tomas Mraz <tmraz@redhat.com> - 1.1.16-5
1b01e48
- rebuilt with new openssl
1b01e48
8bb605f
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.16-4
8bb605f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
8bb605f
0089c2d
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.16-3
0089c2d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
0089c2d
3f5a178
* Sun Jan 18 2009 Tomas Mraz <tmraz@redhat.com> - 1.1.16-2
3f5a178
- rebuild with new openssl
3f5a178
e8bc0a4
* Thu Nov 20 2008 Ville Skyttä <ville.skytta@iki.fi> - 1.1.16-1
4d70df4
- 1.1.16.
4d70df4
e8bc0a4
* Thu Sep 11 2008 Ville Skyttä <ville.skytta@iki.fi> - 1.1.15-1
470cda3
- 1.1.15.
470cda3
e8bc0a4
* Sat Jul  5 2008 Ville Skyttä <ville.skytta@iki.fi> - 1.1.14-1
4a42c56
- 1.1.14.
4a42c56
e8bc0a4
* Sat Feb 16 2008 Ville Skyttä <ville.skytta@iki.fi> - 1.1.13-1
f2c19e8
- 1.1.13.
f2c19e8
e8bc0a4
* Tue Feb 12 2008 Ville Skyttä <ville.skytta@iki.fi> - 1.1.12-2
402178f
- Apply upstream fix to silence (seemingly harmless?) configure error spewage.
402178f
e8bc0a4
* Sat Dec 22 2007 Ville Skyttä <ville.skytta@iki.fi> - 1.1.12-1
ee30ada
- 1.1.12.
fd7e4b4
b5165c8
* Wed Dec 05 2007 Release Engineering <rel-eng at fedoraproject dot org> - 1.1.10-3
b5165c8
 - Rebuild for deps
b5165c8
e8bc0a4
* Wed Dec  5 2007 Ville Skyttä <ville.skytta@iki.fi> - 1.1.10-2
5e53312
- Rebuild.
5e53312
e8bc0a4
* Thu Sep  6 2007 Ville Skyttä <ville.skytta@iki.fi> - 1.1.10-1
147ffc5
- First Fedora build.
147ffc5
e8bc0a4
* Mon Aug 20 2007 Ville Skyttä <ville.skytta@iki.fi> - 1.1.10-0.2
3b4fcee
- License: ASL 2.0.
3b4fcee
e8bc0a4
* Mon Apr 16 2007 Ville Skyttä <ville.skytta@iki.fi> - 1.1.10-0.1
3b4fcee
- 1.1.10.
3b4fcee
e8bc0a4
* Tue Apr  3 2007 Ville Skyttä <ville.skytta@iki.fi> - 1.1.9-0.1
3b4fcee
- 1.1.9.
3b4fcee
e8bc0a4
* Sat Jan  6 2007 Ville Skyttä <ville.skytta@iki.fi> - 1.1.8-0.1
3b4fcee
- 1.1.8.
3b4fcee
e8bc0a4
* Tue Dec 12 2006 Ville Skyttä <ville.skytta@iki.fi> - 1.1.7-0.1
3b4fcee
- 1.1.7.
3b4fcee
e8bc0a4
* Mon Nov 13 2006 Ville Skyttä <ville.skytta@iki.fi> - 1.1.6-0.1
3b4fcee
- 1.1.6.
3b4fcee
e8bc0a4
* Sat Sep 30 2006 Ville Skyttä <ville.skytta@iki.fi> - 1.1.4-0.1
3b4fcee
- 1.1.4, specfile cleanup.
3b4fcee
e8bc0a4
* Wed Jun 14 2006 Ville Skyttä <ville.skytta@iki.fi> - 1.1.3-0.1
3b4fcee
- First build.