prepare_spec
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libyajl?expand=0&rev=11
This commit is contained in:
parent
bd646bb122
commit
293fdafe32
69
libyajl.spec
69
libyajl.spec
@ -17,8 +17,10 @@
|
|||||||
|
|
||||||
# norootforbuild
|
# norootforbuild
|
||||||
|
|
||||||
Name: libyajl
|
|
||||||
Version: 1.0.11
|
Name: libyajl
|
||||||
|
Version: 1.0.11
|
||||||
|
Release: 0
|
||||||
#
|
#
|
||||||
# NB, upstream does not provide pre-built tar.gz downloads. Instead
|
# 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
|
# they make you use the 'on the fly' generated tar.gz from GITHub's
|
||||||
@ -41,41 +43,42 @@ Version: 1.0.11
|
|||||||
%global githash f4baae0
|
%global githash f4baae0
|
||||||
|
|
||||||
%define soname 1
|
%define soname 1
|
||||||
Release: 0
|
Summary: Yet Another JSON Library
|
||||||
Summary: Yet Another JSON Library
|
|
||||||
# http://download.github.com/lloyd-yajl-%{version}-0-g%{githash}.tar.gz
|
# http://download.github.com/lloyd-yajl-%{version}-0-g%{githash}.tar.gz
|
||||||
Source: lloyd-yajl-%{version}-0-g%{githash}.tar.bz2
|
Source: lloyd-yajl-%{version}-0-g%{githash}.tar.bz2
|
||||||
Source1: baselibs.conf
|
Source1: baselibs.conf
|
||||||
Source2: json_reformat.1
|
Source2: json_reformat.1
|
||||||
Source3: json_verify.1
|
Source3: json_verify.1
|
||||||
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}/build-%{name}-%{version}
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: bison flex
|
BuildRequires: bison flex
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: gcc-c++ libstdc++-devel
|
BuildRequires: gcc-c++ libstdc++-devel
|
||||||
BuildRequires: make glibc-devel
|
BuildRequires: glibc-devel make
|
||||||
|
|
||||||
%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
|
|
||||||
Group: System/Libraries
|
Summary: Yet Another JSON Library
|
||||||
|
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)
|
|
||||||
Group: Development/Libraries/C and C++
|
Summary: Yet Another JSON Library (Development Environment)
|
||||||
Requires: %{name}%{soname} = %{version}
|
Group: Development/Libraries/C and C++
|
||||||
|
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
|
||||||
@ -85,9 +88,10 @@ 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)
|
|
||||||
Group: Development/Libraries/C and C++
|
Summary: Yet Another JSON Library (Static Library)
|
||||||
Requires: %{name}-devel = %{version}
|
Group: Development/Libraries/C and C++
|
||||||
|
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
|
||||||
@ -97,9 +101,10 @@ This package provides the necessary environment for linking statically
|
|||||||
against %{name}.
|
against %{name}.
|
||||||
|
|
||||||
%package -n yajl
|
%package -n yajl
|
||||||
Summary: Yet Another JSON Library Tools
|
|
||||||
Group: Productivity/Text/Utilities
|
Summary: Yet Another JSON Library Tools
|
||||||
Requires: %{name}%{soname} = %{version}
|
Group: Productivity/Text/Utilities
|
||||||
|
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
|
||||||
@ -144,6 +149,7 @@ cd test
|
|||||||
./run_tests.sh
|
./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
|
||||||
@ -170,5 +176,4 @@ cd test
|
|||||||
%doc %{_mandir}/man1/json_verify.1*
|
%doc %{_mandir}/man1/json_verify.1*
|
||||||
%{_bindir}/json_reformat
|
%{_bindir}/json_reformat
|
||||||
%{_bindir}/json_verify
|
%{_bindir}/json_verify
|
||||||
|
%changelog
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user