-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathlibuv.spec
More file actions
79 lines (64 loc) · 1.74 KB
/
libuv.spec
File metadata and controls
79 lines (64 loc) · 1.74 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
Name: libuv
Epoch: 1
Version: %{libuv_version}
Release: 1%{?dist}
Summary: Cross-platform asychronous I/O
Group: Development/Tools
License: MIT, BSD and ISC
URL: http://http://libuv.org/
Source0: %{name}-v%{version}.tar.gz
Source1: libuv.pc.in
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: autoconf >= 2.59
BuildRequires: automake >= 1.9.6
BuildRequires: libtool >= 1.5.22
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
%description
A multi-platform support library with a focus on asynchronous I/O. It was primarily developed for use by Node.js, but it’s also used by Luvit, Julia, pyuv, and others.
%package devel
Summary: Development libraries for libuv
Group: Development/Tools
Requires: %{name} = %{epoch}:%{version}-%{release}
Requires: pkgconfig
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
%description devel
Development libraries for libuv
%prep
%setup -qn %{name}-%{version}
%build
export CFLAGS='%{optflags}'
export CXXFLAGS='%{optflags}'
sh autogen.sh
%configure
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make DESTDIR=%{buildroot} install
mkdir -p %{buildroot}/%{_libdir}/pkgconfig
sed -e "s#@prefix@#%{_prefix}#g" \
-e "s#@exec_prefix@#%{_exec_prefix}#g" \
-e "s#@libdir@#%{_libdir}#g" \
-e "s#@includedir@#%{_includedir}#g" \
-e "s#@version@#%{version}#g" \
%SOURCE1 > %{buildroot}/%{_libdir}/pkgconfig/libuv.pc
%clean
rm -rf %{buildroot}
%check
# make check
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc README.md AUTHORS LICENSE
%{_libdir}/*.so
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root)
%doc README.md AUTHORS LICENSE
%{_includedir}/*.h
%{_libdir}/*.a
%{_libdir}/*.la
%{_libdir}/pkgconfig/*.pc
%changelog