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