88 строки
2.6 KiB
Plaintext
88 строки
2.6 KiB
Plaintext
Summary: The Apache Portable Runtime
|
|
Name: apr
|
|
Version: 1.6.5
|
|
Release: 4%{?dist}
|
|
License: Apache License 2.0
|
|
URL: https://apr.apache.org/
|
|
Group: System Environment/Libraries
|
|
Vendor: Microsoft Corporation
|
|
Distribution: Mariner
|
|
Source0: http://archive.apache.org/dist/%{name}/%{name}-%{version}.tar.gz
|
|
%define sha1 %{name}=ebf4f15fa5003b1490550e260f5a57dc8a2ff0ac
|
|
%define aprver 1
|
|
|
|
%if %{with_check}
|
|
# test_serv_by_name test requires /etc/services file from iana-etc package
|
|
BuildRequires: iana-etc
|
|
%endif
|
|
|
|
%description
|
|
The Apache Portable Runtime.
|
|
%package devel
|
|
Summary: Header and development files
|
|
Requires: %{name} = %{version}-%{release}
|
|
%description devel
|
|
It contains the libraries and header files to create applications
|
|
|
|
%prep
|
|
%setup -q
|
|
%build
|
|
./configure --prefix=/usr \
|
|
--includedir=%{_includedir}/apr-%{aprver} \
|
|
--with-installbuilddir=%{_libdir}/apr/build-%{aprver} \
|
|
--with-devrandom=/dev/urandom \
|
|
CC=gcc CXX=g++
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
make DESTDIR=%{buildroot} install
|
|
|
|
%check
|
|
make %{?_smp_mflags} check
|
|
|
|
%post
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%license LICENSE
|
|
%{_libdir}/*
|
|
%exclude %{_libdir}/debug
|
|
%exclude %{_libdir}/*.la
|
|
%exclude %{_libdir}/*.a
|
|
%exclude %{_libdir}/*.so
|
|
%exclude %{_libdir}/pkgconfig
|
|
%{_bindir}/*
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_includedir}/*
|
|
%{_libdir}/*.la
|
|
%{_libdir}/*.a
|
|
%{_libdir}/*.so
|
|
%{_libdir}/pkgconfig
|
|
|
|
%changelog
|
|
* Mon Dec 07 2020 Andrew Phelps <anphel@microsoft.com> 1.6.5-4
|
|
- Fix check tests.
|
|
* Sat May 09 2020 Nick Samson <nisamson@microsoft.com> 1.6.5-3
|
|
- Added %%license line automatically
|
|
* Tue Sep 03 2019 Mateusz Malisz <mamalisz@microsoft.com> 1.6.5-2
|
|
- Initial CBL-Mariner import from Photon (license: Apache2).
|
|
* Tue Sep 18 2018 Ankit Jain <ankitja@vmware.com> 1.6.5-1
|
|
- Updated to version 1.6.5
|
|
* Fri Dec 08 2017 Xiaolin Li <xiaolinl@vmware.com> 1.5.2-7
|
|
- Fix CVE-2017-12613
|
|
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 1.5.2-6
|
|
- GA - Bump release of all rpms
|
|
* Mon Sep 21 2015 Harish Udaiya Kumar<hudaiyakumar@vmware.com> 1.5.2-5
|
|
- Repacked to move the include files in devel package.
|
|
* Wed Jul 15 2015 Sarah Choi <sarahc@vmware.com> 1.5.2-4
|
|
- Use aprver(=1) instead of version for mesos
|
|
* Mon Jul 13 2015 Alexey Makhalov <amakhalov@vmware.com> 1.5.2-3
|
|
- Exclude /usr/lib/debug
|
|
* Wed Jul 01 2015 Touseef Liaqat <tliaqat@vmware.com> 1.5.2-2
|
|
- Fix tags and paths.
|
|
* Wed May 20 2015 Touseef Liaqat <tliaqat@vmware.com> 1.5.2-1
|
|
- Initial build. First version
|