Accepting request 304052 from devel:libraries:c_c++
1 OBS-URL: https://build.opensuse.org/request/show/304052 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libyajl?expand=0&rev=20
This commit is contained in:
commit
73238b7b27
BIN
2.1.0.tar.gz
(Stored with Git LFS)
Normal file
BIN
2.1.0.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Apr 26 13:12:49 UTC 2015 - mpluskal@suse.com
|
||||
|
||||
- Use correct url for download
|
||||
- Add dependency on doxygen for doc generation
|
||||
- Cleanup spec file with spec-clener
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 05 12:00:00 UTC 2014 - ku.b@gmx.de
|
||||
|
||||
|
60
libyajl.spec
60
libyajl.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package libyajl
|
||||
#
|
||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -16,60 +16,35 @@
|
||||
#
|
||||
|
||||
|
||||
%define soname 2
|
||||
Name: libyajl
|
||||
Version: 2.1.0
|
||||
Release: 0
|
||||
#
|
||||
# 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 66cb08c
|
||||
|
||||
%define soname 2
|
||||
Summary: Yet Another JSON Library
|
||||
Summary: Yet Another JSON Library
|
||||
License: ISC
|
||||
Group: System/Libraries
|
||||
# http://download.github.com/lloyd-yajl-%{version}-0-g%{githash}.tar.gz
|
||||
Source: lloyd-yajl-%{version}-0-g%{githash}.tar.gz
|
||||
Url: http://lloyd.github.com/yajl/
|
||||
Source0: https://github.com/lloyd/yajl/archive/%{version}.tar.gz
|
||||
Source1: baselibs.conf
|
||||
Source2: json_reformat.1
|
||||
Source3: json_verify.1
|
||||
Source99: %{name}-rpmlintrc
|
||||
Patch1: libyajl-optflags.patch
|
||||
Patch2: libyajl-lib_suffix.patch
|
||||
Source99: %{name}-rpmlintrc
|
||||
Url: http://lloyd.github.com/yajl/
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: bison
|
||||
BuildRequires: cmake
|
||||
BuildRequires: doxygen
|
||||
BuildRequires: flex
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: glibc-devel
|
||||
BuildRequires: libstdc++-devel
|
||||
BuildRequires: make
|
||||
BuildRequires: pkg-config
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%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
|
||||
Summary: Yet Another JSON Library
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n %{name}%{soname}
|
||||
@ -77,7 +52,6 @@ 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}
|
||||
@ -90,7 +64,6 @@ 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}
|
||||
@ -103,7 +76,6 @@ 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}
|
||||
@ -115,21 +87,21 @@ small validating JSON generator.
|
||||
This package provides a few command-line utilities for processing JSON files.
|
||||
|
||||
%prep
|
||||
%setup -q -n "lloyd-yajl-%{githash}"
|
||||
%setup -q -n yajl-%{version}
|
||||
%patch1 -p1 -b .optflags
|
||||
%patch2 -p1 -b .lib_suffix
|
||||
|
||||
%build
|
||||
%cmake
|
||||
%{__make} %{_smp_mflags}
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
%cmake_install
|
||||
install -d -m 0755 $RPM_BUILD_ROOT%{_mandir}/man1
|
||||
install -m644 %SOURCE2 %SOURCE3 $RPM_BUILD_ROOT/%{_mandir}/man1
|
||||
install -d -m 0755 %{buildroot}%{_mandir}/man1
|
||||
install -m644 %{SOURCE2} %{SOURCE3} %{buildroot}/%{_mandir}/man1
|
||||
|
||||
%check
|
||||
make test
|
||||
make %{?_smp_mflags} test
|
||||
|
||||
%post -n %{name}%{soname} -p /sbin/ldconfig
|
||||
|
||||
@ -153,8 +125,8 @@ make test
|
||||
|
||||
%files -n yajl
|
||||
%defattr(-,root,root)
|
||||
%doc %{_mandir}/man1/json_reformat.1*
|
||||
%doc %{_mandir}/man1/json_verify.1*
|
||||
%{_mandir}/man1/json_reformat.1*
|
||||
%{_mandir}/man1/json_verify.1*
|
||||
%{_bindir}/json_reformat
|
||||
%{_bindir}/json_verify
|
||||
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:510a13e0be57cd4ba99e60ac806a3635854af51316d3131d3742a90298ccde38
|
||||
size 84039
|
Loading…
x
Reference in New Issue
Block a user