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