source: projects/specs/trunk/y/yajl/yajl-vl.spec @ 12284

Revision 12284, 3.4 KB checked in by tomop, 3 years ago (diff)

updated 7 packages

lmdb-0.9.24-1

libmodsecurity-3.0.3-3

libssh2-1.9.0-1

nginx-1.16.1-2

proftpd-1.3.6b-1

ssdeep-2.14.1-8

yajl-2.1.0-1

Line 
1Name:           yajl
2Summary:        Yet Another JSON Library (YAJL)
3Version:        2.1.0
4Release:        1%{?_dist_release}
5Group:          System Environment/Libraries
6
7Vendor:         Project Vine
8Distribution:   Vine Linux
9
10License:        ISC
11URL:            http://lloyd.github.com/yajl/
12
13#
14# NB, upstream does not provide pre-built tar.gz downloads. Instead
15# they make you use the 'on the fly' generated tar.gz from GITHub's
16# web interface
17#
18# The Source0 for any version is obtained by a URL
19#
20#   https://github.com/lloyd/yajl/releases/tag/2.1.0
21#
22Source0: %{name}-%{version}.tar.gz
23Patch1: %{name}-%{version}-pkgconfig-location.patch
24Patch2: %{name}-%{version}-pkgconfig-includedir.patch
25Patch3: %{name}-%{version}-test-location.patch
26Patch4: %{name}-%{version}-dynlink-binaries.patch
27
28BuildRoot: %{_tmppath}/%{name}-%{version}-root
29BuildRequires: cmake
30
31%description
32Yet Another JSON Library. YAJL is a small event-driven
33(SAX-style) JSON parser written in ANSI C, and a small
34validating JSON generator.
35
36%package devel
37Summary: Libraries, includes, etc to develop with YAJL
38Group: Development/Libraries
39Requires: %{name} = %{version}-%{release}
40
41%description devel
42Yet Another JSON Library. YAJL is a small event-driven
43(SAX-style) JSON parser written in ANSI C, and a small
44validating JSON generator.
45
46This sub-package provides the libraries and includes
47necessary for developing against the YAJL library
48
49%prep
50%setup -q
51%patch1 -p1
52%patch2 -p1
53%patch3 -p1
54%patch4 -p1
55
56%build
57# NB, we are not using upstream's 'configure'/'make'
58# wrapper, instead we use cmake directly to better
59# align with Fedora standards
60mkdir build
61cd build
62%cmake ..
63make VERBOSE=1 %{?_smp_mflags}
64
65
66%install
67rm -rf %{buildroot}
68cd build
69make install DESTDIR=%{buildroot}
70
71
72# No static libraries
73rm -f %{buildroot}%{_libdir}/libyajl_s.a
74
75
76%check
77cd test
78(cd parsing && ./run_tests.sh)
79(cd api && ./run_tests.sh)
80
81%clean
82rm -rf %{buildroot}
83
84%post -p /sbin/ldconfig
85
86%postun -p /sbin/ldconfig
87
88%files
89%defattr(-,root,root,-)
90%license COPYING
91%doc ChangeLog README TODO
92%{_bindir}/json_reformat
93%{_bindir}/json_verify
94%{_libdir}/libyajl.so.2
95%{_libdir}/libyajl.so.2.*
96
97%files devel
98%defattr(-,root,root,-)
99%dir %{_includedir}/yajl
100%{_includedir}/yajl/yajl_common.h
101%{_includedir}/yajl/yajl_gen.h
102%{_includedir}/yajl/yajl_parse.h
103%{_includedir}/yajl/yajl_tree.h
104%{_includedir}/yajl/yajl_version.h
105%{_libdir}/libyajl.so
106%{_libdir}/pkgconfig/yajl.pc
107
108
109%changelog
110* Wed Oct 23 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.1.0-1
111- new upstream release.
112
113* Tue Oct 29 2013 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.0.4-1
114- updated to 2.0.4 release
115- Patch1 and Patch2 imported from Fedora
116- fix License tag: s/BSD/ISC/
117
118* Wed Mar 28 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.0.1-2
119- rebuild
120
121* Sun Nov 20 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.0.1-1
122- updated to 2.0.1
123
124* Thu Aug 18 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.0.12-2
125- Initial build for Vine Linux
126
127* Tue May  3 2011 Daniel P. Berrange <berrange@redhat.com> - 1.0.12-1
128- Update to 1.0.12 release
129
130* Fri Dec 17 2010 Daniel P. Berrange <berrange@redhat.com> - 1.0.11-1
131- Update to 1.0.11 release
132
133* Mon Jan 11 2010 Daniel P. Berrange <berrange@redhat.com> - 1.0.7-3
134- Fix ignoring of cflags (rhbz #547500)
135
136* Tue Dec  8 2009 Daniel P. Berrange <berrange@redhat.com> - 1.0.7-2
137- Change use of 'define' to 'global'
138
139* Mon Dec  7 2009 Daniel P. Berrange <berrange@redhat.com> - 1.0.7-1
140- Initial Fedora package
Note: See TracBrowser for help on using the repository browser.