| 1 | Name: libcx
|
|---|
| 2 | Summary: kLIBC Extension Library
|
|---|
| 3 | Version: 0.5.2
|
|---|
| 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 |
|
|---|
| 12 | Obsoletes: libpoll
|
|---|
| 13 | Provides: libpoll
|
|---|
| 14 |
|
|---|
| 15 | %description
|
|---|
| 16 | The kLIBC Extension Library extends the functionality of the kLIBC library
|
|---|
| 17 | by adding a number of high demand features required by modern applications.
|
|---|
| 18 |
|
|---|
| 19 | %package devel
|
|---|
| 20 | Summary: Development package for %{name}
|
|---|
| 21 | Requires: %{name} = %{version}-%{release}
|
|---|
| 22 | Requires: libc-devel exceptq-devel
|
|---|
| 23 | Requires: pkgconfig
|
|---|
| 24 |
|
|---|
| 25 | Obsoletes: libpoll-devel
|
|---|
| 26 | Provides: libpoll-devel
|
|---|
| 27 |
|
|---|
| 28 | %description devel
|
|---|
| 29 | Libraries, header files and documentation for %{name}.
|
|---|
| 30 |
|
|---|
| 31 | %debug_package
|
|---|
| 32 |
|
|---|
| 33 | %prep
|
|---|
| 34 | %scm_setup
|
|---|
| 35 |
|
|---|
| 36 | %define kmk_env \
|
|---|
| 37 | KMK_FLAGS="\
|
|---|
| 38 | KBUILD_VERBOSE=2 \
|
|---|
| 39 | BUILD_TYPE=release \
|
|---|
| 40 | INST_PREFIX=%{_prefix}"
|
|---|
| 41 |
|
|---|
| 42 | %build
|
|---|
| 43 | CFLAGS="$RPM_OPT_FLAGS"
|
|---|
| 44 | LDFLAGS="-Zhigh-mem"
|
|---|
| 45 | %{kmk_env}
|
|---|
| 46 | kmk $KMK_FLAGS CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
|
|---|
| 47 |
|
|---|
| 48 | %install
|
|---|
| 49 | rm -rf %{buildroot}
|
|---|
| 50 | %{kmk_env}
|
|---|
| 51 | kmk $KMK_FLAGS DESTDIR="%{buildroot}" install
|
|---|
| 52 | # Remove tests as we don't need them now
|
|---|
| 53 | rm -rf %{buildroot}%{_bindir}/tst-*.exe
|
|---|
| 54 | # Copy headers (@todo move it to Makefile.kmk)
|
|---|
| 55 | mkdir -p %{buildroot}%{_includedir}/sys
|
|---|
| 56 | echo "#include <sys/poll.h>" > nosys_poll.h
|
|---|
| 57 | install -m 644 nosys_poll.h %{buildroot}%{_includedir}/poll.h
|
|---|
| 58 | install -m 644 src/poll/poll.h %{buildroot}%{_includedir}/sys
|
|---|
| 59 | install -m 644 src/mmap/sys/mman.h %{buildroot}%{_includedir}/sys
|
|---|
| 60 |
|
|---|
| 61 | %clean
|
|---|
| 62 | rm -rf %{buildroot}
|
|---|
| 63 |
|
|---|
| 64 | %files
|
|---|
| 65 | %defattr(-,root,root)
|
|---|
| 66 | %doc LICENSE README.md CHANGELOG.md
|
|---|
| 67 | %{_libdir}/libcx*.dll
|
|---|
| 68 |
|
|---|
| 69 | %files devel
|
|---|
| 70 | %defattr(-,root,root)
|
|---|
| 71 | %{_libdir}/libcx*.a
|
|---|
| 72 | %{_bindir}/libcx-stats.exe
|
|---|
| 73 | %{_includedir}/poll.h
|
|---|
| 74 | %{_includedir}/sys/poll.h
|
|---|
| 75 | %{_includedir}/sys/mman.h
|
|---|
| 76 |
|
|---|
| 77 | %changelog
|
|---|
| 78 | * Mon Mar 27 2017 Dmitriy Kuminov <coding@dmik.org> 0.5.2-1
|
|---|
| 79 | - Release version 0.5.2
|
|---|
| 80 | (https://github.com/bitwiseworks/libcx/blob/0.5.2/CHANGELOG.md).
|
|---|
| 81 |
|
|---|
| 82 | * Fri Mar 24 2017 Dmitriy Kuminov <coding@dmik.org> 0.5.1-1
|
|---|
| 83 | - Release version 0.5.1
|
|---|
| 84 | (https://github.com/bitwiseworks/libcx/blob/0.5.1/CHANGELOG.md).
|
|---|
| 85 |
|
|---|
| 86 | * Fri Mar 10 2017 Dmitriy Kuminov <coding@dmik.org> 0.5.0-1
|
|---|
| 87 | - Release version 0.5.0
|
|---|
| 88 | (https://github.com/bitwiseworks/libcx/blob/0.5.0/CHANGELOG.md).
|
|---|
| 89 |
|
|---|
| 90 | * Wed Jan 18 2017 Dmitriy Kuminov <coding@dmik.org> 0.4.1-1
|
|---|
| 91 | - Release version 0.4.1
|
|---|
| 92 | (https://github.com/bitwiseworks/libcx/blob/0.4.1/CHANGELOG.md).
|
|---|
| 93 |
|
|---|
| 94 | * Thu Nov 24 2016 Dmitriy Kuminov <coding@dmik.org> 0.4-1
|
|---|
| 95 | - Release version 0.4
|
|---|
| 96 | (https://github.com/bitwiseworks/libcx/blob/0.4/CHANGELOG.md).
|
|---|
| 97 |
|
|---|
| 98 | * Mon Sep 26 2016 Dmitriy Kuminov <coding@dmik.org> 0.3.1-1
|
|---|
| 99 | - Release version 0.3.1
|
|---|
| 100 | (https://github.com/bitwiseworks/libcx/blob/0.3.1/CHANGELOG.md).
|
|---|
| 101 |
|
|---|
| 102 | * Thu Sep 22 2016 Dmitriy Kuminov <coding@dmik.org> 0.3-1
|
|---|
| 103 | - Release version 0.3
|
|---|
| 104 | (https://github.com/bitwiseworks/libcx/blob/0.3/CHANGELOG.md).
|
|---|
| 105 |
|
|---|
| 106 | * Fri Aug 19 2016 Dmitriy Kuminov <coding@dmik.org> 0.2.1-1
|
|---|
| 107 | - Release version 0.2.1
|
|---|
| 108 | (https://github.com/bitwiseworks/libcx/blob/0.2.1/CHANGELOG.md).
|
|---|
| 109 |
|
|---|
| 110 | * Mon Jul 18 2016 Dmitriy Kuminov <coding@dmik.org> 0.2-1
|
|---|
| 111 | - Release version 0.2
|
|---|
| 112 | (https://github.com/bitwiseworks/libcx/blob/0.2/CHANGELOG.md).
|
|---|
| 113 |
|
|---|
| 114 | * Fri Jun 10 2016 Dmitriy Kuminov <coding@dmik.org> 0.1-1
|
|---|
| 115 | - Initial package for version 0.1.
|
|---|