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