-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathcocaine-framework-native-bf.spec
72 lines (55 loc) · 1.53 KB
/
cocaine-framework-native-bf.spec
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
65
66
67
68
69
70
71
72
Summary: Cocaine - Native Framework
Name: cocaine-framework-native
Version: 0.11.1.2
Release: 2%{?dist}
License: GPLv2+
Group: System Environment/Libraries
URL: http://reverbrain.com
Source0: http://repo.reverbrain.com/sources/cocaine-framework-native/%{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: boost-devel
BuildRequires: libev-devel
BuildRequires: msgpack-devel
BuildRequires: libcocaine-core2-devel
%if %{defined rhel} && 0%{?rhel} < 7
BuildRequires: cmake28
%else
BuildRequires: cmake
%endif
%description
A simple framework to ease the development of native Cocaine apps
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: libcocaine-core2-devel
%description devel
This package contains libraries, header files and developer documentation
needed for developing native Cocaine apps.
%prep
%setup -q
%build
%if %{defined rhel} && 0%{?rhel} < 7
%{cmake28} -DCOCAINE_LIBDIR=%{_libdir} .
%else
%{cmake} -DCOCAINE_LIBDIR=%{_libdir} .
%endif
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc README.md
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root,-)
%{_includedir}/cocaine/framework/*
%{_libdir}/*.so
%changelog
* Thu Jul 25 2013 Arkady L. Shane <[email protected]> - 0.10.5.5-1
- initial build