diff --git a/README.md b/README.md index 41a04a4..b6a726c 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libserf +The serf library is a high performance C-based HTTP client library built upon the Apache Portable Runtime (APR) library. + diff --git a/libserf.spec b/libserf.spec new file mode 100644 index 0000000..13ed024 --- /dev/null +++ b/libserf.spec @@ -0,0 +1,85 @@ +Name: libserf +Version: 1.3.4 +Release: 1mamba +Summary: High-performance asynchronous HTTP client library +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Stefano Cotta Ramusino +URL: https://code.google.com/p/serf/ +Source: http://serf.googlecode.com/svn/src_releases/serf-%{version}.tar.bz2 +License: Apache License 2.0 +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libapr-devel +BuildRequires: libaprutil-devel +BuildRequires: libdb47 +BuildRequires: libe2fs-devel +BuildRequires: libexpat-devel +BuildRequires: libgdbm-devel +BuildRequires: libkeyutils-devel +BuildRequires: libkrb5-devel +BuildRequires: libopenldap-devel +BuildRequires: libopenssl-devel +BuildRequires: libuuid-devel +BuildRequires: libz-devel +## AUTOBUILDREQ-END +BuildRequires: scons +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +The serf library is a high performance C-based HTTP client library built upon the Apache Portable Runtime (APR) library. + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%prep +%setup -q -n serf-%{version} +sed -i '/SHLIBVERSION/s,MAJOR,0,' SConstruct + +%build +scons \ + PREFIX=%{_prefix} \ + LIBDIR=%{_libdir} \ + APR=%{_prefix} \ + OPENSSL=%{_prefix} \ + ZLIB=%{_prefix} \ + GSSAPI=%{_prefix} \ + CFLAGS="%{optflags}" \ + APR_STATIC=no + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +scons install --install-sandbox=%{buildroot} +find %{buildroot} -name '*.*a' -exec rm -vf {} ';' + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/*.so.* +%doc LICENSE + +%files devel +%defattr(-,root,root) +%{_includedir}/* +%{_libdir}/*.so +%{_libdir}/pkgconfig/*.pc +%doc CHANGES README NOTICE design-guide.txt + +%changelog +* Sun Mar 30 2014 Silvan Calarco 1.3.4-1mamba +- update to 1.3.4 + +* Thu Nov 28 2013 Stefano Cotta Ramusino 1.3.2-1mamba +- package created using the webbuild interface \ No newline at end of file