mirror of
https://abf.rosa.ru/djam/json-glib.git
synced 2025-02-23 10:12:50 +00:00
77 lines
1.9 KiB
RPMSpec
77 lines
1.9 KiB
RPMSpec
%define libver 1.0
|
|
%define major 0
|
|
|
|
%define libname %mklibname %{name} %{libver} %{major}
|
|
%define develname %mklibname %{name} -d
|
|
|
|
Name: json-glib
|
|
Version: 1.0.0
|
|
Release: 1
|
|
Summary: Library for JavaScript Object Notation format
|
|
Group: System/Libraries
|
|
License: LGPLv2+
|
|
URL: http://live.gnome.org/JsonGlib
|
|
Source0: http://ftp.gnome.org/pub/GNOME/sources/%{name}/1.0/%{name}-%{version}.tar.xz
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
|
BuildRequires: gtk-doc
|
|
Requires: %{libname} = %{version}-%{release}
|
|
|
|
%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
|
|
Provides: %{name} = %{version}-%{release}
|
|
Provides: lib%{name} = %{version}-%{release}
|
|
|
|
%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
|
|
Provides: lib%{name}-devel = %{version}-%{release}
|
|
Requires: %{libname} = %{version}-%{release}
|
|
|
|
%description -n %{develname}
|
|
The %{develname} package contains libraries and header files for
|
|
developing applications that use %{name}.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%configure2_5x --disable-static
|
|
%make
|
|
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
%makeinstall_std
|
|
|
|
%find_lang %{name}-%{libver}
|
|
|
|
%check
|
|
%make check
|
|
|
|
%files -f %{name}-%{libver}.lang
|
|
%{_bindir}/*
|
|
|
|
%files -n %{libname}
|
|
%{_libdir}/lib%{name}-%{libver}.so.%{major}*
|
|
%_libdir/girepository-1.0/Json-%{libver}.typelib
|
|
|
|
%files -n %{develname}
|
|
%doc NEWS ChangeLog
|
|
%{_libdir}/lib%{name}-%{libver}.so
|
|
%{_libdir}/pkgconfig/%{name}-%{libver}.pc
|
|
%{_includedir}/%{name}-%{libver}/
|
|
%dir %{_datadir}/gtk-doc/html
|
|
%{_datadir}/gtk-doc/html/%{name}/
|
|
%{_datadir}/gir-1.0/Json-%{libver}.gir
|
|
%{_mandir}/man1/*
|