Accepting request 72070 from devel:libraries:c_c++

OBS-URL: https://build.opensuse.org/request/show/72070
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libyajl?expand=0&rev=5
This commit is contained in:
Sascha Peilicke 2011-06-06 14:26:52 +00:00 committed by Git OBS Bridge
commit 81c88188ce
4 changed files with 64 additions and 39 deletions

View File

@ -2,7 +2,7 @@ Index: src/CMakeLists.txt
=================================================================== ===================================================================
--- src/CMakeLists.txt.orig --- src/CMakeLists.txt.orig
+++ src/CMakeLists.txt +++ src/CMakeLists.txt
@@ -42,7 +42,7 @@ SET (PUB_HDRS api/yajl_parse.h api/yajl_ @@ -44,7 +44,7 @@ SET (PUB_HDRS api/yajl_parse.h api/yajl_
ADD_DEFINITIONS(-DYAJL_BUILD) ADD_DEFINITIONS(-DYAJL_BUILD)
# set up some paths # set up some paths

View File

@ -1,2 +1,4 @@
addFilter("no-dependency-on libyajl/libyajl-libs/liblibyajl") addFilter("no-dependency-on libyajl/libyajl-libs/liblibyajl")
addFilter("libyajl-devel-static..*: W: shlib-policy-missing-lib") addFilter("libyajl-devel-static..*: W: shlib-policy-missing-lib")
addFilter("no-manual-page-for-binary .*")
addFilter("macro-in-comment .*")

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Apr 13 10:43:49 MDT 2011 - jfehlig@novell.com
- Add filters to rpmlintrc
- spec file: Document githash usage in tarbal name
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Apr 8 20:43:36 UTC 2011 - coolo@novell.com Fri Apr 8 20:43:36 UTC 2011 - coolo@novell.com

View File

@ -15,47 +15,65 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
# norootforbuild
Name: libyajl
Version: 1.0.11
#
# NB, upstream does not provide pre-built tar.gz downloads. Instead
# they make you use the 'on the fly' generated tar.gz from GITHub's
# web interface
#
# The Source for any version is obtained by a URL
#
# http://github.com/lloyd/yajl/tarball/1.0.7
#
# Which causes a download of a archive named after
# the GIT hash corresponding to the version tag
#
# eg lloyd-yajl-45a1bdb.tar.gz
#
# NB even though the tar.gz is generated on the fly by GITHub it
# will always have identical md5sum
#
# So for new versions, update 'githash' to match the hash of the
# GIT tag associated with updated 'Version:' field just above
%global githash f4baae0
Name: libyajl
Version: 1.0.11
Release: 5
%define soname 1 %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 # http://download.github.com/lloyd-yajl-%{version}-0-g%{githash}.tar.gz
Source: lloyd-yajl-%{version}-0-g%{tag}.tar.bz2 Source: lloyd-yajl-%{version}-0-g%{githash}.tar.bz2
Source1: baselibs.conf Source1: baselibs.conf
Patch1: libyajl-optflags.patch Patch1: libyajl-optflags.patch
Patch2: libyajl-lib_suffix.patch Patch2: libyajl-lib_suffix.patch
Source99: %{name}-rpmlintrc Source99: %{name}-rpmlintrc
Url: http://lloyd.github.com/yajl/ URL: http://lloyd.github.com/yajl/
Group: System/Libraries Group: System/Libraries
License: BSD3c License: BSD3c
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildRequires: bison flex BuildRequires: bison flex
BuildRequires: cmake BuildRequires: cmake
BuildRequires: gcc-c++ libstdc++-devel BuildRequires: gcc-c++ libstdc++-devel
BuildRequires: glibc-devel make BuildRequires: make glibc-devel
%description %description
YAJL is a small event-driven (SAX-style) JSON parser written in ANSI C, and a YAJL is a small event-driven (SAX-style) JSON parser written in ANSI C, and a
small validating JSON generator. small validating JSON generator.
%package -n %{name}%{soname} %package -n %{name}%{soname}
Summary: Yet Another JSON Library
Summary: Yet Another JSON Library Group: System/Libraries
Group: System/Libraries
%description -n %{name}%{soname} %description -n %{name}%{soname}
YAJL is a small event-driven (SAX-style) JSON parser written in ANSI C, and a YAJL is a small event-driven (SAX-style) JSON parser written in ANSI C, and a
small validating JSON generator. small validating JSON generator.
%package -n %{name}-devel %package -n %{name}-devel
Summary: Yet Another JSON Library (Development Environment)
Summary: Yet Another JSON Library (Development Environment) Group: Development/Libraries/C and C++
Group: Development/Libraries/C and C++ Requires: %{name}%{soname} = %{version}
Requires: %{name}%{soname} = %{version}
%description -n %{name}-devel %description -n %{name}-devel
YAJL is a small event-driven (SAX-style) JSON parser written in ANSI C, and a YAJL is a small event-driven (SAX-style) JSON parser written in ANSI C, and a
@ -65,10 +83,9 @@ This package provides the necessary environment for compiling and linking
against %{name}. against %{name}.
%package -n %{name}-devel-static %package -n %{name}-devel-static
Summary: Yet Another JSON Library (Static Library)
Summary: Yet Another JSON Library (Static Library) Group: Development/Libraries/C and C++
Group: Development/Libraries/C and C++ Requires: %{name}-devel = %{version}
Requires: %{name}-devel = %{version}
%description -n %{name}-devel-static %description -n %{name}-devel-static
YAJL is a small event-driven (SAX-style) JSON parser written in ANSI C, and a YAJL is a small event-driven (SAX-style) JSON parser written in ANSI C, and a
@ -78,10 +95,9 @@ This package provides the necessary environment for linking statically
against %{name}. against %{name}.
%package -n yajl %package -n yajl
License: BSD3c Summary: Yet Another JSON Library Tools
Summary: Yet Another JSON Library Tools Group: Productivity/Text/Utilities
Group: Productivity/Text/Utilities Requires: %{name}%{soname} = %{version}
Requires: %{name}%{soname} = %{version}
%description -n yajl %description -n yajl
YAJL is a small event-driven (SAX-style) JSON parser written in ANSI C, and a YAJL is a small event-driven (SAX-style) JSON parser written in ANSI C, and a
@ -90,7 +106,7 @@ small validating JSON generator.
This package provides a few command-line utilities for processing JSON files. This package provides a few command-line utilities for processing JSON files.
%prep %prep
%setup -q -n "lloyd-yajl-%{tag}" %setup -q -n "lloyd-yajl-%{githash}"
%patch1 %patch1
%patch2 %patch2
@ -120,10 +136,10 @@ pushd build
popd build popd build
%check %check
%__make test cd test
./run_tests.sh
%post -n %{name}%{soname} -p /sbin/ldconfig %post -n %{name}%{soname} -p /sbin/ldconfig
%postun -n %{name}%{soname} -p /sbin/ldconfig %postun -n %{name}%{soname} -p /sbin/ldconfig
%clean %clean
@ -148,4 +164,5 @@ popd build
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/json_reformat %{_bindir}/json_reformat
%{_bindir}/json_verify %{_bindir}/json_verify
%changelog