OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libmjson?expand=0&rev=3
67 lines
1.8 KiB
RPMSpec
67 lines
1.8 KiB
RPMSpec
#
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
Name: libmjson
|
|
Version: 1.2
|
|
Release: 1
|
|
License: LGPL-2.1
|
|
Summary: Small library which handles JSON documents
|
|
Url: http://sourceforge.net/projects/mjson/
|
|
Group: Development/Libraries/C and C++
|
|
Source: mjson-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: pkgconfig
|
|
%define soname %{name}-1_2
|
|
|
|
%description
|
|
M's JSON parser is a small library completely written in plain ISO C
|
|
which handles documents described by the JavaScript Object Notation
|
|
(JSON) data interchange format.
|
|
|
|
%package -n libmjson-1_2
|
|
Summary: Small library which handles JSON documents
|
|
Group: Development/Libraries/C and C++
|
|
|
|
%description -n libmjson-1_2
|
|
M's JSON parser is a small library completely written in plain ISO C
|
|
which handles documents described by the JavaScript Object Notation
|
|
(JSON) data interchange format.
|
|
|
|
%package devel
|
|
Summary: Development files for MJSON
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %{soname} = %{version}
|
|
|
|
%description devel
|
|
M's JSON parser is a small library completely written in plain ISO C
|
|
which handles documents described by the JavaScript Object Notation
|
|
(JSON) data interchange format.
|
|
|
|
%prep
|
|
%setup -q -n json-%{version}
|
|
|
|
%build
|
|
%configure --disable-static
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
make install DESTDIR="%buildroot"
|
|
rm -rf %{buildroot}%{_libdir}/libmjson.la
|
|
|
|
%post -n %{soname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{soname} -p /sbin/ldconfig
|
|
|
|
%files -n %{soname}
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libmjson-%{version}.so
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_includedir}/mjson-%{version}
|
|
%{_libdir}/libmjson.so
|
|
%{_libdir}/pkgconfig/mjson-%{version}.pc
|
|
|
|
%changelog
|