libserf/libserf.spec

122 lines
3.7 KiB
RPMSpec
Raw Normal View History

2013-06-16 03:12:05 +00:00
Name: libserf
Version: 1.3.8
Release: 2%{?dist}
2013-06-16 03:12:05 +00:00
Summary: High-Performance Asynchronous HTTP Client Library
License: ASL 2.0
2015-09-18 07:59:39 +00:00
URL: http://serf.apache.org/
Source0: https://archive.apache.org/dist/serf/serf-%{version}.tar.bz2
BuildRequires: apr-devel
BuildRequires: apr-util-devel
BuildRequires: krb5-devel
BuildRequires: openssl-devel
BuildRequires: zlib-devel
BuildRequires: scons
BuildRequires: pkgconfig
Patch1: serf-1.3.8-testfix.patch
Patch2: serf-1.3.8-norpath.patch
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}
Requires: apr-devel%{?_isa}
2013-06-16 03:12:05 +00:00
%description devel
2014-02-23 15:05:40 +00:00
This package contains libraries and header files for
2013-06-16 03:12:05 +00:00
developing applications that use %{name}.
%prep
2014-02-23 15:05:40 +00:00
%setup -qn serf-%{version}
%patch1 -p1 -b .testfix
%patch2 -p1 -b .norpath
# 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
scons \
CFLAGS="%{optflags}" \
PREFIX=%{_prefix} \
LIBDIR=%{_libdir} \
GSSAPI=%{_prefix} \
%{?_smp_mflags}
2013-06-16 03:12:05 +00:00
%install
scons install --install-sandbox=%{buildroot}
2014-08-12 02:43:11 +00:00
2014-02-23 15:05:40 +00:00
find %{buildroot} -name '*.*a' -delete -print
2013-06-16 03:12:05 +00:00
%check
# Use the libserf from $PWD
LD_LIBRARY_PATH=$PWD scons %{?_smp_mflags} check || true
2013-06-16 03:12:05 +00:00
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
2015-09-18 07:59:39 +00:00
%license LICENSE NOTICE
2013-06-16 03:12:05 +00:00
%{_libdir}/*.so.*
%files devel
2014-02-23 15:05:40 +00:00
%doc CHANGES README design-guide.txt
%{_includedir}/serf-1/
2013-06-16 03:12:05 +00:00
%{_libdir}/*.so
2014-02-23 15:05:40 +00:00
%{_libdir}/pkgconfig/serf*.pc
2013-06-16 03:12:05 +00:00
%changelog
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Tue Jun 23 2015 Joe Orton <jorton@redhat.com> - 1.3.8-1
- update to 1.3.8 (#1155115, #1155392)
- remove RPATHs (#1154690)
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.7-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
2014-08-12 02:43:11 +00:00
* Tue Aug 12 2014 Christopher Meng <rpm@cicku.me> - 1.3.7-1
- Update to 1.3.7
2014-06-18 04:42:16 +00:00
* Tue Jun 17 2014 Christopher Meng <rpm@cicku.me> - 1.3.6-1
- Update to 1.3.6
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2014-04-30 02:37:03 +00:00
* Wed Apr 30 2014 Christopher Meng <rpm@cicku.me> - 1.3.5-1
2014-06-18 04:42:16 +00:00
- Update to 1.3.5
2014-04-30 02:37:03 +00:00
2014-02-17 08:33:16 +00:00
* Mon Feb 17 2014 Joe Orton <jorton@redhat.com> - 1.3.4-1
2014-06-18 04:42:16 +00:00
- Update to 1.3.4
2014-02-17 08:33:16 +00:00
2013-12-10 16:44:38 +00:00
* Tue Dec 10 2013 Joe Orton <jorton@redhat.com> - 1.3.3-1
2014-06-18 04:42:16 +00:00
- Update to 1.3.3
2013-12-10 16:44:38 +00:00
* Wed Nov 6 2013 Joe Orton <jorton@redhat.com> - 1.3.2-1
2014-06-18 04:42:16 +00:00
- Update to 1.3.2
- Require krb5-devel for libgssapi (#1027011)
* 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
* 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.