Files
libevhtp/libevhtp.spec

84 lines
2.5 KiB
RPMSpec
Raw Permalink Normal View History

#
# 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 http://bugs.opensuse.org/
#
#%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
Url: https://github.com/ellzey/libevhtp
Source0: %{name}-%{version}.tar.gz
#Source0: https://github.com/ellzey/libevhtp/archive/%{commit}/%{name}-%{version}-%{shortcommit}.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
%description
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
%prep
%setup -q
%patch0
%build
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_INSTALL_DIR=%{_libdir} \
-DEVHTP_BUILD_SHARED=ON .
make %{?_smp_mflags}
%install
%make_install
%files
%defattr(-,root,root)
#%doc LICENSE
%{_libdir}/%{name}.so
%files devel
%defattr(-,root,root)
%doc ChangeLog LICENSE README.markdown
%{_includedir}/*.h
%changelog