/[smecontribs]/rpms/libevhtp/contribs9/libevhtp.spec
ViewVC logotype

Contents of /rpms/libevhtp/contribs9/libevhtp.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Tue Feb 20 02:29:58 2018 UTC (6 years, 3 months ago) by jpp
Branch: MAIN
CVS Tags: libevhtp-1_2_11n-3_el6_sme
*** empty log message ***

1 %define major 1
2 %define libname evhtp-lib
3 %define develname evhtp-devel
4 %define release 3
5
6 Name: libevhtp
7 Version: 1.2.11n
8 Release: %{release}%{dist}
9 Summary: A more flexible replacement for libevent's http API
10 License: BSD
11 Group: System/Libraries
12 Url: https://github.com/ellzey/libevhtp
13 Source0: https://github.com/ellzey/libevhtp/archive/%{version}/%{name}-%{version}.tar.gz
14 Patch0: libevhtp-1.2.11-soname-and-pkgconfig.patch
15 Patch1: libevhtp-1.2.11-internal-header-files-path.patch
16 BuildRequires: cmake
17 BuildRequires: glibc-devel
18 BuildRequires: pkgconfig(openssl)
19 BuildRequires: pkgconfig(libevent)
20 BuildRequires: gcc-c++
21
22 %description
23 Libevhtp was created as a replacement API for Libevent's current
24 HTTP API. The reality of libevent's http interface is that it
25 was created as a JIT server, meaning the developer never thought
26 of it being used for creating a full-fledged HTTP service.
27 Infact I am under the impression that the libevent http API was
28 designed almost as an example of what you can do with libevent.
29 It's not Apache in a box, but more and more developers are
30 attempting to use it as so.
31
32 #----------------------------------------------------
33
34 %package -n %{libname}
35 Summary: Library for %{name}
36 Group: System/Libraries
37
38 %description -n %{libname}
39 Libevhtp was created as a replacement API for Libevent's current
40 HTTP API. The reality of libevent's http interface is that it
41 was created as a JIT server, meaning the developer never thought
42 of it being used for creating a full-fledged HTTP service.
43 Infact I am under the impression that the libevent http API was
44 designed almost as an example of what you can do with libevent.
45 It's not Apache in a box, but more and more developers are
46 attempting to use it as so.
47 This package contains library files for %{name}.
48
49 #----------------------------------------------------
50
51 %package -n %{develname}
52 Summary: Development files for %{name}
53 Group: Development/C
54 Requires: %{libname} = %{version}-%{release}
55 Provides: evhtp-devel = %{version}-%{release}
56 Provides: %{name}-devel = %{version}-%{release}
57
58 %description -n %{develname}
59 The %{develname} package contains libraries and header files for
60 developing applications that use %{name}.
61
62 #----------------------------------------------------
63
64 %prep
65 %setup -q
66 %autopatch -p1
67
68 %build
69 %cmake -DEVHTP_BUILD_SHARED:STRING=ON
70 make
71
72 %install
73 %make_install
74
75 %files
76 %doc ChangeLog README.markdown
77 %doc LICENSE
78 %{_libdir}/libevhtp.so.%{major}.*
79
80 %files -n %{libname}
81 %{_libdir}/libevhtp.so.%{major}.*
82
83 %files -n %{develname}
84 %doc ChangeLog README.markdown
85 %doc LICENSE
86 %{_includedir}/evhtp/
87 %{_libdir}/libevhtp.so
88 %{_prefix}/lib/pkgconfig/evhtp.pc
89 #%{_libdir}/pkgconfig/evhtp.pc
90
91
92 %changelog
93 * Mon Feb 19 2018 Jean-Philippe Pialasse <tests@pialasse.com> - 1.2.11n-3
94 - first import for SME Server
95 - tidy the spec file to get it build with mock
96
97 * Wed Feb 15 2017 mrambo3501 <mrambo3501> 1.2.11n-2.mga6
98 + Revision: 1086231
99 - rebuild for new libevent
100
101 * Thu May 12 2016 daviddavid <daviddavid> 1.2.11n-1.mga6
102 + Revision: 1014272
103 - initial package libevhtp
104

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed