source: projects/specs/trunk/g/gobject-introspection/gobject-introspection-vl.spec @ 623

Revision 623, 4.5 KB checked in by Takemikaduchi, 14 years ago (diff)

takemikaduchi fix and add spec file

Line 
1%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
2%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
3
4Name:           gobject-introspection
5Version:        0.6.8
6Release:        1%{?_dist_release}
7Summary:        Introspection system for GObject-based libraries
8
9Group:          Development/Libraries
10License:        GPLv2+, LGPLv2+, MIT
11URL:            http://live.gnome.org/GObjectIntrospection
12Source0:        ftp://ftp.gnome.org/pub/gnome/sources/%{name}/0.6/%{name}-%{version}.tar.bz2
13Patch0:         gobject-introspection-0.6.7-ginfo-ppc.patch
14BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
15
16BuildRequires:  glib2-devel
17BuildRequires:  python-devel >= 2.5
18BuildRequires:  gettext
19BuildRequires:  intltool
20BuildRequires:  gtk-doc
21BuildRequires:  flex
22BuildRequires:  bison
23BuildRequires:  libffi-devel
24BuildRequires:  chrpath
25BuildRequires:  mesa-libGL-devel
26BuildRequires:  cairo-devel
27BuildRequires:  libxml2-devel
28BuildRequires:  libXfixes-devel
29BuildRequires:  libX11-devel
30BuildRequires:  fontconfig-devel
31BuildRequires:  libXft-devel
32BuildRequires:  freetype2-devel
33
34%description
35GObject Introspection can scan C header and source files in order to
36generate introspection "typelib" files.  It also provides an API to examine
37typelib files, useful for creating language bindings among other
38things.
39
40%package devel
41Summary: Libraries and headers for gobject-introspection
42Summary(ja): %{name} の開発用ファイル
43Group: Development/Libraries
44Requires: %name = %{version}-%{release}
45Requires: glib2-devel
46Requires: pkgconfig
47
48%description devel
49Libraries and headers for gobject-introspection
50
51%prep
52%setup -q
53%ifarch ppc
54%patch0 -p1 -b .ppc
55%endif
56
57%build
58%configure
59make V=1
60
61%install
62rm -rf $RPM_BUILD_ROOT
63make install DESTDIR=$RPM_BUILD_ROOT
64
65# Die libtool, die.
66find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
67find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
68chrpath --delete $RPM_BUILD_ROOT%{_bindir}/g-ir-{compiler,generate}
69# Mistake in upstream automake
70rm -f $RPM_BUILD_ROOT/%{_bindir}/barapp
71
72# Move the python modules to the correct location
73mkdir -p $RPM_BUILD_ROOT/%{python_sitearch}
74mv $RPM_BUILD_ROOT/%{_libdir}/gobject-introspection/giscanner $RPM_BUILD_ROOT/%{python_sitearch}/
75
76rm -f %{_datadir}/gobject-introspection-1.0/Makefile.introspection
77
78%clean
79rm -rf $RPM_BUILD_ROOT
80
81%post -p /sbin/ldconfig
82
83%postun -p /sbin/ldconfig
84
85%files
86%defattr(-,root,root,-)
87%doc COPYING
88
89%{_libdir}/lib*.so.*
90%dir %{_libdir}/girepository-1.0
91%{_libdir}/girepository-1.0/*.typelib
92
93%files devel
94%defattr(-,root,root)
95%{_libdir}/lib*.so
96%{_libdir}/pkgconfig/*
97%{_includedir}/*
98%{_bindir}/g-ir-*
99%{_datadir}/gir-1.0
100%{_datadir}/aclocal/introspection.m4
101%{python_sitearch}/giscanner
102%{_mandir}/man1/*.gz
103
104%changelog
105* Sun Mar 14 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.8-1
106- new upstream release
107
108* Sun Feb 28 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.7-1
109- new upstream release
110- add Patch0 for ppc
111
112* Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 0.6.5-2
113- rebuilt with python-2.6.4
114
115* Sat Sep 26 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.6.5-1
116- initial build for Vine Linux
117
118* Fri Sep 11 2009 Colin Walters <walters@verbum.org> - 0.6.5-1
119- New upstream
120- Drop libtool dep
121
122* Fri Aug 28 2009 Colin Walters <walters@verbum.org> - 0.6.4-2
123- Add dep on libtool temporarily
124
125* Mon Aug 26 2009 Colin Walters <walters@verbum.org> - 0.6.4-1
126- New upstream 0.6.4
127- Drop upstreamed build fix patch
128
129* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-5
130- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
131
132* Mon Jul  6 2009 Peter Robinson <pbrobinson@gmail.com> - 0.6.3-4
133- Add upstream patch to fix a build crash
134
135* Thu Jul  2 2009 Peter Robinson <pbrobinson@gmail.com> - 0.6.3-3
136- Add -ggdb temporarily so it compiles on ppc64
137
138* Thu Jul  2 2009 Peter Robinson <pbrobinson@gmail.com> - 0.6.3-2
139- Add the new source file
140
141* Thu Jul  2 2009 Peter Robinson <pbrobinson@gmail.com> - 0.6.3-1
142- Update to 0.6.3
143
144* Mon Jun  1 2009 Dan Williams <dcbw@redhat.com> - 0.6.2-1
145- Update to 0.6.2
146
147* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-2
148- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
149
150* Thu Dec 11 2008 Colin Walters <walters@verbum.org> - 0.6.1-1
151- Update to 0.6.1
152
153* Fri Oct 31 2008 Colin Walters <walters@verbum.org> - 0.6.0-1
154- Create spec goo
Note: See TracBrowser for help on using the repository browser.