libserf/libserf.spec

Name: libserf
Summary: HTTP client library written in C using apr
Version: 0.3.0
Release: 1
License: Apache License 2.0
Group: Development/Libraries
URL: http://code.google.com/p/serf/
Description: HTTP client library written in C using apr.

CentOS 7 x86_64

The build was succesful. The following RPMs were generated:

Build Status

CentOS 6 x86_64

The build was succesful. The following RPMs were generated:

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: cmr
# Upstream: <serf-dev@googlegroups.com>

%define real_name serf

Summary: HTTP client library written in C using apr
Name: libserf
Version: 0.3.0
Release: 1%{?dist}
License: Apache License 2.0
Group: Development/Libraries
URL: http://code.google.com/p/serf/

Source: http://serf.googlecode.com/files/serf-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: apr-devel
BuildRequires: apr-util-devel
BuildRequires: openssl-devel
Requires: apr
Requires: apr-util
Requires: openssl

%description
HTTP client library written in C using apr.

%package devel
Summary: Header files, libraries and development documentation for %{name}.
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}

%description devel
This package contains the header files, static libraries and development
documentation for %{name}. If you like to develop programs using %{name},
you will need to install %{name}-devel.

%prep
%setup -n %{real_name}-%{version}

%build
%configure --disable-static
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%{__make} install DESTDIR="%{buildroot}"

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc README
%{_libdir}/libserf-0.so.*

%files devel
%defattr(-, root, root, 0755)
%{_includedir}/serf.h
%{_includedir}/serf_bucket_types.h
%{_includedir}/serf_bucket_util.h
%{_includedir}/serf_declare.h
%{_libdir}/libserf-0.so
%exclude %{_libdir}/libserf-0.a
%exclude %{_libdir}/libserf-0.la

%changelog
* Fri May 08 2009 Christoph Maser <cmr@financial.com> - 0.3.0-1
- Initial package.