|
Last change
on this file since 1569 was 1522, checked in by tellie, 7 years ago |
|
spec: jansson: Release version 2.11-1.
|
|
File size:
1.7 KB
|
| Line | |
|---|
| 1 | Name: jansson
|
|---|
| 2 | Version: 2.11
|
|---|
| 3 | Release: 1%{?dist}
|
|---|
| 4 | Summary: C library for encoding, decoding and manipulating JSON data
|
|---|
| 5 |
|
|---|
| 6 | Group: System Environment/Libraries
|
|---|
| 7 | License: MIT
|
|---|
| 8 | URL: http://www.digip.org/jansson/
|
|---|
| 9 | #Source0: http://www.digip.org/jansson/releases/jansson-%{version}.tar.bz2
|
|---|
| 10 | %scm_source git file://e:/gcc/jansson-2.11 jansson-2.11
|
|---|
| 11 |
|
|---|
| 12 | BuildRequires: libgcc1
|
|---|
| 13 | #BuildRequires: python-sphinx
|
|---|
| 14 |
|
|---|
| 15 | %description
|
|---|
| 16 | Small library for parsing and writing JSON documents.
|
|---|
| 17 |
|
|---|
| 18 | %package devel
|
|---|
| 19 | Summary: Header files for jansson
|
|---|
| 20 | Group: Development/Libraries
|
|---|
| 21 | Requires: %{name}%{?_isa} = %{version}-%{release}
|
|---|
| 22 |
|
|---|
| 23 | %description devel
|
|---|
| 24 | Header files for developing applications making use of jansson.
|
|---|
| 25 |
|
|---|
| 26 | %package devel-doc
|
|---|
| 27 | Summary: Development documentation for jansson
|
|---|
| 28 | BuildArch: noarch
|
|---|
| 29 |
|
|---|
| 30 | %description devel-doc
|
|---|
| 31 | Development documentation for jansson.
|
|---|
| 32 |
|
|---|
| 33 | %prep
|
|---|
| 34 | #%autosetup -p1
|
|---|
| 35 | %scm_setup
|
|---|
| 36 | autoreconf -vif
|
|---|
| 37 |
|
|---|
| 38 | %if 0%{?rhel} == 6
|
|---|
| 39 | %{__sed} -i 's/code-block:: shell/code-block:: none/g' doc/*.rst
|
|---|
| 40 | %endif
|
|---|
| 41 |
|
|---|
| 42 | %build
|
|---|
| 43 | export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 44 | export LIBS="-lcx"
|
|---|
| 45 | %configure --disable-static
|
|---|
| 46 | make %{?_smp_mflags}
|
|---|
| 47 | #make html
|
|---|
| 48 |
|
|---|
| 49 | %check
|
|---|
| 50 | #make check
|
|---|
| 51 |
|
|---|
| 52 | %install
|
|---|
| 53 | make install INSTALL="install -p" DESTDIR="$RPM_BUILD_ROOT"
|
|---|
| 54 | rm "$RPM_BUILD_ROOT%{_libdir}"/*.la
|
|---|
| 55 | emximp -o %{buildroot}%{_libdir}/jansson_dll.lib %{buildroot}%{_libdir}/jansson4.dll
|
|---|
| 56 | emximp -o %{buildroot}%{_libdir}/jansson4_dll.lib %{buildroot}%{_libdir}/jansson4.dll
|
|---|
| 57 |
|
|---|
| 58 |
|
|---|
| 59 | #%ldconfig_scriptlets
|
|---|
| 60 |
|
|---|
| 61 | %files
|
|---|
| 62 | %defattr(-,root,root,-)
|
|---|
| 63 | %doc LICENSE CHANGES
|
|---|
| 64 | %{_libdir}/*.dll
|
|---|
| 65 |
|
|---|
| 66 | %files devel
|
|---|
| 67 | %defattr(-,root,root,-)
|
|---|
| 68 | %{_libdir}/*.dll
|
|---|
| 69 | %{_libdir}/*.a
|
|---|
| 70 | %{_libdir}/*.lib
|
|---|
| 71 | %{_libdir}/pkgconfig/%{name}.pc
|
|---|
| 72 | %{_includedir}/*
|
|---|
| 73 |
|
|---|
| 74 | #%files devel-doc
|
|---|
| 75 | #%doc doc/_build/html/*
|
|---|
| 76 |
|
|---|
| 77 | %changelog
|
|---|
| 78 | * Mon Nov 19 2018 Elbert Pol <elbert.pol@gmail.com> - 2.11-2
|
|---|
| 79 | - first os2 rpm package
|
|---|
| 80 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.