Skip to content

Commit bafebc2

Browse files
committed
Add RPM spec file in contrib directory.
Make it simple for people with RPM based systems to install the header files.
1 parent 8ca59eb commit bafebc2

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

contrib/cpp-netlib-devel.spec

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
Name: cpp-netlib-devel
2+
Version: 0.9.4
3+
Release: 1%{?dist}
4+
Summary: The C++ Network Library Project
5+
License: Boost
6+
URL: http://cpp-netlib.org/
7+
Source: https://github.com/downloads/cpp-netlib/cpp-netlib/cpp-netlib-%{version}.tar.gz
8+
BuildArch: noarch
9+
10+
%description
11+
The project aims to build upon the latest C++ standard (currently
12+
C++11) to provide easy to use libraries for network programming. We use
13+
the latest compiler versions and features with an eye on pushing the
14+
boundaries on leveraging what's available in C++.
15+
16+
Currently the library contains an HTTP client and server implementation,
17+
a stand-alone URI library, a network message framework, and some
18+
concurrency tools.
19+
20+
%prep
21+
%setup -q -n cpp-netlib-%{version}
22+
23+
%build
24+
25+
# The source file will contain the header files needed, so there is no need to build anything
26+
27+
%install
28+
mkdir -p %{buildroot}%{_includedir}
29+
tar cf - boost | (cd %{buildroot}%{_includedir}; tar xf -)
30+
31+
%files
32+
%doc RATIONALE.txt README.rst
33+
%license LICENSE_1_0.txt
34+
%{_includedir}/boost
35+
36+
%changelog
37+
* Fri Jul 15 2016 Håkon Løvdal <[email protected]> - 0.9.4-1
38+
- Created

0 commit comments

Comments
 (0)