2013-06-16 03:12:05 +00:00
|
|
|
%global oname serf
|
|
|
|
|
|
|
|
Name: libserf
|
2013-11-06 11:05:20 +00:00
|
|
|
Version: 1.3.2
|
|
|
|
Release: 1%{?dist}
|
2013-06-16 03:12:05 +00:00
|
|
|
Summary: High-Performance Asynchronous HTTP Client Library
|
|
|
|
License: ASL 2.0
|
|
|
|
Url: http://code.google.com/p/serf
|
|
|
|
Source0: https://serf.googlecode.com/files/serf-%{version}.tar.bz2
|
2013-11-06 11:05:20 +00:00
|
|
|
|
|
|
|
BuildRequires: apr-util-devel, apr-devel, krb5-devel,
|
|
|
|
BuildRequires: krb5-devel, openssl-devel, zlib-devel
|
|
|
|
BuildRequires: scons, pkgconfig
|
2013-06-16 03:12:05 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
The serf library is a C-based HTTP client library built upon the Apache
|
|
|
|
Portable Runtime (APR) library. It multiplexes connections, running the
|
|
|
|
read/write communication asynchronously. Memory copies and transformations are
|
|
|
|
kept to a minimum to provide high performance operation.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2013-06-16 17:06:33 +00:00
|
|
|
Requires: apr-devel%{?_isa}
|
2013-06-16 03:12:05 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{oname}-%{version}
|
2013-11-06 11:05:20 +00:00
|
|
|
|
|
|
|
# Shared library versioning support in scons is worse than awful...
|
|
|
|
# minimally, here fix the soname to match serf-1.2.x. Minor version
|
|
|
|
# handling should be fixed too; really requires better upstream support:
|
|
|
|
# http://scons.tigris.org/issues/show_bug.cgi?id=2869
|
|
|
|
sed -i '/SHLIBVERSION/s/MAJOR/0/' SConstruct
|
2013-06-16 03:12:05 +00:00
|
|
|
|
|
|
|
%build
|
2013-11-06 11:05:20 +00:00
|
|
|
scons \
|
|
|
|
CFLAGS="%{optflags}" \
|
|
|
|
PREFIX=%{_prefix} \
|
|
|
|
LIBDIR=%{_libdir} \
|
|
|
|
GSSAPI=%{_prefix} \
|
|
|
|
%{?_smp_mflags}
|
2013-06-16 03:12:05 +00:00
|
|
|
|
|
|
|
%install
|
2013-11-06 11:05:20 +00:00
|
|
|
scons install --install-sandbox=%{buildroot}
|
|
|
|
find %{buildroot} -name '*.*a' -exec rm -vf {} ';'
|
2013-06-16 03:12:05 +00:00
|
|
|
|
|
|
|
%check
|
2013-11-06 11:05:20 +00:00
|
|
|
scons %{?_smp_mflags} check
|
2013-06-16 03:12:05 +00:00
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc CHANGES LICENSE NOTICE README design-guide.txt
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
%files devel
|
2013-06-16 17:06:33 +00:00
|
|
|
%{_includedir}/%{oname}-1/
|
2013-06-16 03:12:05 +00:00
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/pkgconfig/%{oname}*.pc
|
|
|
|
|
|
|
|
%changelog
|
2013-11-06 11:05:20 +00:00
|
|
|
* Wed Nov 6 2013 Joe Orton <jorton@redhat.com> - 1.3.2-1
|
|
|
|
- update to 1.3.2
|
|
|
|
- require krb5-devel for libgssapi (#1027011)
|
|
|
|
|
2013-08-03 06:58:21 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-06-16 17:06:33 +00:00
|
|
|
* Mon Jun 17 2013 Christopher Meng <rpm@cicku.me> - 1.2.1-3
|
|
|
|
- SPEC cleanup.
|
|
|
|
|
2013-06-16 03:12:05 +00:00
|
|
|
* Thu Jun 13 2013 Christopher Meng <rpm@cicku.me> - 1.2.1-2
|
|
|
|
- Fix the permission of the library.
|
|
|
|
|
|
|
|
* Sun Jun 09 2013 Christopher Meng <rpm@cicku.me> - 1.2.1-1
|
|
|
|
- Initial Package.
|