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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
|
# remirepo/fedora spec file for libxlswriter
#
# Copyright (c) 2018-2020 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/
#
# Please, preserve the changelog entries
#
%global gh_commit 90ffbeb046d39b621389149e0ba61de436e16fa7
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner jmcnamara
%global gh_project libxlsxwriter
%global libname %{gh_project}
Name: %{libname}
Summary: A C library for creating Excel XLSX files
Version: 1.0.0
Release: 1%{?dist}
License: BSD
URL: https://github.com/%{gh_owner}/%{gh_project}/
Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}-%{gh_short}.tar.gz
Patch0: %{libname}-el6.patch
BuildRequires: gcc
BuildRequires: gcc-c++
# see https://github.com/jmcnamara/libxlsxwriter/issues/168
%if 0%{?rhel} == 6 || 0%{?rhel} == 7
BuildRequires: cmake3
%else
BuildRequires: cmake >= 2.8.7
%endif
BuildRequires: zlib-devel
%description
Libxlsxwriter is a C library that can be used to write text, numbers, formulas
and hyperlinks to multiple worksheets in an Excel 2007+ XLSX file.
It supports features such as:
* 100% compatible Excel XLSX files.
* Full Excel formatting.
* Merged cells.
* Defined names.
* Autofilters.
* Charts.
* Data validation and drop down lists.
* Worksheet PNG/JPEG images.
* Memory optimization mode for writing large files.
* Source code available on GitHub.
* FreeBSD license.
* ANSI C.
* Works with GCC, Clang, Xcode, MSVC 2015, ICC, TCC, MinGW, MingGW-w64/32.
* Works on Linux, FreeBSD, OpenBSD, OS X, iOS and Windows.
Also works on MSYS/MSYS2 and Cygwin.
* Compiles for 32 and 64 bit.
* Compiles and works on big and little endian systems.
* The only dependency is on zlib.
%package devel
Summary: Header files and development libraries for %{name}
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
This package contains the header files and development libraries
for %{name}.
%prep
%setup -q -n %{gh_project}-%{gh_commit}
%if 0%{?rhel} == 6
%patch0 -p1 -b .el6
%endif
%build
%if 0%{?rhel} == 6 || 0%{?rhel} == 7
%cmake3 \
-DBUILD_TESTS=ON \
-S .
%else
%cmake \
-DBUILD_TESTS=ON \
-S .
%endif
%if 0%{?cmake_build:1}
%cmake_build
%else
make %{?_smp_mflags}
%endif
%check
%if 0%{?ctest:1}
%ctest
%else
make test
%endif
%install
%if 0%{?cmake_install:1}
%cmake_install
%else
make install DESTDIR=%{buildroot}
%endif
%if 0%{?fedora} < 28 && 0%{?rhel} < 8
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%endif
%files
%{!?_licensedir:%global license %%doc}
%license License.txt
%{_libdir}/%{libname}.so
%files devel
%doc *.md
%doc Changes.txt
%doc examples
%{_includedir}/xls*
%changelog
* Tue Sep 8 2020 Remi Collet <remi@remirepo.net> - 1.0.0-1
- update to 1.0.0
* Tue Aug 18 2020 Remi Collet <remi@remirepo.net> - 0.9.9-2
- F33 build
* Tue Aug 18 2020 Remi Collet <remi@remirepo.net> - 0.9.9-1
- update to 0.9.9
* Wed Aug 12 2020 Remi Collet <remi@remirepo.net> - 0.9.8-1
- update to 0.9.8
* Fri Aug 7 2020 Remi Collet <remi@remirepo.net> - 0.9.7-1
- update to 0.9.7
* Mon Jun 1 2020 Remi Collet <remi@remirepo.net> - 0.9.5-1
- update to 0.9.5
* Mon Jan 20 2020 Remi Collet <remi@remirepo.net> - 0.9.4-1
- update to 0.9.4
* Tue Jan 14 2020 Remi Collet <remi@remirepo.net> - 0.9.3-1
- update to 0.9.3
* Tue Dec 31 2019 Remi Collet <remi@remirepo.net> - 0.9.1-1
- update to 0.9.1
* Wed Dec 18 2019 Remi Collet <remi@remirepo.net> - 0.8.9-1
- update to 0.8.9
* Mon Nov 18 2019 Remi Collet <remi@remirepo.net> - 0.8.8-1
- update to 0.8.8
* Fri Jun 21 2019 Remi Collet <remi@remirepo.net> - 0.8.7-1
- update to 0.8.7
* Mon Apr 8 2019 Remi Collet <remi@remirepo.net> - 0.8.6-1
- update to 0.8.6
* Mon Feb 11 2019 Remi Collet <remi@remirepo.net> - 0.8.5-1
- update to 0.8.5
* Mon Nov 12 2018 Remi Collet <remi@remirepo.net> - 0.8.4-1
- update to 0.8.4
* Tue Oct 2 2018 Remi Collet <remi@remirepo.net> - 0.8.3-1
- update to 0.8.3
* Mon Sep 17 2018 Remi Collet <remi@remirepo.net> - 0.8.2-1
- update to 0.8.2
* Sun Sep 16 2018 Remi Collet <remi@remirepo.net> - 0.8.1-1
- update to 0.8.1
* Wed Sep 12 2018 Remi Collet <remi@remirepo.net> - 0.8.0-1
- update to 0.8.0
* Sun Sep 2 2018 Remi Collet <remi@remirepo.net> - 0.7.9-1
- update to 0.7.9
* Fri Aug 31 2018 Remi Collet <remi@remirepo.net> - 0.7.8-1
- update to 0.7.8
* Wed Aug 22 2018 Remi Collet <remi@remirepo.net> - 0.7.7-2
- F29 cleanup
* Fri May 25 2018 Remi Collet <remi@remirepo.net> - 0.7.7-1
- update to 0.7.7
- drop workaround for PR merged upstream
* Fri Apr 27 2018 Remi Collet <remi@remirepo.net> - 0.7.6-1
- initial package
- open https://github.com/jmcnamara/libxlsxwriter/issues/166 library layout
fixed by https://github.com/jmcnamara/libxlsxwriter/pull/170
- open https://github.com/jmcnamara/libxlsxwriter/issues/167 soname
- open https://github.com/jmcnamara/libxlsxwriter/issues/168 cmake version
fixed by https://github.com/jmcnamara/libxlsxwriter/pull/169
|