gobject-introspection/gobject-introspection.spec

118 lines
3.4 KiB
RPMSpec
Raw Normal View History

#
# spec file for package gobject-introspection (Version 0.6.8)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: gobject-introspection
BuildRequires: bison
BuildRequires: fdupes
BuildRequires: flex
BuildRequires: glib2-devel
BuildRequires: libffi-devel
BuildRequires: python-devel
BuildRequires: python-xml
%if %suse_version <= 1110
BuildRequires: gtk-doc
%endif
Version: 0.6.8
Release: 1
License: GPLv2+
Summary: GObject Introspection Tools
Url: http://live.gnome.org/GObjectIntrospection
Group: Development/Libraries/GNOME
Source: %{name}-%{version}.tar.bz2
Requires: libgirepository-1_0-0 = %{version}
Requires: python-xml
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The goal of the project is to describe the APIs and collect them in
a uniform, machine readable format.
%package -n libgirepository-1_0-0
License: LGPLv2.1+
Summary: GObject Introspection Library
Group: Development/Libraries/GNOME
Recommends: gir-repository
%description -n libgirepository-1_0-0
The goal of the project is to describe the APIs and collect them in
a uniform, machine readable format.
%package devel
License: LGPLv2.1+
Summary: GObject Introspection Development Files
Group: Development/Libraries/GNOME
# Note: the devel package requires the binaries, not just the library
Requires: %{name} = %{version}
Requires: glib2-devel
Requires: libffi-devel
%description devel
The goal of the project is to describe the APIs and collect them in
a uniform, machine readable format.
%prep
%setup -q
%build
%configure \
--disable-static
%__make %{?jobs:-j%jobs}
%install
%makeinstall
find %{buildroot} -type f -name "*.la" -delete -print
%fdupes %{buildroot}
%clean
rm -rf %{buildroot}
%post -n libgirepository-1_0-0 -p /sbin/ldconfig
%postun -n libgirepository-1_0-0 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc COPYING COPYING.GPL
%{_bindir}/*
# We don't include directly %{_libdir}/gobject-introspection since there might
# be files there in the future that belong to the library package
%dir %{_libdir}/gobject-introspection
%{_libdir}/gobject-introspection/giscanner
%doc %{_mandir}/man?/*.*
%files -n libgirepository-1_0-0
%defattr(-,root,root)
%doc AUTHORS CONTRIBUTORS COPYING.LGPL NEWS README TODO
%{_datadir}/gir-1.0
%{_libdir}/*.so.*
%{_libdir}/girepository-1.0
%files devel
%defattr(-,root,root)
%{_includedir}/*
%{_datadir}/aclocal/*.m4
# We explicitly list the content of the directory that is of interest to us,
# since not everything might go into the devel package in the future
%dir %{_datadir}/gobject-introspection-1.0
%{_datadir}/gobject-introspection-1.0/Makefile.introspection
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%changelog