forked from apohl79/libtasks
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathlibtasks.spec
More file actions
64 lines (45 loc) · 1.34 KB
/
libtasks.spec
File metadata and controls
64 lines (45 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
57
58
59
60
61
62
63
64
Name: libtasks
Version: 1.4
Release: 1%{?dist}
Summary: An I/O task system written in modern C++ that implements the Leader/Followers pattern and uses libev as event loop.
Group: System Environment/Libraries
License: GNU GPL
URL: https://github.com/apohl79/libtasks
Source0: libtasks.tar.bz2
BuildRequires: cmake,devtoolset-2-toolchain,boost-devel,thrift,thrift-cpp-devel,libev-devel,cppunit-devel,git
Requires: thrift,boost,libev4
%description
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
rm -rf %{name}
git clone https://github.com/apohl79/libtasks.git %{name}
%build
rm -rf ${RPM_BUILD_ROOT}
cmake %{_builddir}/%{name} -DCMAKE_INSTALL_PREFIX:PATH=${RPM_BUILD_ROOT}/usr
make
%install
rm -rf $RPM_BUILD_ROOT
make install
cd ${RPM_BUILD_ROOT}/usr/lib64
ln -s %{name}.so %{name}.so.%{version}
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc
%{_libdir}/*.so
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root,-)
%doc
%{_includedir}/*
#%{_libdir}/*.so
%changelog