Autobuild autoformatter for 66555

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libyajl?expand=0&rev=4
This commit is contained in:
Sascha Peilicke 2011-04-11 08:02:19 +00:00 committed by Git OBS Bridge
parent 5d8a6a99f6
commit f6612d98da

View File

@ -1,42 +1,61 @@
# vim: set sw=4 ts=4 et nu:
#
# spec file for package libyajl
#
# Copyright (c) 2011 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.
Name: libyajl
Version: 1.0.11
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: libyajl
Version: 1.0.11
Release: 5
%define soname 1
%define tag f4baae0
Release: 0
Summary: Yet Another JSON Library
Summary: Yet Another JSON Library
# http://download.github.com/lloyd-yajl-%{version}-0-g%{tag}.tar.gz
Source: lloyd-yajl-%{version}-0-g%{tag}.tar.bz2
Source1: baselibs.conf
Patch1: libyajl-optflags.patch
Patch2: libyajl-lib_suffix.patch
Source99: %{name}-rpmlintrc
URL: http://lloyd.github.com/yajl/
Group: System/Libraries
License: BSD3c
BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildRequires: bison flex
BuildRequires: cmake
BuildRequires: gcc-c++ libstdc++-devel
BuildRequires: make glibc-devel
Source: lloyd-yajl-%{version}-0-g%{tag}.tar.bz2
Source1: baselibs.conf
Patch1: libyajl-optflags.patch
Patch2: libyajl-lib_suffix.patch
Source99: %{name}-rpmlintrc
Url: http://lloyd.github.com/yajl/
Group: System/Libraries
License: BSD3c
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: bison flex
BuildRequires: cmake
BuildRequires: gcc-c++ libstdc++-devel
BuildRequires: glibc-devel make
%description
YAJL is a small event-driven (SAX-style) JSON parser written in ANSI C, and a
small validating JSON generator.
%package -n %{name}%{soname}
Summary: Yet Another JSON Library
Group: System/Libraries
Summary: Yet Another JSON Library
Group: System/Libraries
%description -n %{name}%{soname}
YAJL is a small event-driven (SAX-style) JSON parser written in ANSI C, and a
small validating JSON generator.
%package -n %{name}-devel
Summary: Yet Another JSON Library (Development Environment)
Group: Development/Libraries/C and C++
Requires: %{name}%{soname} = %{version}
Summary: Yet Another JSON Library (Development Environment)
Group: Development/Libraries/C and C++
Requires: %{name}%{soname} = %{version}
%description -n %{name}-devel
YAJL is a small event-driven (SAX-style) JSON parser written in ANSI C, and a
@ -46,9 +65,10 @@ This package provides the necessary environment for compiling and linking
against %{name}.
%package -n %{name}-devel-static
Summary: Yet Another JSON Library (Static Library)
Group: Development/Libraries/C and C++
Requires: %{name}-devel = %{version}
Summary: Yet Another JSON Library (Static Library)
Group: Development/Libraries/C and C++
Requires: %{name}-devel = %{version}
%description -n %{name}-devel-static
YAJL is a small event-driven (SAX-style) JSON parser written in ANSI C, and a
@ -58,9 +78,10 @@ This package provides the necessary environment for linking statically
against %{name}.
%package -n yajl
Summary: Yet Another JSON Library Tools
Group: Productivity/Text/Utilities
Requires: %{name}%{soname} = %{version}
License: BSD3c
Summary: Yet Another JSON Library Tools
Group: Productivity/Text/Utilities
Requires: %{name}%{soname} = %{version}
%description -n yajl
YAJL is a small event-driven (SAX-style) JSON parser written in ANSI C, and a
@ -102,6 +123,7 @@ popd build
%__make test
%post -n %{name}%{soname} -p /sbin/ldconfig
%postun -n %{name}%{soname} -p /sbin/ldconfig
%clean
@ -126,4 +148,4 @@ popd build
%defattr(-,root,root)
%{_bindir}/json_reformat
%{_bindir}/json_verify
%changelog