update to 1.1.0 [release 1.1.0-1mamba;Sun Jan 18 2015]
This commit is contained in:
parent
9ca4f035ea
commit
e9c1714db6
52
jsoncpp.spec
52
jsoncpp.spec
@ -1,14 +1,15 @@
|
|||||||
%define pkgver %(echo %version | tr _ -)
|
%define pkgver %(echo %version | tr _ -)
|
||||||
Name: jsoncpp
|
Name: jsoncpp
|
||||||
Version: 0.6.0_rc2
|
Version: 1.1.0
|
||||||
Release: 2mamba
|
Release: 1mamba
|
||||||
Summary: An implementation of a JSON reader and writer in C++
|
Summary: An implementation of a JSON reader and writer in C++
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
Distribution: openmamba
|
Distribution: openmamba
|
||||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||||
URL: http://jsoncpp.sourceforge.net/
|
URL: http://jsoncpp.sourceforge.net/
|
||||||
Source: http://downloads.sourceforge.net/project/jsoncpp/jsoncpp/%{pkgver}/jsoncpp-src-%{pkgver}.tar.gz
|
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
|
Patch0: jsoncpp-0.5.0-soname.patch
|
||||||
Patch1: jsoncpp-0.6.0_rc2-buildfix-fPIC.patch
|
Patch1: jsoncpp-0.6.0_rc2-buildfix-fPIC.patch
|
||||||
License: MIT
|
License: MIT
|
||||||
@ -41,41 +42,17 @@ This package contains libraries and header files for developing applications tha
|
|||||||
%debug_package
|
%debug_package
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-src-%{pkgver}
|
%setup -q
|
||||||
%patch0 -p1
|
#%patch0 -p1
|
||||||
%patch1 -p1
|
#%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags}"
|
%cmake -d build
|
||||||
export CXXFLAGS="%{optflags}"
|
%make
|
||||||
scons platform=linux-gcc
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
|
%makeinstall -C build
|
||||||
install -d -m0755 %{buildroot}{%{_includedir}/jsoncpp,%{_libdir}}
|
|
||||||
cp -a include/json %{buildroot}%{_includedir}/jsoncpp
|
|
||||||
|
|
||||||
cp libs/linux-gcc-*/libjson_linux-gcc-*_libmt.so %{buildroot}%{_libdir}/libjsoncpp.so.0
|
|
||||||
ln -s libjsoncpp.so.0 %{buildroot}%{_libdir}/libjsoncpp.so
|
|
||||||
|
|
||||||
install -d -m0755 %{buildroot}%{_libdir}/pkgconfig
|
|
||||||
cat > %{buildroot}%{_libdir}/pkgconfig/jsoncpp.pc << _EOF
|
|
||||||
prefix=%{_prefix}
|
|
||||||
libdir=%{_libdir}
|
|
||||||
includedir=%{_includedir}/jsoncpp
|
|
||||||
|
|
||||||
version = %{version}
|
|
||||||
|
|
||||||
name = jsoncpp
|
|
||||||
pkgname = libjsoncpp
|
|
||||||
|
|
||||||
Name: \${name}
|
|
||||||
Version: 0.6.0_rc2
|
|
||||||
Description: Jsoncpp library version %{version}
|
|
||||||
Cflags: -I\${includedir}
|
|
||||||
Libs: -L\${libdir} -ljsoncpp
|
|
||||||
_EOF
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
@ -90,14 +67,15 @@ _EOF
|
|||||||
|
|
||||||
%files -n lib%{name}-devel
|
%files -n lib%{name}-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%dir %{_includedir}/jsoncpp
|
%dir %{_includedir}/json
|
||||||
%dir %{_includedir}/jsoncpp/json
|
%{_includedir}/json/*.h
|
||||||
%{_includedir}/jsoncpp/json/*.h
|
|
||||||
%{_libdir}/libjsoncpp.so
|
%{_libdir}/libjsoncpp.so
|
||||||
%{_libdir}/pkgconfig/jsoncpp.pc
|
%{_libdir}/pkgconfig/jsoncpp.pc
|
||||||
%doc README.txt
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* 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
|
* Wed Sep 17 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.0_rc2-2mamba
|
||||||
- provide pkg-config file
|
- provide pkg-config file
|
||||||
- move headers to %{_includedir}/jsoncpp
|
- move headers to %{_includedir}/jsoncpp
|
||||||
|
Loading…
Reference in New Issue
Block a user