]> git.pld-linux.org Git - packages/at-spi.git/blob - at-spi.spec
- added bcond_without static_libs
[packages/at-spi.git] / at-spi.spec
1 # Conditional build:
2 %bcond_without  static_libs     # don't build static library
3 #
4 Summary:        Assistive Technology Service Provider Interface
5 Summary(pl):    Interfejs pozwalaj±cy na korzystanie z urz±dzeñ wspomagaj±cych
6 Name:           at-spi
7 Version:        1.6.4
8 Release:        1
9 License:        LGPL v2+
10 Group:          X11/Libraries
11 Source0:        http://ftp.gnome.org/pub/gnome/sources/at-spi/1.6/%{name}-%{version}.tar.bz2
12 # Source0-md5:  be8b3077e2fab51a427303f228dffc2e
13 URL:            http://developer.gnome.org/projects/gap/
14 BuildRequires:  ORBit2-devel
15 BuildRequires:  atk-devel >= 1:1.9.0
16 BuildRequires:  autoconf
17 BuildRequires:  automake
18 BuildRequires:  gail-devel >= 1.8.1
19 BuildRequires:  gnome-common >= 2.8.0
20 BuildRequires:  gtk-doc >= 1.1
21 BuildRequires:  gtk+2-devel >= 2:2.6.3
22 BuildRequires:  intltool
23 BuildRequires:  libbonobo-devel >= 2.8.0
24 BuildRequires:  libtool
25 BuildRequires:  perl-base
26 BuildRequires:  pkgconfig
27 BuildRequires:  popt-devel
28 BuildRequires:  rpm-build >= 4.1-10
29 BuildRequires:  xft-devel >= 2.1
30 Obsoletes:      libat-spi1
31 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33 %description
34 at-spi allows assistive technologies to access GTK-based
35 applications. Essentially it exposes the internals of applications for
36 automation, so tools such as screen readers, magnifiers, or even
37 scripting interfaces can query and interact with GUI controls.
38
39 %description -l pl
40 at-spi pozwala na korzystanie z urz±dzeñ wspomagaj±cych w celu dostêpu
41 do aplikacji bazuj±cych na GTK. Przede wszystkim udostêpnia wewnêtrzne
42 interfejsy aplikacji dla automatyzacji, wiêc urz±dzenia takie jak
43 czytniki ekranu, lupy, czy nawet interfejsy skryptowe mog± odpytywaæ i
44 wspó³pracowaæ z kontrolkami interfejsu graficznego.
45
46 %package devel
47 Summary:        at-spi development files
48 Summary(pl):    Pliki programistyczne at-spi
49 Group:          X11/Development/Libraries
50 Requires:       %{name} = %{version}-%{release}
51 Requires:       atk-devel >= 1:1.9.0
52 Requires:       gtk+2-devel >= 2:2.6.3
53 Requires:       gtk-doc-common
54 Requires:       libbonobo-devel >= 2.8.0
55 Obsoletes:      libat-spi1-devel
56
57 %description devel
58 at-spi development files.
59
60 %description devel -l pl
61 Pliki programistyczne at-spi.
62
63 %package static
64 Summary:        at-spi static library
65 Summary(pl):    Statyczna biblioteka at-spi
66 Group:          X11/Development/Libraries
67 Requires:       %{name}-devel = %{version}-%{release}
68
69 %description static
70 at-spi static library.
71
72 %description static -l pl
73 Statyczna biblioteka at-spi.
74
75 %prep
76 %setup -q
77
78 %build
79 %{__libtoolize}
80 %{__aclocal}
81 %{__automake}
82 %{__autoconf}
83 %configure \
84         --enable-static \
85         --enable-gtk-doc \
86         --with-html-dir=%{_gtkdocdir} \
87         %{!?with_static_libs:--disable-static}
88 %{__make}
89
90 %install
91 rm -rf $RPM_BUILD_ROOT
92
93 %{__make} install \
94         DESTDIR=$RPM_BUILD_ROOT \
95         HTML_DIR=%{_gtkdocdir}
96
97 # no static modules
98 rm -f $RPM_BUILD_ROOT%{_libdir}/{gtk-2.0/modules,orbit-2.0}/*.{la,a}
99
100 %clean
101 rm -rf $RPM_BUILD_ROOT
102
103 %post   -p /sbin/ldconfig
104 %postun -p /sbin/ldconfig
105
106 %files
107 %defattr(644,root,root,755)
108 %attr(755,root,root) %{_libdir}/lib*.so.*.*
109 %attr(755,root,root) %{_libdir}/at-spi-registryd
110 %attr(755,root,root) %{_libdir}/orbit-2.0/*.so
111 %attr(755,root,root) %{_libdir}/gtk-2.0/modules/lib*.so
112 %{_libdir}/bonobo/servers/*
113 %{_datadir}/idl/*
114
115 %files devel
116 %defattr(644,root,root,755)
117 %attr(755,root,root) %{_libdir}/lib*.so
118 %{_libdir}/lib*.la
119 %{_includedir}/*
120 %{_gtkdocdir}/*
121 %{_pkgconfigdir}/*
122
123 %if %{with static_libs}
124 %files static
125 %defattr(644,root,root,755)
126 %{_libdir}/*.a
127 %endif
This page took 0.097297 seconds and 4 git commands to generate.