Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37577329
en ru br
ALT Linux repositórios
S:1.2.18-alt1_4

Group :: Sistema/Bibliotecas
RPM: libevhtp

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-macros-mageia-compat
BuildRequires: gcc-c++
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
%define major 0
%define libname libevhtp%{major}
%define develname libevhtp-devel

Name: libevhtp
Version: 1.2.18
Release: alt1_4
Summary: A more flexible replacement for libevent's http API
License: BSD
Group: System/Libraries
Url: https://criticalstack.com/
Source0: https://github.com/criticalstack/libevhtp/archive/%{version}/%{name}-%{version}.tar.gz
Patch0: libevhtp-1.2.18-fix-libraries-path.patch
BuildRequires: cmake
BuildRequires: glibc-devel
BuildRequires: pkgconfig(jemalloc)
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(libevent)
BuildRequires: pkgconfig(oniguruma)
Source44: import.info

%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 -n %{libname}
Summary: Library for %{name}
Group: System/Libraries

%description -n %{libname}
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.
This package contains library files for %{name}.

#----------------------------------------------------


%package -n %{develname}
Summary: Development files for %{name}
Group: Development/C
Requires: %{libname} = %{version}-%{release}
Provides: evhtp-devel = %{version}-%{release}
Provides: %{name}-devel = %{version}-%{release}

%description -n %{develname}
The %{develname} package contains libraries and header files for
developing applications that use %{name}.

#----------------------------------------------------


%prep
%setup -q
%patch0 -p1


%build
%{mageia_cmake} -DEVHTP_BUILD_SHARED:STRING=ON \
      -DEVHTP_USE_JEMALLOC:STRING=ON

%mageia_cmake_build

%install
%mageia_cmake_install

%files -n %{libname}
%{_libdir}/libevhtp.so.%{major}
%{_libdir}/libevhtp.so.%{version}

%files -n %{develname}
%doc ChangeLog README.markdown
%doc --no-dereference LICENSE
%{_includedir}/evhtp.h
%{_includedir}/evhtp/
%{_libdir}/libevhtp.so
%{_libdir}/pkgconfig/evhtp.pc
%{_libdir}/cmake/libevhtp/


%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009