json-glib/json-glib.spec

182 lines
4.7 KiB
RPMSpec
Raw Normal View History

2012-08-07 14:15:03 +00:00
%define url_ver %(echo %{version}|cut -d. -f1,2)
%define api 1.0
2012-02-01 17:05:20 +04:00
%define major 0
%define girmajor 1.0
2012-02-01 14:52:06 +04:00
2012-08-07 14:15:03 +00:00
%define libname %mklibname %{name} %{api} %{major}
2012-02-01 14:52:06 +04:00
%define develname %mklibname %{name} -d
2012-02-01 17:05:20 +04:00
%define girname %mklibname %{name}-gir %{girmajor}
2012-08-07 14:15:03 +00:00
Summary: Library for JavaScript Object Notation format
2012-02-01 14:52:06 +04:00
Name: json-glib
2012-02-01 17:05:20 +04:00
Version: 0.14.2
2012-08-07 14:15:03 +00:00
Release: 2
2012-02-01 14:52:06 +04:00
Group: System/Libraries
License: LGPLv2+
URL: http://live.gnome.org/JsonGlib
2012-02-01 17:05:20 +04:00
Source0: http://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz
2012-08-07 14:15:03 +00:00
2012-02-01 14:52:06 +04:00
BuildRequires: gtk-doc
2012-08-07 14:15:03 +00:00
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gobject-introspection-1.0)
2012-02-01 14:52:06 +04:00
%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
2012-08-07 14:15:03 +00:00
Suggests: %{name} = %{version}
2012-02-01 14:52:06 +04:00
%description -n %{libname}
%{name} is a library providing serialization and deserialization support
for the JavaScript Object Notation (JSON) format.
2012-08-07 14:15:03 +00:00
%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}.
2012-02-01 14:52:06 +04:00
%package -n %{develname}
Summary: Development files for %{name}
Group: Development/C
2012-08-07 14:15:03 +00:00
Provides: %{name}-devel = %{version}-%{release}
2012-02-01 14:52:06 +04:00
Requires: %{libname} = %{version}
2012-08-07 14:15:03 +00:00
Requires: %{girname} = %{version}
2012-02-01 14:52:06 +04:00
%description -n %{develname}
The %{develname} package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q
%build
2012-02-01 17:05:20 +04:00
%configure2_5x --disable-static
2012-02-01 14:52:06 +04:00
%make
%install
%makeinstall_std
2012-02-01 17:05:20 +04:00
# we don't want these
find %{buildroot} -name "*.la" -exec rm -rf {} \;
2012-08-07 14:15:03 +00:00
%find_lang %{name}-%{api}
2012-02-01 17:05:20 +04:00
2012-02-01 14:52:06 +04:00
%check
%make check
2012-08-07 14:15:03 +00:00
%files -f %{name}-%{api}.lang
2012-02-01 17:05:20 +04:00
2012-02-01 14:52:06 +04:00
%files -n %{libname}
2012-08-07 14:15:03 +00:00
%{_libdir}/lib%{name}-%{api}.so.%{major}*
2012-02-01 17:05:20 +04:00
%files -n %{girname}
%{_libdir}/girepository-1.0/Json-%{girmajor}.typelib
2012-02-01 14:52:06 +04:00
%files -n %{develname}
%doc README NEWS ChangeLog
2012-02-01 17:05:20 +04:00
%doc %{_datadir}/gtk-doc/html/%{name}/
2012-08-07 14:15:03 +00:00
%{_libdir}/lib%{name}-%{api}.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc
%{_includedir}/%{name}-%{api}/
2012-02-01 17:05:20 +04:00
%{_datadir}/gir-1.0/Json-%{girmajor}.gir
2012-02-01 14:52:06 +04:00
2012-08-07 14:15:03 +00:00
2012-02-01 14:52:06 +04:00
%changelog
2012-08-07 14:15:03 +00:00
* Sun Apr 29 2012 Matthew Dawkins <mattydaw@mandriva.org> 0.14.2-2
+ Revision: 794436
- rebuild for typelib
- cleaned up spec
2012-02-01 17:05:20 +04:00
* 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
2012-02-01 14:52:06 +04:00
+ 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