json-glib/json-glib.spec

94 lines
2.3 KiB
RPMSpec
Raw Normal View History

%define api 1.0
2012-02-01 14:52:06 +04:00
%define major 0
%define libname %mklibname %{name} %{api} %{major}
%define girname %mklibname %{name}-gir %{api}
%define devname %mklibname %{name} -d
2012-02-01 14:52:06 +04:00
Summary: Library for JavaScript Object Notation format
2012-02-01 14:52:06 +04:00
Name: json-glib
Version: 1.2.2
2016-10-14 21:21:28 +04:00
Release: 2
2012-02-01 14:52:06 +04:00
License: LGPLv2+
Group: System/Libraries
Url: http://live.gnome.org/JsonGlib
Source0: http://ftp.gnome.org/pub/GNOME/sources/%{name}/1.2/%{name}-%{version}.tar.xz
BuildRequires: gtk-doc
2012-08-25 15:56:34 +00:00
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gobject-introspection-1.0)
2012-02-01 14:52:06 +04:00
%description
%{name} is a library providing serialization and deserialization support
for the JavaScript Object Notation (JSON) format.
%files -f %{name}-%{api}.lang
%{_bindir}/*
#----------------------------------------------------------------------------
2012-02-01 14:52:06 +04:00
%package -n %{libname}
Summary: Shared libraries for %{name}
Group: System/Libraries
%description -n %{libname}
%{name} is a library providing serialization and deserialization support
for the JavaScript Object Notation (JSON) format.
%files -n %{libname}
%{_libdir}/lib%{name}-%{api}.so.%{major}*
#----------------------------------------------------------------------------
%package -n %{girname}
Summary: GObject introspection interface library for %{name}
Group: System/Libraries
Requires: %{libname} = %{EVRD}
Conflicts: %{_lib}json-gliblib1.0_0 < 1.2.2
%description -n %{girname}
GObject introspection interface library for %{name}.
2012-02-01 14:52:06 +04:00
%files -n %{girname}
%{_libdir}/girepository-1.0/Json-%{api}.typelib
#----------------------------------------------------------------------------
%package -n %{devname}
2012-02-01 14:52:06 +04:00
Summary: Development files for %{name}
Group: Development/C
Requires: %{libname} = %{EVRD}
Requires: %{girname} = %{EVRD}
Provides: %{name}-devel = %{EVRD}
2012-02-01 14:52:06 +04:00
%description -n %{devname}
The %{devname} package contains libraries and header files for
2012-02-01 14:52:06 +04:00
developing applications that use %{name}.
%files -n %{devname}
%doc NEWS ChangeLog
%{_libdir}/lib%{name}-%{api}.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc
%{_includedir}/%{name}-%{api}/
%dir %{_datadir}/gtk-doc/html
%{_datadir}/gtk-doc/html/%{name}/
%{_datadir}/gir-1.0/Json-%{api}.gir
#----------------------------------------------------------------------------
2012-02-01 14:52:06 +04:00
%prep
%setup -q
%build
%configure2_5x \
--disable-static \
--disable-man
%make
2012-02-01 14:52:06 +04:00
%install
%makeinstall_std
%find_lang %{name}-%{api}
2012-06-23 12:53:54 +11:00
2012-02-01 14:52:06 +04:00
%check
%make check