1 | Name: libfastjson |
---|
2 | Version: 0.99.8 |
---|
3 | Release: 3%{?_dist_release} |
---|
4 | Summary: A JSON implementation in C |
---|
5 | License: MIT |
---|
6 | URL: https://github.com/rsyslog/libfastjson |
---|
7 | Source0: http://download.rsyslog.com/libfastjson/libfastjson-%{version}.tar.gz |
---|
8 | |
---|
9 | Vendor: Project Vine |
---|
10 | Distribution: Vine Linux |
---|
11 | Packager: tomop |
---|
12 | |
---|
13 | BuildRequires: autoconf automake libtool |
---|
14 | |
---|
15 | %description |
---|
16 | LIBFASTJSON implements a reference counting object |
---|
17 | model that allows you to easily construct JSON |
---|
18 | objects in C, output them as JSON formatted strings |
---|
19 | and parse JSON formatted strings back into the |
---|
20 | C representation of JSON objects. |
---|
21 | |
---|
22 | %package devel |
---|
23 | Summary: Development files for libfastjson |
---|
24 | Group: Development/Libraries |
---|
25 | Requires: %{name}%{?_isa} = %{version}-%{release} |
---|
26 | |
---|
27 | %description devel |
---|
28 | This package contains libraries and header files for |
---|
29 | developing applications that use libfastjson. |
---|
30 | |
---|
31 | %prep |
---|
32 | %setup -q |
---|
33 | |
---|
34 | for doc in ChangeLog; do |
---|
35 | iconv -f iso-8859-1 -t utf8 $doc > $doc.new && |
---|
36 | touch -r $doc $doc.new && |
---|
37 | mv $doc.new $doc |
---|
38 | done |
---|
39 | |
---|
40 | %build |
---|
41 | autoreconf -iv |
---|
42 | export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE" # temporary workaround for EPEL5, fixed upstream |
---|
43 | %configure --enable-shared --disable-static |
---|
44 | |
---|
45 | %install |
---|
46 | make V=1 DESTDIR=%{buildroot} install |
---|
47 | find %{buildroot} -name '*.la' -delete -print |
---|
48 | |
---|
49 | %check |
---|
50 | make V=1 check |
---|
51 | |
---|
52 | %post -p /sbin/ldconfig |
---|
53 | |
---|
54 | %postun -p /sbin/ldconfig |
---|
55 | |
---|
56 | %files |
---|
57 | %{!?_licensedir:%global license %%doc} |
---|
58 | %license COPYING |
---|
59 | %doc AUTHORS ChangeLog README.html |
---|
60 | %{_libdir}/libfastjson.so.* |
---|
61 | |
---|
62 | %files devel |
---|
63 | %{_includedir}/libfastjson |
---|
64 | %{_libdir}/libfastjson.so |
---|
65 | %{_libdir}/pkgconfig/libfastjson.pc |
---|
66 | |
---|
67 | %changelog |
---|
68 | * Sun Feb 25 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.99.8-3 |
---|
69 | - initisl build for Vine Linux. |
---|
70 | |
---|
71 | * Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.99.8-2 |
---|
72 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild |
---|
73 | |
---|
74 | * Thu Jan 11 2018 Jiri Vymazal <jvymazal@redhat.com> - 0.99.8-1 |
---|
75 | - rebase to v0.99.8 |
---|
76 | |
---|
77 | * Mon Oct 23 2017 Radovan Sroka <rsroka@redhat.com> - 0.99.7-1 |
---|
78 | - rebase to v0.99.7 |
---|
79 | |
---|
80 | * Tue Aug 15 2017 Marek Tamaskovic <mtamasko@redhat.com> - 0.99.6-1 |
---|
81 | - rebase to v0.99.6 |
---|
82 | |
---|
83 | * Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.99.5-3 |
---|
84 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild |
---|
85 | |
---|
86 | * Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.99.5-2 |
---|
87 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild |
---|
88 | |
---|
89 | * Mon May 22 2017 Radovan Sroka <rsroka@redhat.com> - 0.99.5-1 |
---|
90 | - added autoreconf |
---|
91 | - rebase to v0.99.5 |
---|
92 | |
---|
93 | * Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.99.4-2 |
---|
94 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild |
---|
95 | |
---|
96 | * Tue Sep 27 2016 Radovan Sroka <rsroka@redhat.com> - 0.99.4-1 |
---|
97 | - Package created |
---|