2012-02-01 14:52:06 +04:00
|
|
|
%define libver 1.0
|
|
|
|
%define major 0
|
|
|
|
|
|
|
|
%define libname %mklibname %{name} %{libver} %{major}
|
|
|
|
%define develname %mklibname %{name} -d
|
|
|
|
|
|
|
|
Name: json-glib
|
2015-03-17 16:41:18 +03:00
|
|
|
Version: 1.0.4
|
|
|
|
Release: 1
|
2012-02-01 14:52:06 +04:00
|
|
|
Summary: Library for JavaScript Object Notation format
|
|
|
|
Group: System/Libraries
|
|
|
|
License: LGPLv2+
|
|
|
|
URL: http://live.gnome.org/JsonGlib
|
2014-04-28 20:31:53 +04:00
|
|
|
Source0: http://ftp.gnome.org/pub/GNOME/sources/%{name}/1.0/%{name}-%{version}.tar.xz
|
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
|
|
|
BuildRequires: gtk-doc
|
2012-08-25 15:56:34 +00:00
|
|
|
Requires: %{libname} = %{version}-%{release}
|
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.
|
|
|
|
|
|
|
|
%package -n %{libname}
|
|
|
|
Summary: Shared libraries for %{name}
|
|
|
|
Group: System/Libraries
|
2012-08-25 15:56:34 +00:00
|
|
|
Provides: %{name} = %{version}-%{release}
|
2012-10-19 08:07:29 +00:00
|
|
|
Provides: lib%{name} = %{version}-%{release}
|
2012-02-01 14:52:06 +04:00
|
|
|
|
|
|
|
%description -n %{libname}
|
|
|
|
%{name} is a library providing serialization and deserialization support
|
|
|
|
for the JavaScript Object Notation (JSON) format.
|
|
|
|
|
|
|
|
|
|
|
|
%package -n %{develname}
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/C
|
2012-06-23 12:47:41 +11:00
|
|
|
Provides: lib%{name}-devel = %{version}-%{release}
|
2012-08-25 15:56:34 +00:00
|
|
|
Requires: %{libname} = %{version}-%{release}
|
2012-02-01 14:52:06 +04:00
|
|
|
|
|
|
|
%description -n %{develname}
|
|
|
|
The %{develname} package contains libraries and header files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2012-06-23 12:47:41 +11:00
|
|
|
%configure2_5x --disable-static
|
2012-02-01 14:52:06 +04:00
|
|
|
%make
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
%makeinstall_std
|
|
|
|
|
2012-06-23 12:53:54 +11:00
|
|
|
%find_lang %{name}-%{libver}
|
|
|
|
|
2012-02-01 14:52:06 +04:00
|
|
|
%check
|
|
|
|
%make check
|
|
|
|
|
2012-06-23 12:53:54 +11:00
|
|
|
%files -f %{name}-%{libver}.lang
|
2014-04-28 20:44:37 +04:00
|
|
|
%{_bindir}/*
|
2012-06-23 12:53:54 +11:00
|
|
|
|
2012-02-01 14:52:06 +04:00
|
|
|
%files -n %{libname}
|
|
|
|
%{_libdir}/lib%{name}-%{libver}.so.%{major}*
|
|
|
|
%_libdir/girepository-1.0/Json-%{libver}.typelib
|
|
|
|
|
|
|
|
%files -n %{develname}
|
2013-06-20 20:13:19 +04:00
|
|
|
%doc NEWS ChangeLog
|
2012-02-01 14:52:06 +04:00
|
|
|
%{_libdir}/lib%{name}-%{libver}.so
|
|
|
|
%{_libdir}/pkgconfig/%{name}-%{libver}.pc
|
|
|
|
%{_includedir}/%{name}-%{libver}/
|
2014-04-28 20:44:37 +04:00
|
|
|
%dir %{_datadir}/gtk-doc/html
|
2012-02-01 14:52:06 +04:00
|
|
|
%{_datadir}/gtk-doc/html/%{name}/
|
|
|
|
%{_datadir}/gir-1.0/Json-%{libver}.gir
|
2014-05-28 17:04:35 +04:00
|
|
|
%{_mandir}/man1/*
|