michael@797: ## michael@797: ## jansson.spec -- OpenPKG RPM Specification michael@797: ## Copyright (c) 2014 Michael Schloh von Bennewitz michael@797: ## michael@797: ## Permission to use, copy, modify, and distribute this software for michael@797: ## any purpose with or without fee is hereby granted, provided that michael@797: ## the above copyright notice and this permission notice appear in all michael@797: ## copies. michael@797: ## michael@797: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED michael@797: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@797: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@797: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@797: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@797: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@797: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@797: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@797: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@797: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@797: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@797: ## SUCH DAMAGE. michael@797: ## michael@797: michael@797: michael@797: # package information michael@797: Name: jansson michael@797: Summary: JSON data encoder, decoder and manipulator michael@797: URL: http://www.digip.org/jansson/ michael@797: Vendor: Petri Lehtinen michael@797: Packager: Michael Schloh von Bennewitz michael@797: Distribution: Europalab Networks Production michael@797: Class: EVAL michael@797: Group: Language michael@797: License: MIT michael@797: Version: 2.6 michael@797: Release: 20140800 michael@797: michael@797: # list of sources michael@797: Source0: http://www.digip.org/jansson/releases/jansson-%{version}.tar.gz michael@797: michael@797: # build information michael@797: BuildPreReq: OpenPKG, openpkg >= 20100101, make michael@797: PreReq: OpenPKG, openpkg >= 20100101 michael@797: michael@797: %description michael@797: Jansson is a C library for encoding, decoding and manipulating michael@797: JSON data. It features a simple and intuitive API and data model, michael@797: comprehensive documentation, no dependencies on other libraries, michael@797: full Unicode support (UTF-8), and a extensive test suite. michael@797: michael@797: %track michael@797: prog jansson = { michael@797: version = %{version} michael@797: url = http://www.digip.org/jansson/releases/ michael@797: regex = jansson-(__VER__)\.tar\.gz michael@797: } michael@797: michael@797: %prep michael@797: # unpack sources michael@797: %setup -q michael@797: michael@797: %build michael@797: # prepare configuration michael@797: CC="%{l_cc}" \ michael@797: CFLAGS="%{l_cflags -O}" \ michael@797: CPPFLAGS="%{l_cppflags}" \ michael@797: LDFLAGS="%{l_ldflags}" \ michael@797: ./configure \ michael@797: --prefix=%{l_prefix} \ michael@797: --disable-shared michael@797: michael@797: # build using parallel make michael@797: %{l_make} %{l_mflags -O} michael@797: michael@797: %install michael@797: # run the native installation logic michael@797: %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT michael@797: michael@797: # determine installation files michael@797: %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} michael@797: michael@797: %files -f files michael@797: michael@797: %clean michael@797: