%define api 1.0 %define major 0 %define libname %mklibname %{name} %{api} %{major} %define girname %mklibname %{name}-gir %{api} %define devname %mklibname %{name} -d Summary: Library for JavaScript Object Notation format Name: json-glib Version: 1.2.2 Release: 2 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 BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gobject-introspection-1.0) %description %{name} is a library providing serialization and deserialization support for the JavaScript Object Notation (JSON) format. %files -f %{name}-%{api}.lang %{_bindir}/* #---------------------------------------------------------------------------- %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}. %files -n %{girname} %{_libdir}/girepository-1.0/Json-%{api}.typelib #---------------------------------------------------------------------------- %package -n %{devname} Summary: Development files for %{name} Group: Development/C Requires: %{libname} = %{EVRD} Requires: %{girname} = %{EVRD} Provides: %{name}-devel = %{EVRD} %description -n %{devname} The %{devname} package contains libraries and header files for 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 #---------------------------------------------------------------------------- %prep %setup -q %build %configure2_5x \ --disable-static \ --disable-man %make %install %makeinstall_std %find_lang %{name}-%{api} %check %make check