2008-05-31 16:34:21 +00:00
|
|
|
%define glib_ver 2.15
|
|
|
|
|
2008-05-31 00:02:27 +00:00
|
|
|
Name: json-glib
|
2008-05-31 16:34:21 +00:00
|
|
|
Version: 0.6.2
|
2009-02-27 00:08:42 +00:00
|
|
|
Release: 3%{?dist}
|
2008-05-31 00:02:27 +00:00
|
|
|
Summary: Library for JavaScript Object Notation format
|
|
|
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
License: LGPLv2+
|
|
|
|
URL: http://live.gnome.org/JsonGlib
|
|
|
|
Source0: http://folks.o-hand.com/~ebassi/sources/%{name}-%{version}.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
2008-05-31 16:34:21 +00:00
|
|
|
BuildRequires: glib2-devel >= %{glib_ver}
|
2008-05-31 00:02:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
%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/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2008-05-31 16:34:21 +00:00
|
|
|
Requires: glib2-devel >= %{glib_ver}
|
2008-05-31 00:02:27 +00:00
|
|
|
Requires: gtk-doc
|
|
|
|
Requires: pkgconfig
|
|
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure --enable-static=no
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
|
|
|
|
|
|
|
# Copy the files from the tarball to avoid the IDs generated by gtk-doc being
|
|
|
|
# different on different builds
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/gtk-doc/html/%{name}/
|
|
|
|
cp -a doc/reference/html/* $RPM_BUILD_ROOT%{_datadir}/gtk-doc/html/%{name}/
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
2009-02-27 00:08:42 +00:00
|
|
|
# make check
|
2008-05-31 00:02:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING README NEWS
|
|
|
|
%{_libdir}/lib%{name}*.so.*
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/lib%{name}*.so
|
|
|
|
%{_libdir}/pkgconfig/%{name}-1.0.pc
|
|
|
|
%{_includedir}/%{name}-1.0/
|
|
|
|
%{_datadir}/gtk-doc/html/%{name}/
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2009-02-27 00:08:42 +00:00
|
|
|
* Thu Feb 26 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.6.2-3
|
|
|
|
- Disable tests for now.
|
|
|
|
|
2009-02-25 09:49:44 +00:00
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-05-31 16:34:21 +00:00
|
|
|
* Sat May 31 2008 Brian Pepple <bpepple@fedoraproject.org> - 0.6.2-1
|
|
|
|
- Update to 0.6.2.
|
|
|
|
- Enable tests.
|
|
|
|
|
2008-05-31 00:02:27 +00:00
|
|
|
* Mon May 19 2008 Brian Pepple <bpepple@fedoraproject.org> - 0.6.0-1
|
|
|
|
- Update 0.6.0.
|
|
|
|
- Disable tests for now.
|
|
|
|
- Add requires on gtk-doc.
|
|
|
|
|
|
|
|
* Sun Apr 20 2008 Brian Pepple <bpepple@fedoraproject.org> - 0.4.0-1
|
|
|
|
- Initial Fedora spec.
|
|
|
|
|