forked from etr/libhttpserver
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlibhttpserver.SPEC.in
More file actions
56 lines (48 loc) · 1.34 KB
/
libhttpserver.SPEC.in
File metadata and controls
56 lines (48 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
%define _topdir @abs_builddir@
%define name libhttpserver
%define version @VERSION@
%define buildroot %{_topdir}/%{name}-%{version}-root
Name: %{name}
Release: 1
Version: %{version}
Summary: library embedding RESTful HTTP server functionality
Group: Development/Libraries
License: LGPL 2.1
URL: https://github.com/etr/libhttpserver
Source: @abs_builddir@/%{name}-%{version}.tar.gz
Vendor: Zencoders
Prefix: /usr
BuildRoot: %{buildroot}
Packager: Sebastiano Merlino <merlino.sebastiano@gmail.com>
BuildRequires: libmicrohttpd >= 0.9.7
Requires: libmicrohttpd >= 0.9.7
%description
libhttpserver is a small C++ library for embedding RESTful HTTP server functionality into applications.
%package devel
Summary: Development files
BuildRequires: libmicrohttpd >= 0.9.7, libmicrohttpd-devel >= 0.9.7
Group: Development/Libraries
Requires: libmicrohttpd >= 0.9.7, libmicrohttpd-devel >= 0.9.7
%description devel
libhttpserver is a small C++ library for embedding RESTful HTTP server functionality into applications.
This package contains development files and headers.
%prep
%setup
%build
mkdir build
cd build
../configure --prefix=$RPM_BUILD_ROOT/usr
make
%install
cd build
make install
rm $RPM_BUILD_ROOT/usr/lib/libhttpserver.la
%files
%defattr(-,root,root)
/usr/lib/*.so.*
%files devel
%defattr(-,root,root)
/usr/include
/usr/lib/*.a
/usr/lib/*.so
/usr/lib/pkgconfig