]>
Commit | Line | Data |
---|---|---|
e269c381 JB |
1 | Summary: Shared functions for Ayatana indicators (GTK+ 2.x version) |
2 | Summary(pl.UTF-8): Funkcje współdzielone dla wskaźników Ayatana (wersja dla GTK+ 2.x) | |
ecd41185 | 3 | Name: libindicator |
4558eefa | 4 | Version: 12.10.1 |
0461a99e | 5 | Release: 2 |
ecd41185 ER |
6 | License: GPL v3 |
7 | Group: Libraries | |
e269c381 | 8 | #Source0Download: https://launchpad.net/libindicator/+download |
4558eefa JR |
9 | Source0: http://launchpad.net/libindicator/12.10/%{version}/+download/%{name}-%{version}.tar.gz |
10 | # Source0-md5: 5fd4d6bab339fc9611078b64c44a85a8 | |
e269c381 JB |
11 | Patch0: %{name}-sh.patch |
12 | URL: https://launchpad.net/libindicator | |
13 | BuildRequires: autoconf >= 2.64 | |
14 | BuildRequires: automake >= 1:1.11 | |
15 | BuildRequires: glib2-devel >= 1:2.22 | |
16 | BuildRequires: gtk+2-devel >= 2:2.18 | |
17 | BuildRequires: gtk+3-devel >= 3.0 | |
18 | BuildRequires: libtool >= 2:2.2 | |
f577a488 | 19 | BuildRequires: pkgconfig |
e269c381 | 20 | BuildRequires: sed >= 4.0 |
de8db6a4 | 21 | BuildRequires: which |
e269c381 JB |
22 | Requires: glib2 >= 1:2.22 |
23 | Requires: gtk+2 >= 2:2.18 | |
ecd41185 ER |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %description | |
27 | A set of symbols and convenience functions that all Ayatana indicators | |
e269c381 JB |
28 | are likely to use. This package contains GTK+ 2.x version. |
29 | ||
30 | %description -l pl.UTF-8 | |
31 | Zbiór symboli i wygodnych funkcji, które mogą być używane przez | |
32 | wszystkie wskaźniki Ayatana. Ten pakiet zawiera wersję dla GTK+ 2.x. | |
ecd41185 ER |
33 | |
34 | %package devel | |
e269c381 JB |
35 | Summary: Development files for libindicator (GTK+ 2.x version) |
36 | Summary(pl.UTF-8): Pliki programistyczne biblioteki libindicator (wersja dla GTK+ 2.x) | |
ecd41185 ER |
37 | Group: Development/Libraries |
38 | Requires: %{name} = %{version}-%{release} | |
e269c381 JB |
39 | Requires: glib2-devel >= 1:2.22 |
40 | Requires: gtk+2-devel >= 2:2.18 | |
ecd41185 ER |
41 | |
42 | %description devel | |
e269c381 JB |
43 | This package contains the header files for developing applications |
44 | that use libindicator (GTK+ 2.x version). | |
45 | ||
46 | %description devel -l pl.UTF-8 | |
47 | Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji | |
48 | wykorzystujących bibliotekę libindicator (w wersji dla GTK+ 2.x). | |
ecd41185 ER |
49 | |
50 | %package gtk3 | |
e269c381 JB |
51 | Summary: Shared functions for Ayatana indicators (GTK+ 3.x version) |
52 | Summary(pl.UTF-8): Funkcje współdzielone dla wskaźników Ayatana (wersja dla GTK+ 3.x) | |
ecd41185 | 53 | Group: Libraries |
e269c381 JB |
54 | Requires: glib2 >= 1:2.22 |
55 | Requires: gtk+3 >= 3.0 | |
ecd41185 ER |
56 | |
57 | %description gtk3 | |
58 | A set of symbols and convenience functions that all Ayatana indicators | |
e269c381 JB |
59 | are likely to use. This package contains GTK+ 3.x version. |
60 | ||
61 | %description gtk3 -l pl.UTF-8 | |
62 | Zbiór symboli i wygodnych funkcji, które mogą być używane przez | |
63 | wszystkie wskaźniki Ayatana. Ten pakiet zawiera wersję dla GTK+ 3.x. | |
ecd41185 ER |
64 | |
65 | %package gtk3-devel | |
e269c381 JB |
66 | Summary: Development files for libindicator (GTK+ 3.x version) |
67 | Summary(pl.UTF-8): Pliki programistyczne biblioteki libindicator (wersja dla GTK+ 3.x) | |
ecd41185 ER |
68 | Group: Development/Libraries |
69 | Requires: %{name}-gtk3 = %{version}-%{release} | |
e269c381 JB |
70 | Requires: glib2-devel >= 1:2.22 |
71 | Requires: gtk+3-devel >= 3.0 | |
ecd41185 ER |
72 | |
73 | %description gtk3-devel | |
e269c381 | 74 | This package contains the header files for developing applications |
7b1381c7 | 75 | that use libindicator (GTK+ 3.x version). |
e269c381 JB |
76 | |
77 | %description gtk3-devel -l pl.UTF-8 | |
78 | Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji | |
7b1381c7 | 79 | wykorzystujących bibliotekę libindicator (w wersji dla GTK+ 3.x). |
ecd41185 ER |
80 | |
81 | %prep | |
82 | %setup -q | |
e269c381 JB |
83 | %patch0 -p1 |
84 | ||
4558eefa | 85 | %{__sed} -i -e 's|-Werror||g' */Makefile.am |
ecd41185 ER |
86 | |
87 | %build | |
e269c381 | 88 | %{__libtoolize} |
4558eefa | 89 | %{__aclocal} |
4558eefa | 90 | %{__autoconf} |
e269c381 JB |
91 | %{__autoheader} |
92 | %{__automake} | |
ecd41185 ER |
93 | # we build it twice, once against GTK+ 3 and once against GTK+ 2, so |
94 | # both GTK+ 2 and GTK+ 3 apps can use it; the GTK+ 3 build is | |
95 | # libindicator-gtk3. When we have no need for the GTK+ 2 build any more | |
96 | # we can drop the -gtk3 package and have the main package build against | |
97 | # GTK+ 3. | |
98 | install -d build-gtk{2,3} | |
99 | cd build-gtk2 | |
100 | ../%configure \ | |
e269c381 | 101 | --disable-silent-rules \ |
ecd41185 ER |
102 | --disable-static \ |
103 | --with-gtk=2 | |
e269c381 | 104 | %{__make} |
ecd41185 ER |
105 | |
106 | cd ../build-gtk3 | |
107 | ../%configure \ | |
e269c381 | 108 | --disable-silent-rules \ |
ecd41185 ER |
109 | --disable-static \ |
110 | --with-gtk=3 | |
e269c381 | 111 | %{__make} |
ecd41185 ER |
112 | |
113 | %install | |
114 | rm -rf $RPM_BUILD_ROOT | |
e269c381 | 115 | |
ecd41185 ER |
116 | %{__make} -C build-gtk2 install -j1 \ |
117 | DESTDIR=$RPM_BUILD_ROOT | |
118 | %{__make} -C build-gtk3 install -j1 \ | |
119 | DESTDIR=$RPM_BUILD_ROOT | |
120 | ||
121 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la | |
122 | ||
123 | # this dummy indicator is fairly useless, it's not shipped in Ubuntu | |
124 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libdummy-indicator*.so | |
125 | ||
126 | %clean | |
127 | rm -rf $RPM_BUILD_ROOT | |
128 | ||
129 | %post -p /sbin/ldconfig | |
130 | %postun -p /sbin/ldconfig | |
131 | %post gtk3 -p /sbin/ldconfig | |
132 | %postun gtk3 -p /sbin/ldconfig | |
133 | ||
134 | %files | |
135 | %defattr(644,root,root,755) | |
e269c381 | 136 | %doc AUTHORS ChangeLog NEWS |
ecd41185 | 137 | %attr(755,root,root) %{_libdir}/libindicator.so.*.*.* |
e269c381 | 138 | %attr(755,root,root) %ghost %{_libdir}/libindicator.so.7 |
bb31ee0a | 139 | %attr(755,root,root) %{_libexecdir}/indicator-loader |
ecd41185 ER |
140 | |
141 | %files devel | |
142 | %defattr(644,root,root,755) | |
e269c381 | 143 | %attr(755,root,root) %{_libdir}/libindicator.so |
ecd41185 | 144 | %{_includedir}/libindicator-0.4 |
ecd41185 ER |
145 | %{_pkgconfigdir}/indicator-0.4.pc |
146 | # Contains 80indicator-debugging | |
147 | # This is marked as 'for development use only' | |
148 | %{_datadir}/libindicator | |
149 | ||
150 | %files gtk3 | |
151 | %defattr(644,root,root,755) | |
e269c381 | 152 | %doc AUTHORS ChangeLog NEWS |
ecd41185 | 153 | %attr(755,root,root) %{_libdir}/libindicator3.so.*.*.* |
e269c381 | 154 | %attr(755,root,root) %ghost %{_libdir}/libindicator3.so.7 |
bb31ee0a | 155 | %attr(755,root,root) %{_libexecdir}/indicator-loader3 |
ecd41185 ER |
156 | |
157 | %files gtk3-devel | |
158 | %defattr(644,root,root,755) | |
e269c381 | 159 | %attr(755,root,root) %{_libdir}/libindicator3.so |
ecd41185 | 160 | %{_includedir}/libindicator3-0.4 |
ecd41185 | 161 | %{_pkgconfigdir}/indicator3-0.4.pc |