Following 'Maintenance Models Supported by GBS'
[platform/upstream/atk.git] / packaging / atk.spec
1 %define baseline 2.12
2 Name:           atk
3 Version:        2.12.0
4 Release:        0
5 License:        LGPL-2.0+
6 Summary:        An Accessibility ToolKit
7 Url:            http://www.gtk.org/
8 Group:          System/Libraries
9 Source:         http://download.gnome.org/sources/%{name}/%{baseline}/%{name}-%{version}.tar.xz
10 Source98:       baselibs.conf
11 Source1001:     %{name}.manifest
12 # Patches auto-generated by git-buildpackage:
13 Patch0:     0001-grab_highlight-callback-added-to-the-AtkComponentInt.patch
14 Patch1:     0002-Added-missing-symbol-for-export.patch
15 Patch2:     0003-clear_highlight-callback-added-to-the-AtkComponentIn.patch
16 Patch3:     0004-get_highlight_index-callback-added-to-the-AtkCompone.patch
17 Patch4:     0005-Tizen-2.4-spin-repo-configuration.patch
18
19 BuildRequires:  fdupes
20 BuildRequires:  gcc-c++
21 BuildRequires:  glib2-devel >= 2.35.2
22 BuildRequires:  intltool
23 BuildRequires:  which
24 %if %{with introspection}
25 BuildRequires:  gobject-introspection-devel
26 %endif
27 Requires:       libatk
28
29 %description
30 The ATK library provides a set of accessibility interfaces. By
31 supporting the ATK interfaces, an application or toolkit can be used
32 with screen readers, magnifiers, and alternate input devices.
33
34 %package -n libatk
35 Summary:        An Accessibility ToolKit
36 Group:          System/Libraries
37 Provides:       %{name} = %{version}
38 Obsoletes:      %{name} < %{version}
39
40 %description -n libatk
41 The ATK library provides a set of accessibility interfaces. By
42 supporting the ATK interfaces, an application or toolkit can be used
43 with screen readers, magnifiers, and alternate input devices.
44
45 %package -n typelib-Atk
46 Summary:        An Accessibility ToolKit -- Introspection bindings
47 Group:          System/Libraries
48
49 %description -n typelib-Atk
50 The ATK library provides a set of accessibility interfaces. By
51 supporting the ATK interfaces, an application or toolkit can be used
52 with screen readers, magnifiers, and alternate input devices.
53
54 This package provides the GObject Introspection bindings for ATK.
55
56 %package devel
57 Summary:        Include Files and Libraries mandatory for Development
58 Group:          Development/Libraries/GNOME
59 Requires:       libatk = %{version}
60
61 %description devel
62 This package contains all necessary include files and libraries needed
63 to develop applications that require these.
64
65 %prep
66 %setup -q
67 # 0001-grab_highlight-callback-added-to-the-AtkComponentInt.patch
68 %patch0 -p1
69 # 0002-Added-missing-symbol-for-export.patch
70 %patch1 -p1
71 # 0003-clear_highlight-callback-added-to-the-AtkComponentIn.patch
72 %patch2 -p1
73 # 0004-get_highlight_index-callback-added-to-the-AtkCompone.patch
74 %patch3 -p1
75 # 0005-Tizen-2.4-spin-repo-configuration.patch
76 %patch4 -p1
77
78 %build
79 %autogen \
80   --disable-static
81 make %{?_smp_mflags}
82
83 %install
84 %make_install
85 %fdupes %{buildroot}
86
87 mkdir -p %{buildroot}/usr/share/license
88 cp -f COPYING %{buildroot}/usr/share/license/%{name}
89
90 %post -n libatk -p /sbin/ldconfig
91
92 %postun -n libatk -p /sbin/ldconfig
93
94 %files -n libatk
95 %defattr(-, root, root)
96 %doc COPYING
97 /usr/share/license/%{name}
98 %{_libdir}/lib*.so.*
99
100 %files devel
101 %defattr(-, root, root)
102 %{_includedir}/atk-1.0
103 %{_libdir}/lib*.so
104 %{_libdir}/pkgconfig/*.pc
105