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
This commit is contained in:
Michal Hrusecky (old before rename to _miska_)
2014-09-04 14:10:17 +00:00
committed by Git OBS Bridge
commit b9dadc6865
6 changed files with 146 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

16
_service Normal file
View File

@@ -0,0 +1,16 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="url">https://bitbucket.org/gallen/libvariant</param>
<param name="scm">hg</param>
<param name="exclude">.hg</param>
<param name="versionformat">1.0.0+hg.{date}.{node|short}</param>
<param name="revision">default</param>
</service>
<service name="recompress" mode="disabled">
<param name="file">libvariant-1.0.0+hg*hg*.tar</param>
<param name="compression">xz</param>
</service>
<service name="set_version" mode="disabled">
<param name="basename">libvariant</param>
</service>
</services>

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:883cec5934b13b3bbd8d455dcf732b6dbd1c35aed6745ef761a61eef28ca45bb
size 156592

5
libvariant.changes Normal file
View File

@@ -0,0 +1,5 @@
-------------------------------------------------------------------
Thu Sep 4 12:03:02 UTC 2014 - mvyskocil@opensuse.org
- Initial packaging of libvariant 1.0.0 for openSUSE

98
libvariant.spec Normal file
View File

@@ -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