forked from mheily/libkqueue
-
Notifications
You must be signed in to change notification settings - Fork 3
/
libkqueue.spec
89 lines (68 loc) · 2.64 KB
/
libkqueue.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
Name: libkqueue
Summary: Userspace implementation of the kqueue event notification mechanism
Version: 2.0.1
Release: 1
# The entire source code is MIT, event.h which is BSD (2-clause)
License: MIT and BSD
Group: System Environment/Libraries
URL: http://sourceforge.net/p/libkqueue/wiki/Home/
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Provides: libkqueue.so.0
%description
A user space implementation of the kqueue(2) kernel event notification
mechanism. libkqueue acts as a translator between the kevent structure and the
native kernel facilities.
%package devel
Group: Development/Libraries
Summary: Development files for %{name}-%{version}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
%{summary}
%prep
%setup -q
# %%{configure} sets --target 'x86_64-redhat-linux-gnu' instead of 'linux'
%build
CFLAGS="%{optflags} -fpic" %{_configure} --prefix=%{_prefix} --libdir=%{_libdir}
make
%install
%{make_install}
%check
make check
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%doc LICENSE
%{_libdir}/libkqueue.so.*
%files devel
%dir %{_includedir}/kqueue
%dir %{_includedir}/kqueue/sys
%{_libdir}/libkqueue.so
%{_includedir}/kqueue/sys/event.h
%{_libdir}/pkgconfig/libkqueue.pc
%{_mandir}/man2/kqueue.2.*
%{_mandir}/man2/kevent.2.*
%changelog
* Wed May 08 2013 Mark Heily <[email protected]> - 2.0.1-1
- New upstream release
* Wed May 01 2013 Eric Radman <[email protected]> - 2.0-1
- Adapt to libkqueue 2.0
* Thu Apr 04 2013 Eric Radman <[email protected]> - 1.0.1-6
- Set CFLAGS using optflags since we're using a custom configure
- Shorten summary
* Wed Apr 03 2013 Eric Radman <[email protected]> - 1.0.1-5
- Use %% to avoid warning about special character in comment
- Remove defattr
* Fri Jan 18 2013 Eric Radman <[email protected]> - 1.0.1-4
- Configure respects CFLAGS and LDFLAGS. Also pass --libdir to the configure script
* Sat Jan 12 2013 Eric Radman <[email protected]> - 1.0.1-3
- Add license text for event.h
- Use the dir macro for the include directories
- Remove static package, exclude .a file, and make sure new directories are owned by the RPM
* Thu Jan 03 2013 Eric Radman <[email protected]> - 1.0.1-3
- Configure respects CFLAGS and LDFLAGS. Also pass --libdir= to the configure script instead of setting LIB
* Mon Dec 31 2012 Eric Radman <[email protected]> - 1.0.1-2
- Do not set the buildroot (F-10 does not require it)
- Do not manually clean (F-13)
* Thu Dec 27 2012 Eric Radman <[email protected]> - 1.0.1-1
- Initial build with separate -devel package. Based on work done by Mark Heily,
Aditya Patawari and John Haxby