libjansson/libjansson.spec
2011-10-21 16:16:23 +00:00

92 lines
2.6 KiB
RPMSpec

#
# spec file for package libjansson (Version 0.7.1)
#
# Copyright (c) 2009 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: libjansson
%define lname libjansson4
Summary: C library for encoding, decoding and manipulating JSON data
Version: 2.2.1
Release: 1
License: MIT
Url: http://www.digip.org/jansson/
Source: jansson-%{version}.tar.bz2
Group: Development/Libraries/C and C++
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Jansson is a C library for encoding, decoding and manipulating JSON data.
It features:
* Simple and intuitive API and data model
* Comprehensive documentation
* No dependencies on other libraries
* Full Unicode support (UTF-8)
* Extensive test suite
%package -n %lname
Summary: C library for encoding, decoding and manipulating JSON data
Group: Development/Libraries/C and C++
%description -n %lname
Jansson is a C library for encoding, decoding and manipulating JSON data.
It features:
* Simple and intuitive API and data model
* Comprehensive documentation
* No dependencies on other libraries
* Full Unicode support (UTF-8)
* Extensive test suite
%package devel
Summary: Development files for libjansson
Group: Development/Libraries/C and C++
Requires: %lname = %version
%description devel
Jansson is a C library for encoding, decoding and manipulating JSON data.
It features:
* Simple and intuitive API and data model
* Comprehensive documentation
* No dependencies on other libraries
* Full Unicode support (UTF-8)
* Extensive test suite
%prep
%setup -q -n jansson-%{version}
%build
%configure --disable-static
make %{?_smp_mflags}
%install
%makeinstall
rm -f "%buildroot/%_libdir"/*.la;
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files -n %lname
%defattr(-,root,root)
%{_libdir}/libjansson.so.4*
%files devel
%defattr(-,root,root)
%{_includedir}/jansson.h
%{_includedir}/jansson_config.h
%{_libdir}/libjansson.so
%{_libdir}/pkgconfig/jansson.pc
%changelog