source: spec/trunk/SPECS/libcx.spec@ 1129

Last change on this file since 1129 was 1070, checked in by dmik, 9 years ago

spec: libcx: Release version 0.5.2-1.

File size: 3.2 KB
Line 
1Name: libcx
2Summary: kLIBC Extension Library
3Version: 0.5.2
4Release: 1%{?dist}
5License: LGPLv2.1+
6Group: System/Libraries
7Vendor: bww bitwise works GmbH
8URL: https://github.com/bitwiseworks/libcx
9
10%scm_source github https://github.com/bitwiseworks/libcx %{version}
11
12Obsoletes: libpoll
13Provides: libpoll
14
15%description
16The kLIBC Extension Library extends the functionality of the kLIBC library
17by adding a number of high demand features required by modern applications.
18
19%package devel
20Summary: Development package for %{name}
21Requires: %{name} = %{version}-%{release}
22Requires: libc-devel exceptq-devel
23Requires: pkgconfig
24
25Obsoletes: libpoll-devel
26Provides: libpoll-devel
27
28%description devel
29Libraries, 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
43CFLAGS="$RPM_OPT_FLAGS"
44LDFLAGS="-Zhigh-mem"
45%{kmk_env}
46kmk $KMK_FLAGS CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
47
48%install
49rm -rf %{buildroot}
50%{kmk_env}
51kmk $KMK_FLAGS DESTDIR="%{buildroot}" install
52# Remove tests as we don't need them now
53rm -rf %{buildroot}%{_bindir}/tst-*.exe
54# Copy headers (@todo move it to Makefile.kmk)
55mkdir -p %{buildroot}%{_includedir}/sys
56echo "#include <sys/poll.h>" > nosys_poll.h
57install -m 644 nosys_poll.h %{buildroot}%{_includedir}/poll.h
58install -m 644 src/poll/poll.h %{buildroot}%{_includedir}/sys
59install -m 644 src/mmap/sys/mman.h %{buildroot}%{_includedir}/sys
60
61%clean
62rm -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.
Note: See TracBrowser for help on using the repository browser.