gtk+.spec.in 3.57 KB
Newer Older
1 2
%define binary_version @GTK_BINARY_VERSION@

3
Name:		 gtk2
4 5 6 7 8
Summary:	 The Gimp Toolkit
Version:	 @VERSION@
Release:	 1
License:	 LGPL
Group:		 X11/Libraries
9
Source:		 ftp://ftp.gimp.org/pub/gtk/v2.3/gtk+-%{version}.tar.gz
10
BuildRoot:	 /var/tmp/%{name}-%{version}-root
11
URL:		 http://www.gtk.org
12
Requires:	 glib2 >= %{version}
13 14
Requires:        pango
Requires:        atk
15
BuildRequires:   glib2-devel
16 17
BuildRequires:   pango-devel
BuildRequires:   atk-devel
rhlabs's avatar
rhlabs committed
18 19 20 21 22 23

%description
The X libraries originally written for the GIMP, which are now used by
several other programs as well.

%package devel
24 25 26
Summary:	GIMP Toolkit and GIMP Drawing Kit
Group:		X11/Libraries
Requires:	%{name} = %{version}
rhlabs's avatar
rhlabs committed
27 28 29 30 31 32 33 34 35 36

%description devel
Static libraries and header files for the GIMP's X libraries, which are
available as public libraries.  GLIB includes generally useful data
structures, GDK is a drawing toolkit which provides a thin layer over
Xlib to help automate things like dealing with different color depths,
and GTK is a widget set for creating user interfaces.

  
%prep
37
%setup -q -n gtk+-%{version}
rhlabs's avatar
rhlabs committed
38 39

%build
40 41 42 43
%ifarch alpha
    MYARCH_FLAGS="--host=alpha-redhat-linux"
%endif

rhlabs's avatar
rhlabs committed
44
# Needed for snapshot releases.
45
MYCFLAGS="$RPM_OPT_FLAGS"
rhlabs's avatar
rhlabs committed
46
if [ ! -f configure ]; then
47 48 49 50 51
    CFLAGS="$MYCFLAGS" ./autogen.sh $MYARCH_FLAGS \
        --prefix=%{_prefix} \
	--localstatedir=%{_localstatedir} --sysconfdir=%{_sysconfdir} \
	--mandir=%{_mandir} --libdir=%{_libdir} \
	--includedir=%{_includedir}
rhlabs's avatar
rhlabs committed
52
else
53 54 55 56
   CFLAGS="$MYCFLAGS" ./configure $MYARCH_FLAGS \
        --prefix=%{_prefix} --localstatedir=%{_localstatedir} \
        --sysconfdir=%{_sysconfdir} --mandir=%{_mandir} \
        --libdir=%{_libdir} --includedir=%{_includedir} --disable-gtk-doc
rhlabs's avatar
rhlabs committed
57 58 59
fi

if [ "$SMP" != "" ]; then
rhlabs's avatar
rhlabs committed
60
  (make "MAKE=make -k -j $SMP"; exit 0)
rhlabs's avatar
rhlabs committed
61 62 63 64 65 66 67 68
  make
else
  make
fi

%install
rm -rf $RPM_BUILD_ROOT

69 70 71 72 73
make -k sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} \
    prefix=$RPM_BUILD_ROOT%{_prefix} mandir=$RPM_BUILD_ROOT%{_mandir} \
    localstatedir=$RPM_BUILD_ROOT%{_localstatedir} \
    libdir=$RPM_BUILD_ROOT%{_libdir} \
    includedir=$RPM_BUILD_ROOT%{_includedir} install
rhlabs's avatar
rhlabs committed
74 75 76 77 78 79 80 81 82

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
rhlabs's avatar
rhlabs committed
83 84
%defattr(-, root, root)

85
%doc AUTHORS COPYING ChangeLog NEWS README
86 87 88
%{_bindir}/*
%{_libdir}/libgtk*.so.*
%{_libdir}/libgdk*.so.*
89
%{_libdir}/gtk-2.0/%{binary_version}/*/*.so
90 91
#%{_datadir}/locale/*/*/*
%{_sysconfdir}/gtk-2.0/gtk.immodules
rhlabs's avatar
rhlabs committed
92

rhlabs's avatar
rhlabs committed
93
%files devel
rhlabs's avatar
rhlabs committed
94 95
%defattr(-, root, root)

96 97
%{_libdir}/lib*.so
%{_libdir}/*a
98
%{_libdir}/gtk-2.0/%{binary_version}/*/*a
99 100 101 102 103 104 105 106 107
%{_libdir}/gtk-2.0/include
%{_libdir}/pkgconfig/*.pc
%{_includedir}/gtk-2.0		
%{_datadir}/gtk-2.0
%{_datadir}/aclocal/*
%{_datadir}/gtk-doc/html/*


%changelog
108 109 110 111
* Wed Sep 11 2002 Dennis Dementiev <denm@asplinux.ru>
- modules and loaders should be installed in under binary version
  dir instead version

112 113 114 115 116
* Mon Aug 27 2001 Jens Finke <jens@gnome.org>
- Renamed package to gtk2.
- Updated source url.
- glib2 package required.

117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
* Mon Aug 27 2001 Jens Finke <jens@gnome.org>
- Updated spec file to match gpp standard and 
  1.3.x files.
- Removed all hardcoded paths, use rpm macros instead.
- Added pango and atk Requires: and BuildRequires: statements.
- Removed Docdir: statement.
- Moved ChangeLog to the end of the file.
- Truncated ChangeLog (Mar 12 1998 - Jun 1 1999)
  Previous Authors:
  Jose Mercado <jmercado@mit.edu>
  Michael Fulbright <drmike@redhat.com>
  Shawn T. Amundson <amundson@gtk.org>
  Dick Porter <dick@cymru.net>
  Marc Ewing <marc@redhat.com>
  Owen Taylor <otaylor@gtk.org>
  Trond Eivind Glomsrod <teg@pvv.ntnu.no>
  Michael K. Johnson <johnsonm@redhat.com>
  Otto Hammersmith <otto@redhat.com>