150 lines
4.0 KiB
RPMSpec
150 lines
4.0 KiB
RPMSpec
%define glib_ver 2.16
|
|
|
|
Name: json-glib
|
|
Version: 0.12.0
|
|
Release: 2%{?dist}
|
|
Summary: Library for JavaScript Object Notation format
|
|
|
|
Group: System Environment/Libraries
|
|
License: LGPLv2+
|
|
URL: http://live.gnome.org/JsonGlib
|
|
#VCS: git:git://git.gnome.org/json-glib
|
|
Source0: http://ftp.gnome.org/pub/GNOME/sources/%{name}/0.11/%{name}-%{version}.tar.bz2
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildRequires: glib2-devel >= %{glib_ver}
|
|
BuildRequires: gobject-introspection-devel
|
|
|
|
|
|
%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}
|
|
Requires: glib2-devel >= %{glib_ver}
|
|
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 -n %{name}-%{version}
|
|
|
|
|
|
%build
|
|
%configure --enable-static=no
|
|
make %{?_smp_mflags} V=1
|
|
|
|
|
|
%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
|
|
# make check
|
|
|
|
|
|
%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.*
|
|
%{_libdir}/girepository-1.0/Json-1.0.typelib
|
|
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/lib%{name}*.so
|
|
%{_libdir}/pkgconfig/%{name}-1.0.pc
|
|
%{_includedir}/%{name}-1.0/
|
|
%{_datadir}/gtk-doc/html/%{name}/
|
|
%{_datadir}/gir-1.0/Json-1.0.gir
|
|
|
|
|
|
%changelog
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12.0-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
* Mon Nov 29 2010 Owen Taylor <otaylor@redhat.com> - 0.12-1
|
|
- Update to 0.12.0
|
|
|
|
* Wed Sep 29 2010 jkeating - 0.11.3-0.2.git19b0b87
|
|
- Rebuilt for gcc bug 634757
|
|
|
|
* Wed Sep 22 2010 Matthias Clasen <mclasen@redhat.com> - 0.11.3-0.1.git19b0b87
|
|
- git snapshot
|
|
|
|
* Tue Sep 21 2010 Matthias Clasen <mclasen@redhat.com> - 0.10.4-4
|
|
- Rebuild with newer gobject-introspection
|
|
|
|
* Thu Jul 15 2010 Colin Walters <walters@verbum.org> - 0.10.4-3
|
|
- Rebuild with new gobject-introspection
|
|
|
|
* Thu Jul 1 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.10.4-2
|
|
- Rebuild for "Incompatible version 1.0 (supported: 1.1)"
|
|
for introspection file
|
|
|
|
* Fri Mar 19 2010 Brian Pepple <bpepple@fedoraproject.org> - 0.10.4-1
|
|
- Update to 0.10.4.
|
|
|
|
* Wed Jan 27 2010 Peter Robinson <pbrobinson@gmail.com> - 0.10.0-3
|
|
- Require the gobject-introspection-devel package, not the library
|
|
|
|
* Wed Jan 27 2010 Peter Robinson <pbrobinson@gmail.com> - 0.10.0-2
|
|
- Enable gobject-introspection support
|
|
|
|
* Tue Dec 29 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.10.0-1
|
|
- Update to 0.10.0.
|
|
|
|
* Mon Nov 16 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.8.2-1
|
|
- Update to 0.8.2.
|
|
|
|
* Tue Sep 29 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.8.0-1
|
|
- Update to 0.8.0.
|
|
- Update source url.
|
|
|
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.2-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
* Thu Feb 26 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.6.2-3
|
|
- Disable tests for now.
|
|
|
|
* 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
|
|
|
|
* Sat May 31 2008 Brian Pepple <bpepple@fedoraproject.org> - 0.6.2-1
|
|
- Update to 0.6.2.
|
|
- Enable tests.
|
|
|
|
* 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.
|
|
|