File libevhtp.spec of Package libevhtp

# spec file for package libevhtp
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

#%define commit a70c9facfee07e6900a21d5a8ab8df260f64162f
#%define shortcommit %(c=%{commit}; echo ${c:0:7})
#%define tag v1.2.8

Name:           libevhtp
Summary:        A more flexible replacement for libevent's httpd API
Version:        1.2.8
Release:        0
License:        BSD-3-Clause
Group:          System/Libraries
Source0:        %{name}-%{version}.tar.gz
# Patch-SUSE: fix lib installdir
Patch0:         %{name}-libdir.patch
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  libevent-devel
BuildRequires:  libtool
BuildRequires:  openssl-devel

Libevhtp was created as a replacement API for Libevent's current HTTP API.
The reality of libevent's http interface is that it was created as a JIT
server, meaning the developer never thought of it being used for creating
a full-fledged HTTP service. Infact I am under the impression that the
libevent http API was designed almost as an example of what you can do with
libevent. It's not Apache in a box, but more and more developers are
attempting to use it as so.

%package devel
Summary:        Development files for libevhtp
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}

%description devel
The libraries and header files for developing applications that
 use libevhtp

%setup -q

cmake -DCMAKE_BUILD_TYPE=Release \
 -DLIB_INSTALL_DIR=%{_libdir} \
#make %{?_smp_mflags}



%files devel
%doc ChangeLog LICENSE README.markdown