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

Revision 805, 4.6 KB checked in by Takemikaduchi, 14 years ago (diff)

change spec file of gnome-2.30

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.9
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: libffi-devel
47Requires: pkgconfig
48
49%description devel
50Libraries and headers for gobject-introspection
51
52%prep
53%setup -q
54%ifarch ppc
55%patch0 -p1 -b .ppc
56%endif
57
58%build
59%configure
60make V=1
61
62%install
63rm -rf $RPM_BUILD_ROOT
64make install DESTDIR=$RPM_BUILD_ROOT
65
66# Die libtool, die.
67find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
68find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
69chrpath --delete $RPM_BUILD_ROOT%{_bindir}/g-ir-{compiler,generate}
70# Mistake in upstream automake
71rm -f $RPM_BUILD_ROOT/%{_bindir}/barapp
72
73# Move the python modules to the correct location
74mkdir -p $RPM_BUILD_ROOT/%{python_sitearch}
75mv $RPM_BUILD_ROOT/%{_libdir}/gobject-introspection/giscanner $RPM_BUILD_ROOT/%{python_sitearch}/
76
77rm -f %{_datadir}/gobject-introspection-1.0/Makefile.introspection
78
79%clean
80rm -rf $RPM_BUILD_ROOT
81
82%post -p /sbin/ldconfig
83
84%postun -p /sbin/ldconfig
85
86%files
87%defattr(-,root,root,-)
88%doc COPYING
89
90%{_libdir}/lib*.so.*
91%dir %{_libdir}/girepository-1.0
92%{_libdir}/girepository-1.0/*.typelib
93
94%files devel
95%defattr(-,root,root)
96%{_libdir}/lib*.so
97%{_libdir}/pkgconfig/*
98%{_includedir}/*
99%{_bindir}/g-ir-*
100%{_datadir}/gir-1.0
101%{_datadir}/aclocal/introspection.m4
102%{python_sitearch}/giscanner
103%{_mandir}/man1/*.gz
104
105%changelog
106* Wed Mar 31 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.9-1
107- new upstream release
108- add Requires: libffi-devel (devel package)
109
110* Sun Mar 14 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.8-1
111- new upstream release
112
113* Sun Feb 28 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.7-1
114- new upstream release
115- add Patch0 for ppc
116
117* Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 0.6.5-2
118- rebuilt with python-2.6.4
119
120* Sat Sep 26 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.6.5-1
121- initial build for Vine Linux
122
123* Fri Sep 11 2009 Colin Walters <walters@verbum.org> - 0.6.5-1
124- New upstream
125- Drop libtool dep
126
127* Fri Aug 28 2009 Colin Walters <walters@verbum.org> - 0.6.4-2
128- Add dep on libtool temporarily
129
130* Mon Aug 26 2009 Colin Walters <walters@verbum.org> - 0.6.4-1
131- New upstream 0.6.4
132- Drop upstreamed build fix patch
133
134* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-5
135- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
136
137* Mon Jul  6 2009 Peter Robinson <pbrobinson@gmail.com> - 0.6.3-4
138- Add upstream patch to fix a build crash
139
140* Thu Jul  2 2009 Peter Robinson <pbrobinson@gmail.com> - 0.6.3-3
141- Add -ggdb temporarily so it compiles on ppc64
142
143* Thu Jul  2 2009 Peter Robinson <pbrobinson@gmail.com> - 0.6.3-2
144- Add the new source file
145
146* Thu Jul  2 2009 Peter Robinson <pbrobinson@gmail.com> - 0.6.3-1
147- Update to 0.6.3
148
149* Mon Jun  1 2009 Dan Williams <dcbw@redhat.com> - 0.6.2-1
150- Update to 0.6.2
151
152* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-2
153- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
154
155* Thu Dec 11 2008 Colin Walters <walters@verbum.org> - 0.6.1-1
156- Update to 0.6.1
157
158* Fri Oct 31 2008 Colin Walters <walters@verbum.org> - 0.6.0-1
159- Create spec goo
Note: See TracBrowser for help on using the repository browser.