Christopher Meng 2c3ccf1
Name:           libserf
aad0e58
Version:        1.3.9
5dd1e47
Release:        5%{?dist}
Christopher Meng 2c3ccf1
Summary:        High-Performance Asynchronous HTTP Client Library
Christopher Meng 2c3ccf1
License:        ASL 2.0
a4ce3df
URL:            http://serf.apache.org/
a4ce3df
Source0:        https://archive.apache.org/dist/serf/serf-%{version}.tar.bz2
Igor Gnatenko d167c2e
BuildRequires:  apr-devel
Igor Gnatenko d167c2e
BuildRequires:  apr-util-devel
Igor Gnatenko d167c2e
BuildRequires:  krb5-devel
Igor Gnatenko d167c2e
BuildRequires:  openssl-devel
Igor Gnatenko d167c2e
BuildRequires:  zlib-devel
Igor Gnatenko d167c2e
BuildRequires:  scons
Igor Gnatenko d167c2e
BuildRequires:  pkgconfig
aad0e58
Patch0:         %{name}-norpath.patch
Christopher Meng 2c3ccf1
Christopher Meng 2c3ccf1
%description
Christopher Meng 2c3ccf1
The serf library is a C-based HTTP client library built upon the Apache 
Christopher Meng 2c3ccf1
Portable Runtime (APR) library. It multiplexes connections, running the
Christopher Meng 2c3ccf1
read/write communication asynchronously. Memory copies and transformations are
Christopher Meng 2c3ccf1
kept to a minimum to provide high performance operation.
Christopher Meng 2c3ccf1
Christopher Meng 2c3ccf1
%package        devel
Christopher Meng 2c3ccf1
Summary:        Development files for %{name}
Christopher Meng 2c3ccf1
Requires:       %{name}%{?_isa} = %{version}-%{release}
Christopher Meng d31e791
Requires:       apr-devel%{?_isa}
Christopher Meng 2c3ccf1
Christopher Meng 2c3ccf1
%description    devel
bf34a6a
This package contains libraries and header files for
Christopher Meng 2c3ccf1
developing applications that use %{name}.
Christopher Meng 2c3ccf1
Christopher Meng 2c3ccf1
%prep
aad0e58
%autosetup -n serf-%{version} -p1
64cc84f
64cc84f
# Shared library versioning support in scons is worse than awful...
64cc84f
# minimally, here fix the soname to match serf-1.2.x.  Minor version
64cc84f
# handling should be fixed too; really requires better upstream support:
64cc84f
# http://scons.tigris.org/issues/show_bug.cgi?id=2869
64cc84f
sed -i '/SHLIBVERSION/s/MAJOR/0/' SConstruct
Christopher Meng 2c3ccf1
Christopher Meng 2c3ccf1
%build
64cc84f
scons \
64cc84f
      CFLAGS="%{optflags}" \
Igor Gnatenko 9a30844
      LINKFLAGS="%{__global_ldflags}" \
64cc84f
      PREFIX=%{_prefix} \
64cc84f
      LIBDIR=%{_libdir} \
64cc84f
      GSSAPI=%{_prefix} \
64cc84f
      %{?_smp_mflags}
Christopher Meng 2c3ccf1
Christopher Meng 2c3ccf1
%install
64cc84f
scons install --install-sandbox=%{buildroot}
96ca230
Igor Gnatenko c9faf86
find %{buildroot}%{_libdir} -type f -name '*.*a' -delete -print
Christopher Meng 2c3ccf1
Christopher Meng 2c3ccf1
%check
Igor Gnatenko c9faf86
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
Igor Gnatenko c9faf86
scons %{?_smp_mflags} check || true
Christopher Meng 2c3ccf1
Christopher Meng 2c3ccf1
%post -p /sbin/ldconfig
Christopher Meng 2c3ccf1
Christopher Meng 2c3ccf1
%postun -p /sbin/ldconfig
Christopher Meng 2c3ccf1
Christopher Meng 2c3ccf1
%files
a4ce3df
%license LICENSE NOTICE
Christopher Meng 2c3ccf1
%{_libdir}/*.so.*
Christopher Meng 2c3ccf1
Christopher Meng 2c3ccf1
%files devel
bf34a6a
%doc CHANGES README design-guide.txt
bf34a6a
%{_includedir}/serf-1/
Christopher Meng 2c3ccf1
%{_libdir}/*.so
bf34a6a
%{_libdir}/pkgconfig/serf*.pc
Christopher Meng 2c3ccf1
Christopher Meng 2c3ccf1
%changelog
5dd1e47
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.9-5
5dd1e47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
5dd1e47
53a0edb
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.9-4
53a0edb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
53a0edb
3a15de6
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.9-3
3a15de6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
3a15de6
4023672
* Mon Nov 14 2016 Joe Orton <jorton@redhat.com> - 1.3.9-2
4023672
- rebuild for OpenSSL 1.1.0
4023672
aad0e58
* Fri Sep 02 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 1.3.9-1
aad0e58
- Update to 1.3.9 (RHBZ #1372506)
aad0e58
Igor Gnatenko 9a30844
* Sat Apr 09 2016 Igor Gnatenko <ignatenko@redhat.com> - 1.3.8-3
Igor Gnatenko 9a30844
- Add LDFLAGS provided by RPM
Igor Gnatenko 9a30844
bcb0a4f
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.8-2
bcb0a4f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
bcb0a4f
51101d7
* Tue Jun 23 2015 Joe Orton <jorton@redhat.com> - 1.3.8-1
51101d7
- update to 1.3.8 (#1155115, #1155392)
51101d7
- remove RPATHs (#1154690)
51101d7
9f4de9e
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.7-3
9f4de9e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
9f4de9e
d6f0122
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.7-2
d6f0122
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
d6f0122
96ca230
* Tue Aug 12 2014 Christopher Meng <rpm@cicku.me> - 1.3.7-1
96ca230
- Update to 1.3.7
96ca230
ee5b067
* Tue Jun 17 2014 Christopher Meng <rpm@cicku.me> - 1.3.6-1
ee5b067
- Update to 1.3.6
ee5b067
ebb5f38
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.5-2
ebb5f38
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
ebb5f38
2b0feb6
* Wed Apr 30 2014 Christopher Meng <rpm@cicku.me> - 1.3.5-1
ee5b067
- Update to 1.3.5
2b0feb6
2e3dd7c
* Mon Feb 17 2014 Joe Orton <jorton@redhat.com> - 1.3.4-1
ee5b067
- Update to 1.3.4
2e3dd7c
a811065
* Tue Dec 10 2013 Joe Orton <jorton@redhat.com> - 1.3.3-1
ee5b067
- Update to 1.3.3
a811065
64cc84f
* Wed Nov  6 2013 Joe Orton <jorton@redhat.com> - 1.3.2-1
ee5b067
- Update to 1.3.2
ee5b067
- Require krb5-devel for libgssapi (#1027011)
64cc84f
844c4ba
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-4
844c4ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
844c4ba
Christopher Meng d31e791
* Mon Jun 17 2013 Christopher Meng <rpm@cicku.me> - 1.2.1-3
Christopher Meng d31e791
- SPEC cleanup.
Christopher Meng d31e791
Christopher Meng 2c3ccf1
* Thu Jun 13 2013 Christopher Meng <rpm@cicku.me> - 1.2.1-2
Christopher Meng 2c3ccf1
- Fix the permission of the library.
Christopher Meng 2c3ccf1
Christopher Meng 2c3ccf1
* Sun Jun 09 2013 Christopher Meng <rpm@cicku.me> - 1.2.1-1
Christopher Meng 2c3ccf1
- Initial Package.