This repository was archived by the owner on Aug 12, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathyajl.spec
More file actions
129 lines (107 loc) · 3.2 KB
/
yajl.spec
File metadata and controls
129 lines (107 loc) · 3.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
#
# This file is auto-generated. DO NOT EDIT
# Generated by: autospec.py
#
Name : yajl
Version : 2.1.0
Release : 25
URL : https://github.com/lloyd/yajl/archive/2.1.0.tar.gz
Source0 : https://github.com/lloyd/yajl/archive/2.1.0.tar.gz
Summary : No detailed summary available
Group : Development/Tools
License : ISC
Requires: yajl-bin = %{version}-%{release}
Requires: yajl-lib = %{version}-%{release}
Requires: yajl-license = %{version}-%{release}
BuildRequires : buildreq-cmake
Patch1: 0001-change-test-location.patch
%description
**********************************************************************
This is YAJL 2. For the legacy version of YAJL see
https://github.com/lloyd/yajl/tree/1.x
**********************************************************************
%package bin
Summary: bin components for the yajl package.
Group: Binaries
Requires: yajl-license = %{version}-%{release}
%description bin
bin components for the yajl package.
%package dev
Summary: dev components for the yajl package.
Group: Development
Requires: yajl-lib = %{version}-%{release}
Requires: yajl-bin = %{version}-%{release}
Provides: yajl-devel = %{version}-%{release}
Requires: yajl = %{version}-%{release}
%description dev
dev components for the yajl package.
%package lib
Summary: lib components for the yajl package.
Group: Libraries
Requires: yajl-license = %{version}-%{release}
%description lib
lib components for the yajl package.
%package license
Summary: license components for the yajl package.
Group: Default
%description license
license components for the yajl package.
%prep
%setup -q -n yajl-2.1.0
cd %{_builddir}/yajl-2.1.0
%patch1 -p1
%build
export http_proxy=http://127.0.0.1:9/
export https_proxy=http://127.0.0.1:9/
export no_proxy=localhost,127.0.0.1,0.0.0.0
export LANG=C.UTF-8
export SOURCE_DATE_EPOCH=1604945012
mkdir -p clr-build
pushd clr-build
export GCC_IGNORE_WERROR=1
export AR=gcc-ar
export RANLIB=gcc-ranlib
export NM=gcc-nm
export CFLAGS="$CFLAGS -O3 -ffat-lto-objects -flto=4 "
export FCFLAGS="$FFLAGS -O3 -ffat-lto-objects -flto=4 "
export FFLAGS="$FFLAGS -O3 -ffat-lto-objects -flto=4 "
export CXXFLAGS="$CXXFLAGS -O3 -ffat-lto-objects -flto=4 "
%cmake .. -DLIB_SUFFIX=64
make %{?_smp_mflags}
popd
%check
export LANG=C.UTF-8
export http_proxy=http://127.0.0.1:9/
export https_proxy=http://127.0.0.1:9/
export no_proxy=localhost,127.0.0.1,0.0.0.0
cd clr-build && make test && make test-api
%install
export SOURCE_DATE_EPOCH=1604945012
rm -rf %{buildroot}
mkdir -p %{buildroot}/usr/share/package-licenses/yajl
cp %{_builddir}/yajl-2.1.0/COPYING %{buildroot}/usr/share/package-licenses/yajl/d0bee23991ce69abdc36d8711f54982ca2fd615c
pushd clr-build
%make_install
popd
%files
%defattr(-,root,root,-)
%files bin
%defattr(-,root,root,-)
/usr/bin/json_reformat
/usr/bin/json_verify
%files dev
%defattr(-,root,root,-)
/usr/include/yajl/yajl_common.h
/usr/include/yajl/yajl_gen.h
/usr/include/yajl/yajl_parse.h
/usr/include/yajl/yajl_tree.h
/usr/include/yajl/yajl_version.h
/usr/lib64/libyajl.so
/usr/lib64/pkgconfig/yajl.pc
%files lib
%defattr(-,root,root,-)
/usr/lib64/libyajl.so.2
/usr/lib64/libyajl.so.2.1.0
%files license
%defattr(0644,root,root,0755)
/usr/share/package-licenses/yajl/d0bee23991ce69abdc36d8711f54982ca2fd615c