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

Last change on this file since 1244 was 1230, checked in by dmik, 8 years ago

spec: libcx: Release version 0.6.0-1.

File size: 3.7 KB
Line 
1Name: libcx
2Summary: kLIBC Extension Library
3Version: 0.6.0
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# Due to patch from kLIBC #366
16Requires: libc >= 0.6.6-35
17
18%description
19The kLIBC Extension Library extends the functionality of the kLIBC library
20by adding a number of high demand features required by modern applications.
21
22%package devel
23Summary: Development package for %{name}
24Requires: %{name} = %{version}-%{release}
25Requires: libc-devel exceptq-devel
26Requires: pkgconfig
27
28Obsoletes: libpoll-devel
29Provides: libpoll-devel
30
31%description devel
32Libraries, 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
42kmk %{kmk_flags}
43
44%install
45%{__rm} -rf %{buildroot}
46kmk %{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
51echo "#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# Dir for LIBCx assertion logs
57%{__mkdir_p} %{buildroot}%{_var}/log/libcx
58
59%check
60kmk %{kmk_flags} test
61
62%clean
63rm -rf %{buildroot}
64
65%files
66%defattr(-,root,root)
67%doc LICENSE README.md CHANGELOG.md
68%{_libdir}/libcx*.dll
69%dir %{_var}/log/libcx
70
71%files devel
72%defattr(-,root,root)
73%{_libdir}/libcx*.a
74%{_bindir}/libcx-stats.exe
75%{_includedir}/poll.h
76%{_includedir}/sys/poll.h
77%{_includedir}/sys/mman.h
78%{_includedir}/libcx/exeinfo.h
79
80%changelog
81* Tue Aug 29 2017 Dmitriy Kuminov <coding@dmik.org> 0.6.0-1
82- Release version 0.6.0
83 (https://github.com/bitwiseworks/libcx/blob/0.6.0/CHANGELOG.md).
84- Add check section to run tests.
85
86* Fri Jun 2 2017 Dmitriy Kuminov <coding@dmik.org> 0.5.3-1
87- Release version 0.5.3
88 (https://github.com/bitwiseworks/libcx/blob/0.5.3/CHANGELOG.md).
89
90* Mon Mar 27 2017 Dmitriy Kuminov <coding@dmik.org> 0.5.2-1
91- Release version 0.5.2
92 (https://github.com/bitwiseworks/libcx/blob/0.5.2/CHANGELOG.md).
93
94* Fri Mar 24 2017 Dmitriy Kuminov <coding@dmik.org> 0.5.1-1
95- Release version 0.5.1
96 (https://github.com/bitwiseworks/libcx/blob/0.5.1/CHANGELOG.md).
97
98* Fri Mar 10 2017 Dmitriy Kuminov <coding@dmik.org> 0.5.0-1
99- Release version 0.5.0
100 (https://github.com/bitwiseworks/libcx/blob/0.5.0/CHANGELOG.md).
101
102* Wed Jan 18 2017 Dmitriy Kuminov <coding@dmik.org> 0.4.1-1
103- Release version 0.4.1
104 (https://github.com/bitwiseworks/libcx/blob/0.4.1/CHANGELOG.md).
105
106* Thu Nov 24 2016 Dmitriy Kuminov <coding@dmik.org> 0.4-1
107- Release version 0.4
108 (https://github.com/bitwiseworks/libcx/blob/0.4/CHANGELOG.md).
109
110* Mon Sep 26 2016 Dmitriy Kuminov <coding@dmik.org> 0.3.1-1
111- Release version 0.3.1
112 (https://github.com/bitwiseworks/libcx/blob/0.3.1/CHANGELOG.md).
113
114* Thu Sep 22 2016 Dmitriy Kuminov <coding@dmik.org> 0.3-1
115- Release version 0.3
116 (https://github.com/bitwiseworks/libcx/blob/0.3/CHANGELOG.md).
117
118* Fri Aug 19 2016 Dmitriy Kuminov <coding@dmik.org> 0.2.1-1
119- Release version 0.2.1
120 (https://github.com/bitwiseworks/libcx/blob/0.2.1/CHANGELOG.md).
121
122* Mon Jul 18 2016 Dmitriy Kuminov <coding@dmik.org> 0.2-1
123- Release version 0.2
124 (https://github.com/bitwiseworks/libcx/blob/0.2/CHANGELOG.md).
125
126* Fri Jun 10 2016 Dmitriy Kuminov <coding@dmik.org> 0.1-1
127- Initial package for version 0.1.
Note: See TracBrowser for help on using the repository browser.