]> Pileus Git - ~andy/gtk/blob - gtk+.spec.in
Move gtk-config to gtk-config-2.0 move gtk_.m4 to gtk-2.0.m4
[~andy/gtk] / gtk+.spec.in
1 # Note that this is NOT a relocatable package
2 %define ver      @VERSION@
3 %define  RELEASE 1
4 %define  rel     %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
5 %define prefix   /usr
6
7 Summary: The Gimp Toolkit
8 Name: gtk+
9 Version: %ver
10 Release: %rel
11 Copyright: LGPL
12 Group: X11/Libraries
13 Source: ftp://ftp.gimp.org/pub/gtk/v1.1/gtk+-%{ver}.tar.gz
14 BuildRoot: /var/tmp/gtk-%{PACKAGE_VERSION}-root
15 Obsoletes: gtk
16 Packager: Christopher Blizzard <blizzard@redhat.com>
17 URL: http://www.gtk.org
18 Requires: glib
19 Docdir: %{prefix}/doc
20
21 %description
22 The X libraries originally written for the GIMP, which are now used by
23 several other programs as well.
24
25 %package devel
26 Summary: GIMP Toolkit and GIMP Drawing Kit
27 Group: X11/Libraries
28 Requires: gtk+
29 Obsoletes: gtk-devel
30
31 %description devel
32 Static libraries and header files for the GIMP's X libraries, which are
33 available as public libraries.  GLIB includes generally useful data
34 structures, GDK is a drawing toolkit which provides a thin layer over
35 Xlib to help automate things like dealing with different color depths,
36 and GTK is a widget set for creating user interfaces.
37
38 %changelog
39
40 * Tue Jun  1 1999 Jose Mercado <jmercado@mit.edu>
41 - Corrected some typos in files section.
42
43 * Sun Feb 21 1999 Michael Fulbright <drmike@redhat.com>
44 - updated spec file
45
46 * Sun Oct 25 1998 Shawn T. Amundson <amundson@gtk.org>
47
48 - Fixed Source: to point to v1.1 
49
50 * Tue Aug 04 1998 Michael Fulbright <msf@redhat.com>
51
52 - change %postun to %preun
53
54 * Mon Jun 27 1998 Shawn T. Amundson
55
56 - Changed version to 1.1.0
57
58 * Thu Jun 11 1998 Dick Porter <dick@cymru.net>
59
60 - Removed glib, since it is its own module now
61
62 * Mon Apr 13 1998 Marc Ewing <marc@redhat.com>
63
64 - Split out glib package
65
66 * Tue Apr  8 1998 Shawn T. Amundson <amundson@gtk.org>
67
68 - Changed version to 1.0.0
69
70 * Tue Apr  7 1998 Owen Taylor <otaylor@gtk.org>
71
72 - Changed version to 0.99.10
73
74 * Thu Mar 19 1998 Shawn T. Amundson <amundson@gimp.org>
75
76 - Changed version to 0.99.9
77 - Changed gtk home page to www.gtk.org
78
79 * Thu Mar 19 1998 Shawn T. Amundson <amundson@gimp.org>
80
81 - Changed version to 0.99.8
82
83 * Sun Mar 15 1998 Marc Ewing <marc@redhat.com>
84
85 - Added aclocal and bin stuff to file list.
86
87 - Added -k to the SMP make line.
88
89 - Added lib/glib to file list.
90
91 * Fri Mar 14 1998 Shawn T. Amundson <amundson@gimp.org>
92
93 - Changed version to 0.99.7
94
95 * Fri Mar 14 1998 Shawn T. Amundson <amundson@gimp.org>
96
97 - Updated ftp url and changed version to 0.99.6
98
99 * Thu Mar 12 1998 Marc Ewing <marc@redhat.com>
100
101 - Reworked to integrate into gtk+ source tree
102
103 - Truncated ChangeLog.  Previous Authors:
104   Trond Eivind Glomsrod <teg@pvv.ntnu.no>
105   Michael K. Johnson <johnsonm@redhat.com>
106   Otto Hammersmith <otto@redhat.com>
107   
108 %prep
109 %setup
110
111 %build
112 # Needed for snapshot releases.
113 if [ ! -f configure ]; then
114   CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix
115 else
116   CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix
117 fi
118
119 if [ "$SMP" != "" ]; then
120   (make "MAKE=make -k -j $SMP"; exit 0)
121   make
122 else
123   make
124 fi
125
126 %install
127 rm -rf $RPM_BUILD_ROOT
128
129 make prefix=$RPM_BUILD_ROOT%{prefix} install
130
131 %clean
132 rm -rf $RPM_BUILD_ROOT
133
134 %post -p /sbin/ldconfig
135
136 %postun -p /sbin/ldconfig
137
138 %files
139 %defattr(-, root, root)
140
141 %doc AUTHORS COPYING ChangeLog NEWS README TODO
142 %{prefix}/lib/libgtk-1.3.so.*
143 %{prefix}/lib/libgdk-1.3.so.*
144 %{prefix}/share/themes/Default
145 %{prefix}/share/locale/*/*/*
146  
147
148 %files devel
149 %defattr(-, root, root)
150
151 %{prefix}/lib/lib*.so
152 %{prefix}/lib/*a
153 %{prefix}/include/*
154 %{prefix}/include/lib/gtk+-2.0/include/*
155 %{prefix}/man/man1/*
156 %{prefix}/share/aclocal/*
157 %{prefix}/bin/*