1 | Name: libcx
|
---|
2 | Summary: kLIBC Extension Library
|
---|
3 | Version: 0.6.1
|
---|
4 | Release: 2%{?dist}
|
---|
5 | License: LGPLv2.1+
|
---|
6 | Group: System/Libraries
|
---|
7 | Vendor: bww bitwise works GmbH
|
---|
8 | URL: https://github.com/bitwiseworks/libcx
|
---|
9 |
|
---|
10 | %scm_source github https://github.com/bitwiseworks/libcx 9e8e69cfbd12f8c7b12a7a43b009186c5aa358e5
|
---|
11 |
|
---|
12 | Obsoletes: libpoll
|
---|
13 | Provides: libpoll
|
---|
14 |
|
---|
15 | # Due to patch from kLIBC #366
|
---|
16 | Requires: libc >= 0.6.6-35
|
---|
17 |
|
---|
18 | %description
|
---|
19 | The kLIBC Extension Library extends the functionality of the kLIBC library
|
---|
20 | by adding a number of high demand features required by modern applications.
|
---|
21 |
|
---|
22 | %package devel
|
---|
23 | Summary: Development package for %{name}
|
---|
24 | Requires: %{name} = %{version}-%{release}
|
---|
25 | Requires: libc-devel exceptq-devel
|
---|
26 | Requires: pkgconfig
|
---|
27 |
|
---|
28 | Obsoletes: libpoll-devel
|
---|
29 | Provides: libpoll-devel
|
---|
30 |
|
---|
31 | %description devel
|
---|
32 | Libraries, header files and documentation for %{name}.
|
---|
33 |
|
---|
34 | %debug_package
|
---|
35 |
|
---|
36 | %prep
|
---|
37 | %scm_setup
|
---|
38 |
|
---|
39 | %global kmk_flags CFLAGS="%{optflags}" LDFLAGS=-Zhigh-mem KBUILD_VERBOSE=2 BUILD_TYPE=release INST_PREFIX="%{_prefix}"
|
---|
40 |
|
---|
41 | %build
|
---|
42 | kmk %{kmk_flags}
|
---|
43 |
|
---|
44 | %install
|
---|
45 | %{__rm} -rf %{buildroot}
|
---|
46 | kmk %{kmk_flags} DESTDIR="%{buildroot}" install
|
---|
47 | # Remove tests as we don't need them now
|
---|
48 | %{__rm} -rf %{buildroot}%{_bindir}/tst-*.exe
|
---|
49 | # Copy headers (@todo move it to Makefile.kmk)
|
---|
50 | %{__mkdir_p} %{buildroot}%{_includedir}/sys %{buildroot}%{_includedir}/libcx
|
---|
51 | echo "#include <sys/poll.h>" > nosys_poll.h
|
---|
52 | %{__install} -m 644 nosys_poll.h %{buildroot}%{_includedir}/poll.h
|
---|
53 | %{__install} -m 644 src/poll/poll.h %{buildroot}%{_includedir}/sys
|
---|
54 | %{__install} -m 644 src/mmap/sys/mman.h %{buildroot}%{_includedir}/sys
|
---|
55 | %{__install} -m 644 src/exeinfo/libcx/exeinfo.h %{buildroot}%{_includedir}/libcx
|
---|
56 | %{__install} -m 644 src/spawn/libcx/spawn2.h %{buildroot}%{_includedir}/libcx
|
---|
57 | # Dir for LIBCx assertion logs
|
---|
58 | %{__mkdir_p} %{buildroot}%{_var}/log/libcx
|
---|
59 |
|
---|
60 | %check
|
---|
61 | kmk %{kmk_flags} test
|
---|
62 |
|
---|
63 | %clean
|
---|
64 | rm -rf %{buildroot}
|
---|
65 |
|
---|
66 | %files
|
---|
67 | %defattr(-,root,root)
|
---|
68 | %doc LICENSE README.md CHANGELOG.md
|
---|
69 | %{_libdir}/libcx*.dll
|
---|
70 | %{_libdir}/libcx-spawn2.wrp
|
---|
71 | %dir %{_var}/log/libcx
|
---|
72 |
|
---|
73 | %files devel
|
---|
74 | %defattr(-,root,root)
|
---|
75 | %{_libdir}/libcx*.a
|
---|
76 | %{_bindir}/libcx-stats.exe
|
---|
77 | %{_includedir}/poll.h
|
---|
78 | %{_includedir}/sys/poll.h
|
---|
79 | %{_includedir}/sys/mman.h
|
---|
80 | %{_includedir}/libcx/exeinfo.h
|
---|
81 | %{_includedir}/libcx/spawn2.h
|
---|
82 |
|
---|
83 | %changelog
|
---|
84 | * Mon Jan 8 2018 Dmitriy Kuminov <coding@dmik.org> 0.6.1-2
|
---|
85 | - Add missing header libcx/spawn2.h.
|
---|
86 | - Enable tests at build time (fixed).
|
---|
87 |
|
---|
88 | * Wed Dec 27 2017 Dmitriy Kuminov <coding@dmik.org> 0.6.1-1
|
---|
89 | - Release version 0.6.1
|
---|
90 | (https://github.com/bitwiseworks/libcx/blob/0.6.1/CHANGELOG.md).
|
---|
91 | - Add check section to run tests.
|
---|
92 |
|
---|
93 | * Tue Aug 29 2017 Dmitriy Kuminov <coding@dmik.org> 0.6.0-1
|
---|
94 | - Release version 0.6.0
|
---|
95 | (https://github.com/bitwiseworks/libcx/blob/0.6.0/CHANGELOG.md).
|
---|
96 | - Add check section to run tests.
|
---|
97 |
|
---|
98 | * Fri Jun 2 2017 Dmitriy Kuminov <coding@dmik.org> 0.5.3-1
|
---|
99 | - Release version 0.5.3
|
---|
100 | (https://github.com/bitwiseworks/libcx/blob/0.5.3/CHANGELOG.md).
|
---|
101 |
|
---|
102 | * Mon Mar 27 2017 Dmitriy Kuminov <coding@dmik.org> 0.5.2-1
|
---|
103 | - Release version 0.5.2
|
---|
104 | (https://github.com/bitwiseworks/libcx/blob/0.5.2/CHANGELOG.md).
|
---|
105 |
|
---|
106 | * Fri Mar 24 2017 Dmitriy Kuminov <coding@dmik.org> 0.5.1-1
|
---|
107 | - Release version 0.5.1
|
---|
108 | (https://github.com/bitwiseworks/libcx/blob/0.5.1/CHANGELOG.md).
|
---|
109 |
|
---|
110 | * Fri Mar 10 2017 Dmitriy Kuminov <coding@dmik.org> 0.5.0-1
|
---|
111 | - Release version 0.5.0
|
---|
112 | (https://github.com/bitwiseworks/libcx/blob/0.5.0/CHANGELOG.md).
|
---|
113 |
|
---|
114 | * Wed Jan 18 2017 Dmitriy Kuminov <coding@dmik.org> 0.4.1-1
|
---|
115 | - Release version 0.4.1
|
---|
116 | (https://github.com/bitwiseworks/libcx/blob/0.4.1/CHANGELOG.md).
|
---|
117 |
|
---|
118 | * Thu Nov 24 2016 Dmitriy Kuminov <coding@dmik.org> 0.4-1
|
---|
119 | - Release version 0.4
|
---|
120 | (https://github.com/bitwiseworks/libcx/blob/0.4/CHANGELOG.md).
|
---|
121 |
|
---|
122 | * Mon Sep 26 2016 Dmitriy Kuminov <coding@dmik.org> 0.3.1-1
|
---|
123 | - Release version 0.3.1
|
---|
124 | (https://github.com/bitwiseworks/libcx/blob/0.3.1/CHANGELOG.md).
|
---|
125 |
|
---|
126 | * Thu Sep 22 2016 Dmitriy Kuminov <coding@dmik.org> 0.3-1
|
---|
127 | - Release version 0.3
|
---|
128 | (https://github.com/bitwiseworks/libcx/blob/0.3/CHANGELOG.md).
|
---|
129 |
|
---|
130 | * Fri Aug 19 2016 Dmitriy Kuminov <coding@dmik.org> 0.2.1-1
|
---|
131 | - Release version 0.2.1
|
---|
132 | (https://github.com/bitwiseworks/libcx/blob/0.2.1/CHANGELOG.md).
|
---|
133 |
|
---|
134 | * Mon Jul 18 2016 Dmitriy Kuminov <coding@dmik.org> 0.2-1
|
---|
135 | - Release version 0.2
|
---|
136 | (https://github.com/bitwiseworks/libcx/blob/0.2/CHANGELOG.md).
|
---|
137 |
|
---|
138 | * Fri Jun 10 2016 Dmitriy Kuminov <coding@dmik.org> 0.1-1
|
---|
139 | - Initial package for version 0.1.
|
---|