jsoncpp/jsoncpp.spec

163 lines
5.4 KiB
RPMSpec

%define pkgver %(echo %version | tr _ -)
Name: jsoncpp
Version: 1.9.4
Release: 1mamba
Summary: An implementation of a JSON reader and writer in C++
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://jsoncpp.sourceforge.net/
Source: https://github.com/open-source-parsers/jsoncpp.git/%{version}/jsoncpp-%{version}.tar.bz2
#Source: http://downloads.sourceforge.net/project/jsoncpp/jsoncpp/%{pkgver}/jsoncpp-src-%{pkgver}.tar.gz
Patch0: jsoncpp-0.5.0-soname.patch
Patch1: jsoncpp-0.6.0_rc2-buildfix-fPIC.patch
Patch2: jsoncpp-1.4.4-pkg-config-fix-includedir.patch
License: MIT
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
jsoncpp is an implementation of a JSON (http://json.org) reader and writer in C++. JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate.
%package -n lib%{name}
Summary: An implementation of a JSON reader and writer in C++
Group: System/Libraries
%description -n lib%{name}
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
#%patch0 -p1
#%patch1 -p1
#%patch2 -p1
%build
%cmake -d build \
-DCMAKE_INSTALL_INCLUDEDIR=%{_includedir}/jsoncpp \
%ifarch arm
-DJSONCPP_WITH_TESTS=OFF
%endif
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libjsoncpp.so.*
%doc AUTHORS LICENSE
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/jsoncpp
%dir %{_includedir}/jsoncpp/json
%{_includedir}/jsoncpp/json/*.h
%{_libdir}/libjsoncpp.so
%{_libdir}/libjsoncpp_static.a
%dir %{_libdir}/objects-Release/jsoncpp_object
%{_libdir}/objects-Release/jsoncpp_object/json_*.cpp.o
%{_libdir}/pkgconfig/jsoncpp.pc
%{_libdir}/cmake/jsoncpp/jsoncppConfig*.cmake
%changelog
* Sun Sep 27 2020 Automatic Build System <autodist@mambasoft.it> 1.9.4-1mamba
- automatic version update by autodist
* Sun Jul 19 2020 Automatic Build System <autodist@mambasoft.it> 1.9.3-1mamba
- automatic version update by autodist
* Tue Apr 07 2020 Automatic Build System <autodist@mambasoft.it> 1.9.2-1mamba
- automatic version update by autodist
* Mon Sep 16 2019 Automatic Build System <autodist@mambasoft.it> 1.9.1-1mamba
- automatic version update by autodist
* Mon Jan 15 2018 Automatic Build System <autodist@mambasoft.it> 1.8.4-1mamba
- automatic version update by autodist
* Sun Dec 24 2017 Automatic Build System <autodist@mambasoft.it> 1.8.3-1mamba
- automatic version update by autodist
* Thu Jul 13 2017 Automatic Build System <autodist@mambasoft.it> 1.8.1-1mamba
- automatic version update by autodist
* Tue Jan 24 2017 Automatic Build System <autodist@mambasoft.it> 1.8.0-1mamba
- automatic version update by autodist
* Sun Oct 09 2016 Automatic Build System <autodist@mambasoft.it> 1.7.7-1mamba
- automatic version update by autodist
* Thu Sep 29 2016 Automatic Build System <autodist@mambasoft.it> 1.7.6-1mamba
- automatic version update by autodist
* Tue Sep 06 2016 Automatic Build System <autodist@mambasoft.it> 1.7.5-1mamba
- automatic version update by autodist
* Wed Aug 03 2016 Automatic Build System <autodist@mambasoft.it> 1.7.4-1mamba
- automatic version update by autodist
* Thu Jul 07 2016 Automatic Build System <autodist@mambasoft.it> 1.7.3-1mamba
- automatic version update by autodist
* Sat Mar 26 2016 Automatic Build System <autodist@mambasoft.it> 1.7.2-1mamba
- automatic version update by autodist
* Fri Mar 25 2016 Automatic Build System <autodist@mambasoft.it> 1.7.1-1mamba
- automatic version update by autodist
* Wed Dec 09 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.5-2mamba
- rebuilt
* Tue Aug 18 2015 Automatic Build System <autodist@mambasoft.it> 1.6.5-1mamba
- automatic version update by autodist
* Mon Jun 01 2015 Automatic Build System <autodist@mambasoft.it> 1.6.2-1mamba
- automatic version update by autodist
* Wed Apr 08 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.4-2mamba
- move headers to /usr/include/jsoncpp
* Sat Feb 28 2015 Automatic Build System <autodist@mambasoft.it> 1.4.4-1mamba
- automatic version update by autodist
* Mon Feb 16 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.2-1mamba
- update to 1.4.2
* Sun Jan 18 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.0-1mamba
- update to 1.1.0
* Wed Sep 17 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.0_rc2-2mamba
- provide pkg-config file
- move headers to %{_includedir}/jsoncpp
* Mon Jul 07 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.0_rc2-1mamba
- update to 0.6.0_rc2
* Fri Jun 20 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.5.0-1mamba
- package created using the webbuild interface