json-glib/json-glib.spec
2012-08-07 14:15:03 +00:00

181 lines
4.7 KiB
RPMSpec

%define url_ver %(echo %{version}|cut -d. -f1,2)
%define api 1.0
%define major 0
%define girmajor 1.0
%define libname %mklibname %{name} %{api} %{major}
%define develname %mklibname %{name} -d
%define girname %mklibname %{name}-gir %{girmajor}
Summary: Library for JavaScript Object Notation format
Name: json-glib
Version: 0.14.2
Release: 2
Group: System/Libraries
License: LGPLv2+
URL: http://live.gnome.org/JsonGlib
Source0: http://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires: gtk-doc
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gobject-introspection-1.0)
%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
Suggests: %{name} = %{version}
%description -n %{libname}
%{name} is a library providing serialization and deserialization support
for the JavaScript Object Notation (JSON) format.
%package -n %{girname}
Summary: GObject Introspection interface description for %{name}
Group: System/Libraries
Conflicts: %{mklibname %{name}1.0-gir 1.0} < 0.13.4-3
%description -n %{girname}
GObject Introspection interface description for %{name}.
%package -n %{develname}
Summary: Development files for %{name}
Group: Development/C
Provides: %{name}-devel = %{version}-%{release}
Requires: %{libname} = %{version}
Requires: %{girname} = %{version}
%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
%makeinstall_std
# we don't want these
find %{buildroot} -name "*.la" -exec rm -rf {} \;
%find_lang %{name}-%{api}
%check
%make check
%files -f %{name}-%{api}.lang
%files -n %{libname}
%{_libdir}/lib%{name}-%{api}.so.%{major}*
%files -n %{girname}
%{_libdir}/girepository-1.0/Json-%{girmajor}.typelib
%files -n %{develname}
%doc README NEWS ChangeLog
%doc %{_datadir}/gtk-doc/html/%{name}/
%{_libdir}/lib%{name}-%{api}.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc
%{_includedir}/%{name}-%{api}/
%{_datadir}/gir-1.0/Json-%{girmajor}.gir
%changelog
* Sun Apr 29 2012 Matthew Dawkins <mattydaw@mandriva.org> 0.14.2-2
+ Revision: 794436
- rebuild for typelib
- cleaned up spec
* Mon Oct 31 2011 Matthew Dawkins <mattydaw@mandriva.org> 0.14.2-1
+ Revision: 708060
- new version 0.14.2
copied in changes from mga spec
* Wed Jun 15 2011 Götz Waschk <waschk@mandriva.org> 0.12.6-1
+ Revision: 685394
- new version
- xz tarball
* Tue Apr 12 2011 Götz Waschk <waschk@mandriva.org> 0.12.4-1
+ Revision: 652810
- update to new version 0.12.4
* Mon Jan 10 2011 Götz Waschk <waschk@mandriva.org> 0.12.2-1
+ Revision: 630851
- new version
* Sat Sep 25 2010 Götz Waschk <waschk@mandriva.org> 0.12.0-1mdv2011.0
+ Revision: 580982
- update to new version 0.12.0
* Mon Sep 13 2010 Götz Waschk <waschk@mandriva.org> 0.11.2-2mdv2011.0
+ Revision: 577921
- rebuild for new g-i
* Mon Aug 02 2010 Götz Waschk <waschk@mandriva.org> 0.11.2-1mdv2011.0
+ Revision: 565071
- new version
- drop patch
* Fri Jul 30 2010 Funda Wang <fwang@mandriva.org> 0.10.4-2mdv2011.0
+ Revision: 563323
- rebuild for new gobject-introspection
* Fri Mar 19 2010 Götz Waschk <waschk@mandriva.org> 0.10.4-1mdv2010.1
+ Revision: 525304
- update to new version 0.10.4
+ Anssi Hannula <anssi@mandriva.org>
- fix hardcoded paths in pkgconfig file (reported by Juho Teperi)
* Fri Feb 26 2010 Götz Waschk <waschk@mandriva.org> 0.10.2-1mdv2010.1
+ Revision: 511958
- new version
* Mon Jan 04 2010 Götz Waschk <waschk@mandriva.org> 0.10.0-2mdv2010.1
+ Revision: 486165
- enable introspection
- fix devel provides
- readd libtool archive
* Wed Dec 30 2009 Frederik Himpe <fhimpe@mandriva.org> 0.10.0-1mdv2010.1
+ Revision: 483944
- update to new version 0.10.0
* Thu Dec 10 2009 Frederik Himpe <fhimpe@mandriva.org> 0.9.2-1mdv2010.1
+ Revision: 476181
- Update to new version 0.9.2
- Update to new version 0.8.2
* Mon Sep 28 2009 Frederik Himpe <fhimpe@mandriva.org> 0.8.0-1mdv2010.0
+ Revision: 450642
- Update to new version 0.8.0
* Wed Sep 09 2009 Frederik Himpe <fhimpe@mandriva.org> 0.7.6-1mdv2010.0
+ Revision: 435924
- Update to new version 0.7.6
* Wed Aug 12 2009 Frederik Himpe <fhimpe@mandriva.org> 0.7.4-1mdv2010.0
+ Revision: 415768
- Update to new version 0.7.4
- Run test suite
* Fri Jul 10 2009 Frederik Himpe <fhimpe@mandriva.org> 0.7.2-1mdv2010.0
+ Revision: 394336
- BuildRequires: gtk-doc
- Disable gobject-introspection again: probably needs some more work
to correctly package this
- BuildRequires: gobject-introspection
- commit first SPEC file, based on Fedora's
- Don't run test suite, it sometimes hangs
- create json-glib