summaryrefslogtreecommitdiff
path: root/pygtk.spec.in
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-10-11 15:04:43 +0000
committerMatt Wilson <msw@src.gnome.org>2001-10-11 15:04:43 +0000
commit9e946a007c22abb1351131f63f24196522a9c0d4 (patch)
tree06d7177dd56d31bbdda7933b985f23a940707e3e /pygtk.spec.in
parentbfa51164e44fa3d4690ae71cd2914dc0f5324934 (diff)
downloadpygtk-9e946a007c22abb1351131f63f24196522a9c0d4.tar.gz
fixed typo in devel filelist (header) added macro that tests to see if we
2001-10-11 Matt Wilson <msw@redhat.com> * pygtk.spec.in (%files devel): fixed typo in devel filelist (header) added macro that tests to see if we have libglade2 (%files libglade) make the filelist a condition of that (Name) changed name to 'pygtk2' to avoid name conflict with pygtk
Diffstat (limited to 'pygtk.spec.in')
-rw-r--r--pygtk.spec.in18
1 files changed, 13 insertions, 5 deletions
diff --git a/pygtk.spec.in b/pygtk.spec.in
index 275140a3..838ad06f 100644
--- a/pygtk.spec.in
+++ b/pygtk.spec.in
@@ -1,8 +1,7 @@
-# you may want to remove some of the sub packages depending on what you
-# have installed on your system when building this package.
+%define buildglade %(pkg-config libglade-2.0 && echo 1 || echo 0)
Summary: Python bindings for the GTK+ widget set.
-Name: pygtk
+Name: pygtk2
Version: @VERSION@
Release: 1
Copyright: LGPL
@@ -37,8 +36,15 @@ Requires: pygtk = %{ver}
This package contains files required to build wrappers for GTK+ addon
libraries so that they interoperate with pygtk.
+%changelog
+* Thu Oct 11 2001 Matt Wilson <msw@redhat.com>
+- fixed typo in devel filelist
+- added macro that tests to see if we have libglade2, make the
+ filelist a condition of that
+- changed name to 'pygtk2' to avoid name conflict with pygtk
+
%prep
-%setup
+%setup -n pygtk-%{version}
./configure --prefix=%{_prefix}
%build
@@ -60,14 +66,16 @@ make DESTDIR=$RPM_BUILD_ROOT install
%doc AUTHORS NEWS README MAPPING ChangeLog description.py
%doc examples
+%if {buildglade}
%files libglade
%{_prefix}/lib/python?.?/site-packages/gtk/glademodule.so
+%endif
%files devel
%{_prefix}/bin/pygtk-codegen-2.0
%dir %{_prefix}/include/pygtk
%{_prefix}/include/pygtk/*.h
-%{_prerix}/lib/pkgconfig/pygtk-2.0.pc
+%{_prefix}/lib/pkgconfig/pygtk-2.0.pc
%dir %{_prefix}/share/pygtk
%dir %{_prefix}/share/pygtk/2.0
%dir %{_prefix}/share/pygtk/2.0/codegen