[packages/cjson] - new

qboosh qboosh at pld-linux.org
Wed Apr 28 21:43:52 CEST 2021


commit 5b36b5177656bc0cbea839700e280cc85ddb46c0
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Apr 28 21:45:39 2021 +0200

    - new

 cjson.spec | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 72 insertions(+)
---
diff --git a/cjson.spec b/cjson.spec
new file mode 100644
index 0000000..530e4ea
--- /dev/null
+++ b/cjson.spec
@@ -0,0 +1,72 @@
+Summary:	Ultralightweight JSON parser in ANSI C
+Summary(pl.UTF-8):	Ultralekki parser formatu JSON napisany w ANSI C
+Name:		cjson
+Version:	1.7.14
+Release:	1
+License:	MIT
+Group:		Libraries
+#Source0Download: https://github.com/DaveGamble/cJSON/releases
+Source0:	https://github.com/DaveGamble/cJSON/archive/v%{version}/cJSON-%{version}.tar.gz
+# Source0-md5:	ff0557033e8374033107d40ca79bd52d
+URL:		https://github.com/DaveGamble/cJSON
+BuildRequires:	cmake >= 2.8.5
+BuildRequires:	rpmbuild(macros) >= 1.605
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+cJSON aims to be the dumbest possible parser that you can get your job
+done with. It's a single file of C, and a single header file.
+
+%description -l pl.UTF-8
+cJSON jest tworzony jako możliwie najprostszy parser wykonujący swoje
+zadanie. Jest to pojedynczy plik w C i pojedynczy plik nagłówkowy.
+
+%package devel
+Summary:	Header files for cJSON library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki cJSON
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+Header files for cJSON library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki cJSON.
+
+%prep
+%setup -q -n cJSON-%{version}
+
+%build
+install -d build
+cd build
+%cmake .. \
+	-DENABLE_CJSON_UTILS=ON
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C build install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG.md CONTRIBUTORS.md LICENSE README.md
+%attr(755,root,root) %{_libdir}/libcjson.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libcjson.so.1
+%attr(755,root,root) %{_libdir}/libcjson_utils.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libcjson_utils.so.1
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libcjson.so
+%attr(755,root,root) %{_libdir}/libcjson_utils.so
+%{_includedir}/cjson
+%{_pkgconfigdir}/libcjson.pc
+%{_pkgconfigdir}/libcjson_utils.pc
+%{_libdir}/cmake/cJSON
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/cjson.git/commitdiff/5b36b5177656bc0cbea839700e280cc85ddb46c0



More information about the pld-cvs-commit mailing list