commit b9dadc686557c8a471f34b64347ab4669bf1f70dfc471811d7ab656dc6d617d2 Author: Michal Hrusecky (old before rename to _miska_) Date: Thu Sep 4 14:10:17 2014 +0000 Accepting request 247560 from home:mvyskocil:branches:devel:libraries:c_c++ add libvariant to d:l:c_c++, fixes requires of devel package, thanks @jengelh OBS-URL: https://build.opensuse.org/request/show/247560 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libvariant?expand=0&rev=1 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..855a085 --- /dev/null +++ b/_service @@ -0,0 +1,16 @@ + + + https://bitbucket.org/gallen/libvariant + hg + .hg + 1.0.0+hg.{date}.{node|short} + default + + + libvariant-1.0.0+hg*hg*.tar + xz + + + libvariant + + diff --git a/libvariant-1.0.0+hg.1402695573.018000.7be29548fe78.tar.xz b/libvariant-1.0.0+hg.1402695573.018000.7be29548fe78.tar.xz new file mode 100644 index 0000000..5f3204f --- /dev/null +++ b/libvariant-1.0.0+hg.1402695573.018000.7be29548fe78.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:883cec5934b13b3bbd8d455dcf732b6dbd1c35aed6745ef761a61eef28ca45bb +size 156592 diff --git a/libvariant.changes b/libvariant.changes new file mode 100644 index 0000000..9a14a24 --- /dev/null +++ b/libvariant.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Thu Sep 4 12:03:02 UTC 2014 - mvyskocil@opensuse.org + +- Initial packaging of libvariant 1.0.0 for openSUSE + diff --git a/libvariant.spec b/libvariant.spec new file mode 100644 index 0000000..4f129df --- /dev/null +++ b/libvariant.spec @@ -0,0 +1,98 @@ +# +# 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: libvariant +Version: 1.0.0+hg.1402695573.018000.7be29548fe78 +Release: 0 +License: LGPL-2.0+ +Summary: C++ serialization library +Url: https://bitbucket.org/gallen/libvariant +Group: Devel/Libraries/C and C++ +Source: %{name}-%{version}.tar.xz +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +BuildRequires: gcc-c++ +BuildRequires: cmake +BuildRequires: libyaml-devel +BuildRequires: libxml2-devel +BuildRequires: libcurl-devel +BuildRequires: pkg-config +#BuildRequires: doxygen + +%description +C++ Variant class and serialization library. Features: + +* Scripting language like variable (Variant) in C++. +* JSON serialization. +* YAML serialization. Deserialization ignores most tags. +* plist serialization. +* Schema validation based on json-schema. +* Schema lookup can be set to use libcurl to fetch remote URLs. +* A simple argument parsing (ArgParse) class that produces a + Variant from a programs arguments. + +%package -n libVariant1_0_0 +Summary: Shared library for %{name} +Group: Development/Languages/C and C++ + +%description -n libVariant1_0_0 +C++ Variant class and serialization library. This package contains shared library. + +%package devel +Summary: Development files for %{name} +Group: Development/Languages/C and C++ +Requires: libVariant1_0_0 = %{version} + +%description devel +C++ Variant class and serialization library. This package contains development files. + +%prep +%setup -q + +%build +%cmake \ + -DINSTALL_LIB_DIR=%{_lib} \ + -DLIBVARIANT_BUILD_DEBUG=ON +make %{?_smp_mflags} +#make doc + +%install +%cmake_install + +%post -n libVariant1_0_0 -p /sbin/ldconfig + +%postun -n libVariant1_0_0 -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%doc LICENSE README.md +%{_bindir}/varsh + +%files -n libVariant1_0_0 +%defattr(-,root,root) +%doc LICENSE +%{_libdir}/libVariant.so.* + +%files devel +%defattr(-,root,root) +%{_includedir}/Variant +%{_libdir}/libVariant.so +%{_libdir}/pkgconfig/libvariant.pc +%{_libdir}/cmake/LibVariant + +%changelog +