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

Last change on this file since 788 was 786, checked in by dmik, 9 years ago

spec: libcx: Release version 0.1-1.

File size: 1.9 KB
Line 
1Name: libcx
2Summary: kLIBC Extension Library
3Version: 0.1
4Release: 1%{?dist}
5License: LGPLv2.1+
6Group: System/Libraries
7Vendor: bww bitwise works GmbH
8URL: https://github.com/bitwiseworks/libcx
9
10%define github_name libcx
11%define github_url https://github.com/bitwiseworks/%{github_name}/archive
12%define github_rev c00f8621f6a67e8cde3e7cdb84188b66191d8678
13
14Source: %{github_name}-%{github_rev}.zip
15
16BuildRequires: gcc make curl zip
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
26Requires: pkgconfig
27
28%description devel
29Libraries, header files and documentation for %{name}.
30
31%debug_package
32
33%prep
34%if %(sh -c 'if test -f "%{_sourcedir}/%{github_name}-%{github_rev}.zip" ; then echo 1 ; else echo 0 ; fi')
35%setup -n "%{github_name}-%{github_rev}" -q
36%else
37%setup -n "%{github_name}-%{github_rev}" -Tc
38rm -f "%{_sourcedir}/%{github_name}-%{github_rev}.zip"
39curl -sSL "%{github_url}/%{github_rev}.zip" -o "%{_sourcedir}/%{github_name}-%{github_rev}.zip"
40unzip "%{_sourcedir}/%{github_name}-%{github_rev}.zip" -d ..
41%endif
42
43%define kmk_env \
44 KMK_FLAGS="\
45 KBUILD_VERBOSE=2 \
46 BUILD_TYPE=release \
47 INST_PREFIX=%{_prefix}"
48
49%build
50CFLAGS="$RPM_OPT_FLAGS"
51LDFLAGS="-Zhigh-mem"
52%{kmk_env}
53kmk $KMK_FLAGS CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
54
55%install
56rm -rf %{buildroot}
57%{kmk_env}
58kmk $KMK_FLAGS DESTDIR="%{buildroot}" install
59# Remove tests as we don't need them now
60rm -rf %{buildroot}%{_bindir}
61
62%clean
63rm -rf %{buildroot}
64
65%files
66%defattr(-,root,root)
67%doc LICENSE README.md
68%{_libdir}/libcx*.dll
69
70%files devel
71%defattr(-,root,root)
72%{_libdir}/libcx*.a
73
74%changelog
75
76* Fri Jun 10 2016 Dmitriy Kuminov <coding@dmik.org> 0.1-1
77- Initial package for version 0.1.
Note: See TracBrowser for help on using the repository browser.