diff --git a/.gitignore b/.gitignore index e69de29..b94af28 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/serf-1.2.1.tar.bz2 diff --git a/libserf.spec b/libserf.spec new file mode 100644 index 0000000..49a31c9 --- /dev/null +++ b/libserf.spec @@ -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 - 1.2.1-2 +- Fix the permission of the library. + +* Sun Jun 09 2013 Christopher Meng - 1.2.1-1 +- Initial Package. diff --git a/sources b/sources index e69de29..c73bbab 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +4f8e76c9c6567aee1d66aba49f76a58b serf-1.2.1.tar.bz2