Group :: System/Libraries
RPM: libjson-glib
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define _name json-glib
%def_disable gtk_doc
%def_disable static
Name: lib%_name
Version: 0.6.2
Release: alt1
Summary: Library for JavaScript Object Notation format
Group: System/Libraries
License: LGPLv2+
Url: http://live.gnome.org/JsonGlib
Source: http://folks.o-hand.com/~ebassi/sources/%_name-%version.tar.gz
%define glib_ver 2.15
%{?_enable_static:BuildPreReq: glibc-devel-static}
BuildRequires: glib2-devel >= %glib_ver gtk-doc
%description
%_name is a library providing serialization and deserialization support
for the JavaScript Object Notation (JSON) format.
%package devel
Summary: Development files for %_name
Group: Development/C
Requires: %name = %version-%release
%description devel
The %name-devel package contains libraries and header files for
developing applications that use %name.
%prep
%setup -q -n %_name-%version
%build
%configure \
%{subst_enable static} \
%{?_enable_gtk_doc:--enable-gtk-doc}
%make_build
%install
%make DESTDIR=%buildroot install
%post -p %post_ldconfig
%postun -p %postun_ldconfig
%files
%doc README NEWS
%_libdir/*.so.*
%files devel
%_libdir/*.so
%_libdir/pkgconfig/*
%_includedir/*
%_datadir/gtk-doc/html/*
%changelog
…
Full changelog you can see here
%def_disable gtk_doc
%def_disable static
Name: lib%_name
Version: 0.6.2
Release: alt1
Summary: Library for JavaScript Object Notation format
Group: System/Libraries
License: LGPLv2+
Url: http://live.gnome.org/JsonGlib
Source: http://folks.o-hand.com/~ebassi/sources/%_name-%version.tar.gz
%define glib_ver 2.15
%{?_enable_static:BuildPreReq: glibc-devel-static}
BuildRequires: glib2-devel >= %glib_ver gtk-doc
%description
%_name is a library providing serialization and deserialization support
for the JavaScript Object Notation (JSON) format.
%package devel
Summary: Development files for %_name
Group: Development/C
Requires: %name = %version-%release
%description devel
The %name-devel package contains libraries and header files for
developing applications that use %name.
%prep
%setup -q -n %_name-%version
%build
%configure \
%{subst_enable static} \
%{?_enable_gtk_doc:--enable-gtk-doc}
%make_build
%install
%make DESTDIR=%buildroot install
%post -p %post_ldconfig
%postun -p %postun_ldconfig
%files
%doc README NEWS
%_libdir/*.so.*
%files devel
%_libdir/*.so
%_libdir/pkgconfig/*
%_includedir/*
%_datadir/gtk-doc/html/*
%changelog
…
Full changelog you can see here