1 | %global oname serf |
---|
2 | |
---|
3 | Name: libserf |
---|
4 | Version: 1.3.8 |
---|
5 | Release: 2%{?_dist_release} |
---|
6 | Summary: High-Performance Asynchronous HTTP Client Library |
---|
7 | Summary(ja): 高性能な非同期 HTTP クライアントのライブラリ |
---|
8 | License: ASL 2.0 |
---|
9 | Group: System Environment/Libraries |
---|
10 | URL: http://code.google.com/p/serf |
---|
11 | Source0: https://serf.googlecode.com/files/serf-%{version}.tar.bz2 |
---|
12 | |
---|
13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
14 | BuildRequires: apr-devel |
---|
15 | BuildRequires: apr-util-devel |
---|
16 | BuildRequires: krb5-devel |
---|
17 | BuildRequires: openssl-devel |
---|
18 | BuildRequires: pkgconfig |
---|
19 | BuildRequires: scons |
---|
20 | BuildRequires: zlib-devel |
---|
21 | |
---|
22 | %description |
---|
23 | The serf library is a C-based HTTP client library built upon the Apache |
---|
24 | Portable Runtime (APR) library. It multiplexes connections, running the |
---|
25 | read/write communication asynchronously. Memory copies and transformations are |
---|
26 | kept to a minimum to provide high performance operation. |
---|
27 | |
---|
28 | %package devel |
---|
29 | Summary: Development files for %{name} |
---|
30 | Summary(ja): %{name} の開発用ファイル群 |
---|
31 | Group: Development/Libraries |
---|
32 | Requires: %{name}%{?_isa} = %{version}-%{release} |
---|
33 | Requires: apr-devel%{?_isa} |
---|
34 | |
---|
35 | %description devel |
---|
36 | The %{name}-devel package contains libraries and header files for |
---|
37 | developing applications that use %{name}. |
---|
38 | |
---|
39 | %prep |
---|
40 | %setup -q -n %{oname}-%{version} |
---|
41 | |
---|
42 | # Shared library versioning support in scons is worse than awful... |
---|
43 | # minimally, here fix the soname to match serf-1.2.x. Minor version |
---|
44 | # handling should be fixed too; really requires better upstream support: |
---|
45 | # http://scons.tigris.org/issues/show_bug.cgi?id=2869 |
---|
46 | sed -i '/SHLIBVERSION/s/MAJOR/0/' SConstruct |
---|
47 | |
---|
48 | %build |
---|
49 | scons \ |
---|
50 | CFLAGS="%{optflags}" \ |
---|
51 | PREFIX=%{_prefix} \ |
---|
52 | LIBDIR=%{_libdir} \ |
---|
53 | GSSAPI=%{_prefix} \ |
---|
54 | %{?_smp_mflags} |
---|
55 | |
---|
56 | %install |
---|
57 | scons install --install-sandbox=%{buildroot} |
---|
58 | find %{buildroot} -name '*.*a' -exec rm -vf {} ';' |
---|
59 | |
---|
60 | %check |
---|
61 | scons %{?_smp_mflags} check || true |
---|
62 | |
---|
63 | %post -p /sbin/ldconfig |
---|
64 | |
---|
65 | %postun -p /sbin/ldconfig |
---|
66 | |
---|
67 | %files |
---|
68 | %doc CHANGES LICENSE NOTICE README design-guide.txt |
---|
69 | %{_libdir}/*.so.* |
---|
70 | |
---|
71 | %files devel |
---|
72 | %{_includedir}/%{oname}-1/ |
---|
73 | %{_libdir}/*.so |
---|
74 | %{_libdir}/pkgconfig/%{oname}*.pc |
---|
75 | |
---|
76 | %changelog |
---|
77 | * Sun May 15 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.3.8-2 |
---|
78 | - rebuild with openssl-1.0.2 |
---|
79 | |
---|
80 | * Sat Dec 13 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 1.3.8-1 |
---|
81 | - updated to 1.3.8 |
---|
82 | |
---|
83 | * Sun Mar 16 2014 NAKAMURA Kenta <kenta@vinelinux.org> - 1.3.4-2 |
---|
84 | - initial build for Vine Linux |
---|
85 | |
---|
86 | * Mon Feb 17 2014 Joe Orton <jorton@redhat.com> - 1.3.4-1 |
---|
87 | - update to 1.3.4 |
---|
88 | |
---|
89 | * Tue Dec 10 2013 Joe Orton <jorton@redhat.com> - 1.3.3-1 |
---|
90 | - update to 1.3.3 |
---|
91 | |
---|
92 | * Wed Nov 6 2013 Joe Orton <jorton@redhat.com> - 1.3.2-1 |
---|
93 | - update to 1.3.2 |
---|
94 | - require krb5-devel for libgssapi (#1027011) |
---|
95 | |
---|
96 | * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-4 |
---|
97 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild |
---|
98 | |
---|
99 | * Mon Jun 17 2013 Christopher Meng <rpm@cicku.me> - 1.2.1-3 |
---|
100 | - SPEC cleanup. |
---|
101 | |
---|
102 | * Thu Jun 13 2013 Christopher Meng <rpm@cicku.me> - 1.2.1-2 |
---|
103 | - Fix the permission of the library. |
---|
104 | |
---|
105 | * Sun Jun 09 2013 Christopher Meng <rpm@cicku.me> - 1.2.1-1 |
---|
106 | - Initial Package. |
---|