From 62ac1ebd2864afba4eb0caa4b63a37575390da15e080536727de120be2b6b55d Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Sat, 26 Jul 2014 09:41:43 +0000 Subject: [PATCH] Accepting request 242353 from home:mvyskocil:branches:devel:libraries:c_c++ doc can't require package name OBS-URL: https://build.opensuse.org/request/show/242353 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/jsoncpp?expand=0&rev=1 --- .gitattributes | 23 +++ .gitignore | 1 + _service | 16 +++ jsoncpp-0.6~rc2+git.1405320734.3b9b740.tar.xz | 3 + jsoncpp.changes | 5 + jsoncpp.spec | 136 ++++++++++++++++++ 6 files changed, 184 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 jsoncpp-0.6~rc2+git.1405320734.3b9b740.tar.xz create mode 100644 jsoncpp.changes create mode 100644 jsoncpp.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..4e31651 --- /dev/null +++ b/_service @@ -0,0 +1,16 @@ + + + https://github.com/open-source-parsers/jsoncpp.git + git + .git + 0.6~rc2+git.%ct.%h + master + + + crowbar-barclamp-swift-*git*.tar + xz + + + jsoncpp + + diff --git a/jsoncpp-0.6~rc2+git.1405320734.3b9b740.tar.xz b/jsoncpp-0.6~rc2+git.1405320734.3b9b740.tar.xz new file mode 100644 index 0000000..ca50987 --- /dev/null +++ b/jsoncpp-0.6~rc2+git.1405320734.3b9b740.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dfb8c1194d48a9a1115f872d942527bfdadf9e17f57d772b0f21469f076f9b5f +size 109872 diff --git a/jsoncpp.changes b/jsoncpp.changes new file mode 100644 index 0000000..1f3c3df --- /dev/null +++ b/jsoncpp.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Fri Jul 25 07:43:07 UTC 2014 - mvyskocil@opensuse.org + +- Initial packaging of jsoncpp for openSUSE + diff --git a/jsoncpp.spec b/jsoncpp.spec new file mode 100644 index 0000000..b3e713f --- /dev/null +++ b/jsoncpp.spec @@ -0,0 +1,136 @@ +# +# spec file for package +# +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +Name: jsoncpp +Version: 0.6~rc2+git.1405320734.3b9b740 +Release: 0 +License: MIT +Summary: C++ library that allows manipulating with JSON +Url: https://github.com/open-source-parsers/jsoncpp +Group: Devel/Libraries/C and C++ +Source0: jsoncpp-0.6~rc2+git.1405320734.3b9b740.tar.xz +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +#strip unused dependencies from there +#BuildRequires: cmake +BuildRequires: doxygen +BuildRequires: python +BuildRequires: gcc-c++ + +%description +JSON is a lightweight data-interchange format. It can represent numbers, +strings, ordered sequences of values, and collections of name/value pairs. + +JsonCpp is a C++ library that allows manipulating JSON values, including +serialization and deserialization to and from strings. It can also preserve +existing comment in unserialization/serialization steps, making it a convenient +format to store user input files. + +%package devel +Summary: Development files for %{name} +Group: Development/Languages/C and C++ +Requires: lib%{name}0 = %{version} + +%description devel +JSON is a lightweight data-interchange format. It can represent numbers, +strings, ordered sequences of values, and collections of name/value pairs. + +JsonCpp is a C++ library that allows manipulating JSON values, including +serialization and deserialization to and from strings. It can also preserve +existing comment in unserialization/serialization steps, making it a convenient +format to store user input files. + +%package doc +Summary: Documentation for %{name} +Group: Development/Languages/C and C++ + +%description doc +JSON is a lightweight data-interchange format. It can represent numbers, +strings, ordered sequences of values, and collections of name/value pairs. + +JsonCpp is a C++ library that allows manipulating JSON values, including +serialization and deserialization to and from strings. It can also preserve +existing comment in unserialization/serialization steps, making it a convenient +format to store user input files. + +%package -n lib%{name}0 +Summary: Shared library for %{name} +Group: Development/Languages/C and C++ + +%description -n lib%{name}0 +JSON is a lightweight data-interchange format. It can represent numbers, +strings, ordered sequences of values, and collections of name/value pairs. + +JsonCpp is a C++ library that allows manipulating JSON values, including +serialization and deserialization to and from strings. It can also preserve +existing comment in unserialization/serialization steps, making it a convenient +format to store user input files. + +%prep +%setup -q + +%build +# ignore default cmake and use Gentoo's approach +# % {cmake} \ +# -DJSONCPP_LIB_BUILD_SHARED=ON + +CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; +CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; +FFLAGS="${FFLAGS:-%optflags%{?_fmoddir: -I%_fmoddir}}" ; export FFLAGS ; + +# This is the soname that other distros use. +soname="libjsoncpp.so.0" + +echo ${PWD}/ + +c++ src/lib_json/*.cpp -Iinclude -shared -fPIC \ + -Wl,-soname,${soname} -o ${soname} + +ln -sf ${soname} libjsoncpp.so + +%{__python} doxybuild.py --doxygen=%{_bindir}/doxygen + +%install + +# to have the same location as Gentoo, Debian, Ubuntu and Arch see gentoo bug #452234 +mkdir -p %{buildroot}/%{_includedir}/jsoncpp +cp -ra include/json/ %{buildroot}/%{_includedir}/jsoncpp + +mkdir -p %{buildroot}/%{_libdir}/ +cp -a libjsoncpp.so* %{buildroot}/%{_libdir}/ + + +%post -n lib%{name}0 -p /sbin/ldconfig +%postun -n lib%{name}0 -p /sbin/ldconfig + +%files -n lib%{name}0 +%defattr(-,root,root) +%doc LICENSE +%{_libdir}/lib%{name}.so.0 + +%files devel +%defattr(-,root,root) +%doc AUTHORS LICENSE NEWS.txt README.md +%{_libdir}/lib%{name}.so +%{_includedir}/%{name}/ + +%files doc +%defattr(-,root,root) +%doc dist/doxygen/jsoncpp* + +%changelog +