Initial SETUP.

This commit is contained in:
Christopher Meng 2013-06-16 11:12:05 +08:00
parent 97ed6d375f
commit 2c3ccf15e2
3 changed files with 79 additions and 0 deletions

1
.gitignore vendored
View File

@ -0,0 +1 @@
/serf-1.2.1.tar.bz2

77
libserf.spec Normal file
View File

@ -0,0 +1,77 @@
%global oname serf
Name: libserf
Version: 1.2.1
Release: 2%{?dist}
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
BuildRequires: glibc-devel
BuildRequires: autoconf
BuildRequires: apr-util-devel
BuildRequires: apr-devel
BuildRequires: krb5-devel
BuildRequires: libtool
BuildRequires: libgssapi-devel
BuildRequires: openssl-devel
BuildRequires: pkgconfig
BuildRequires: zlib-devel
%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-util-devel
Requires: apr-devel
Requires: krb5-devel
Requires: libgssapi-devel
Requires: openssl-devel
Requires: zlib-devel
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q -n %{oname}-%{version}
sed -i 's|644 $(TARGET_LIB)|755 $(TARGET_LIB)|g' Makefile.in
%build
autoreconf -fiv
export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags}"
%configure --with-gssapi=%{_prefix}
make %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot}
find %{buildroot} -name '*.*a' -exec rm -f {} ';'
%check
make check
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%doc CHANGES LICENSE NOTICE README design-guide.txt
%{_libdir}/*.so.*
%files devel
%{_includedir}/%{oname}*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/%{oname}*.pc
%changelog
* 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.

View File

@ -0,0 +1 @@
4f8e76c9c6567aee1d66aba49f76a58b serf-1.2.1.tar.bz2