Skip to content

Commit

Permalink
[packaging] import packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
Islam Amer committed Mar 19, 2014
1 parent 8993fbd commit 2fbb623
Show file tree
Hide file tree
Showing 2 changed files with 131 additions and 0 deletions.
36 changes: 36 additions & 0 deletions rpm/gobject-introspection.changes
@@ -0,0 +1,36 @@
* Sat Jan 21 2012 Tomasz Sterna <tomek@xiaoka.com> - 1.31.10
- Update to 1.31.10
- Removed gtk-doc dependency

* Thu May 05 2011 Anas Nashif <anas.nashif@intel.com> - 0.10.8
- Update to 0.10.8 (BMC #13656)
Split python module into a python package

* Thu Feb 17 2011 Damien Lespiau <damien.lespiau@intel.com> 0.10.
- Reimport gojbect-introspection in MeeGo as we now really need it
(BMC #13656)

* Thu Aug 12 2010 Zhang Qiang <qiang.z.zhang@intel.com> - 0.9.3
- Update to 0.9.3

* Tue Jul 13 2010 Zhang Qiang <qiang.z.zhang@intel.com> - 0.9.2
- Update to 0.9.2

* Mon Jun 21 2010 Zhang Qiang <qiang.z.zhang@intel.com> - 0.6.14
- Update to 0.6.14

* Tue Mar 30 2010 Vivian Zhang <vivian.zhang@intel.com> - 0.6.9
- Update to 0.6.9

* Wed Mar 24 2010 Anas Nashif <anas.nashif@intel.com> - 0.6.8
- Use spectacle

* Thu Mar 18 2010 Damien Lespiau <damien.lespiau@intel.com> - 0.6.8
- Update to 0.6.8

* Thu Dec 24 2009 Xu Li <xu.li@intel.com> - 0.6.7
- Upgrade to 0.6.7
- Fix the install file list

* Thu Sep 24 2009 Zhang Qiang<qiang.z.zhagn@intel.com> - 0.6.5-1
- Initial import to Moblin
95 changes: 95 additions & 0 deletions rpm/gobject-introspection.spec
@@ -0,0 +1,95 @@
Name: gobject-introspection
Summary: Introspection system for GObject-based libraries
Version: 1.38.0
Release: 1
Group: Development/Libraries
License: GPLv2+, LGPLv2+, MIT
URL: http://live.gnome.org/GObjectIntrospection
Source0: %{name}-%{version}.tar.gz
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
BuildRequires: pkgconfig(libffi)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(fontconfig)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(cairo)
BuildRequires: python-devel >= 2.5
BuildRequires: gettext
BuildRequires: intltool
BuildRequires: flex
BuildRequires: bison
BuildRequires: chrpath

%description
GObject Introspection can scan C header and source files in order to
generate introspection "typelib" files. It also provides an API to examine
typelib files, useful for creating language bindings among other
things.

%package -n python-giscanner
Summary: Python package for handling GObject introspection data
Group: Development/Languages
Requires: %{name} = %{version}-%{release}

%description -n python-giscanner
This package contains a Python package for handling the introspection
data from Python.

%package devel
Summary: Libraries and headers for gobject-introspection
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: python-giscanner

%description devel
Libraries and headers for gobject-introspection.

%prep
%setup -q -n %{name}-%{version}/%{name}

%build
%autogen --disable-static
make %{?jobs:-j%jobs}

%install
rm -rf %{buildroot}
%make_install

# Die libtool, die.
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/g-ir-{compiler,generate}
# Mistake in upstream automake
rm -f $RPM_BUILD_ROOT/%{_bindir}/barapp

# Move the python modules to the correct location
mkdir -p $RPM_BUILD_ROOT/%{python_sitearch}
mv $RPM_BUILD_ROOT/%{_libdir}/gobject-introspection/giscanner $RPM_BUILD_ROOT/%{python_sitearch}/

# Trash html documentation
rm -rf $RPM_BUILD_ROOT/%{_datarootdir}/gtk-doc/html

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
%doc COPYING
%{_libdir}/lib*.so.*
%dir %{_libdir}/girepository-1.0
%{_libdir}/girepository-1.0/*.typelib

%files -n python-giscanner
%defattr(-,root,root,-)
%{python_sitearch}/giscanner

%files devel
%defattr(-,root,root,-)
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*
%{_includedir}/*
%{_bindir}/g-ir-*
%{_datadir}/gir-1.0
%{_datadir}/aclocal/introspection.m4
%{_datadir}/gobject-introspection-1.0
%doc %{_mandir}/man1/*.gz

0 comments on commit 2fbb623

Please sign in to comment.