2.7.1
[platform/upstream/glib.git] / glib.spec.in
1 Name:           glib2
2 Summary:        Handy library of utility functions
3 Version:        @VERSION@
4 Release:        1
5 License:        LGPL
6 Group:          Development/Libraries
7 Source:         ftp://ftp.gimp.org/pub/gtk/v2.0/glib-%{version}.tar.gz
8 BuildRoot:      /var/tmp/%{name}-%{version}-root
9 URL:            http://www.gtk.org
10
11 %description
12 Handy library of utility functions.  Development libs and headers
13 are in glib-devel.
14
15 %package devel
16 Summary:        GIMP Toolkit and GIMP Drawing Kit support library
17 Group:          Development/Libraries
18 Requires:       %{name} = %{version}
19
20 %description devel
21 Static libraries and header files for the support library for the GIMP's X
22 libraries, which are available as public libraries.  GLIB includes generally
23 useful data structures.
24
25 %prep
26 %setup -q -n glib-%{version}
27
28 %build
29 CFLAGS="$RPM_OPT_FLAGS"
30 ./configure --prefix=%{_prefix} \
31     --bindir=%{_bindir} --mandir=%{_mandir} \
32     --localstatedir=%{_localstatedir} --libdir=%{_libdir} \
33     --datadir=%{_datadir} --includedir=%{_includedir} \
34     --sysconfdir=%{_sysconfdir} --disable-gtk-doc
35 make
36
37 %install
38 rm -rf $RPM_BUILD_ROOT
39
40 make prefix=$RPM_BUILD_ROOT%{_prefix} bindir=$RPM_BUILD_ROOT%{_bindir} \
41     mandir=$RPM_BUILD_ROOT%{_mandir} libdir=$RPM_BUILD_ROOT%{_libdir} \
42     localstatedir=$RPM_BUILD_ROOT%{_localstatedir} \
43     datadir=$RPM_BUILD_ROOT%{_datadir} \
44     includedir=$RPM_BUILD_ROOT%{_includedir} \
45     sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} install
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %post -p /sbin/ldconfig
51
52 %postun -p /sbin/ldconfig
53
54 %files
55 %defattr(-, root, root)
56
57 %doc AUTHORS COPYING ChangeLog NEWS README
58 %{_libdir}/lib*.so.*
59
60 %files devel
61 %defattr(-, root, root)
62
63 %{_libdir}/lib*.so
64 %{_libdir}/*a
65 %{_libdir}/glib-2.0
66 %{_libdir}/pkgconfig/*.pc
67 %{_includedir}/glib-2.0
68 %{_mandir}/man1/glib-*
69 %{_datadir}/aclocal/*
70 %{_bindir}/*
71 #%{_datadir}/gtk-doc/html/glib-2.0
72 #%{_datadir}/gtk-doc/html/gobject
73
74 %changelog
75 * Mon Aug 27 2001 Jens Finke <jens@gnome.org>
76 - Changed package name to glib2. 
77 - Updated source URL.
78
79 * Mon Aug 14 2001 Jens Finke <jens@gnome.org>
80 - Updated to match gpp standard:
81  - removed all hardcoded paths, use rpm macros instead
82  - changed Copyright to License
83  - removed explicit docdir definition 
84  - added 'Requires' to devel package
85  - added paths to 'configure' and 'make' calls
86  - moved %changelog section to the end of the file
87  - updated files section to match changes in glib-2.0
88
89 * Tue Jun  1 1999 Jose Mercado <jmercado@mit.edu>
90 - fixed version numbers in files section.
91
92 * Thu Feb 11 1999 Michael Fulbright <drmike@redhat.com>
93 - added libgthread to file list
94
95 * Fri Feb 05 1999 Michael Fulbright <drmike@redhat.com>
96 - version 1.1.15
97
98 * Wed Feb 03 1999 Michael Fulbright <drmike@redhat.com>
99 - version 1.1.14
100
101 * Mon Jan 18 1999 Michael Fulbright <drmike@redhat.com>
102 - version 1.1.13
103
104 * Wed Jan 06 1999 Michael Fulbright <drmike@redhat.com>
105 - version 1.1.12
106
107 * Wed Dec 16 1998 Michael Fulbright <drmike@redhat.com>
108 - updated in preparation for the GNOME freeze
109
110 * Mon Apr 13 1998 Marc Ewing <marc@redhat.com>
111 - Split out glib package