7be0b86089a1c250249079a9a043a6d2a4d63078
[platform/upstream/atk.git] / atk.spec.in
1 Name:           atk
2 Summary:        Accessability Toolkit
3 Version:        @VERSION@
4 Release:        1
5 License:        LGPL
6 Group:          Development/Libraries
7 Source:         ftp://ftp.gimp.org/pub/gtk/v1.3/%{name}-%{version}.tar.gz
8 BuildRoot:      /var/tmp/%{name}-%{version}-root
9 URL:            http://www.gtk.org
10 Requires:       glib2 >= @GLIB_REQUIRED_VERSION@
11 BuildRequires:  glib2-devel >= @GLIB_REQUIRED_VERSION@
12
13 %description
14 Handy library of accessability functions. Development libs and headers
15 are in atk-devel.
16
17 %package devel
18 Summary:        Header, docs and development libraries for atk.
19 Group:          Development/Libraries
20 Requires:       %{name} = %{version}
21
22 %description devel
23 Header, docs and development libraries for atk.
24
25 %prep
26 %setup -q
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}/pkgconfig/*.pc
66 %{_includedir}/atk-1.0
67 %{_datadir}/gtk-doc/html/atk
68
69 %changelog
70 * Mon Aug 27 2001 Jens Finke <jens@gnome.org>
71 - glib2 package now required
72 - updated source url
73
74 * Wed Aug 15 2001 Jens Finke <jens@gnome.org>
75 - created spec file