2 # - package systemd user target unit
4 Summary: Shared functions for Ayatana indicators (GTK+ 2.x version)
5 Summary(pl.UTF-8): Funkcje współdzielone dla wskaźników Ayatana (wersja dla GTK+ 2.x)
6 Name: libayatana-indicator
11 #Source0Download: https://github.com/AyatanaIndicators/libayatana-indicator/releases
12 Source0: https://github.com/AyatanaIndicators/libayatana-indicator/archive/%{version}/%{name}-%{version}.tar.gz
13 # Source0-md5: b7a7fd24a749cb384431b8309db65a58
14 Patch0: build-type.patch
15 URL: https://github.com/AyatanaIndicators/libayatana-indicator
16 BuildRequires: ayatana-ido-devel >= 0.8.2
17 BuildRequires: cmake >= 3.13
18 BuildRequires: glib2-devel >= 1:2.37
19 BuildRequires: gtk+2-devel >= 2:2.18
20 BuildRequires: gtk+3-devel >= 3.24
21 BuildRequires: pkgconfig
22 BuildRequires: rpmbuild(macros) >= 1.605
23 BuildRequires: sed >= 4.0
25 Requires: glib2 >= 1:2.37
26 Requires: gtk+2 >= 2:2.18
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 A set of symbols and convenience functions that all Ayatana indicators
31 are likely to use. This package contains GTK+ 2.x version.
33 %description -l pl.UTF-8
34 Zbiór symboli i wygodnych funkcji, które mogą być używane przez
35 wszystkie wskaźniki Ayatana. Ten pakiet zawiera wersję dla GTK+ 2.x.
38 Summary: Development files for libayatana-indicator (GTK+ 2.x version)
39 Summary(pl.UTF-8): Pliki programistyczne biblioteki libayatana-indicator (wersja dla GTK+ 2.x)
40 Group: Development/Libraries
41 Requires: %{name} = %{version}-%{release}
42 Requires: glib2-devel >= 1:2.37
43 Requires: gtk+2-devel >= 2:2.18
46 This package contains the header files for developing applications
47 that use libayatana-indicator (GTK+ 2.x version).
49 %description devel -l pl.UTF-8
50 Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji
51 wykorzystujących bibliotekę libayatana-indicator (w wersji dla GTK+
55 Summary: Shared functions for Ayatana indicators (GTK+ 3.x version)
56 Summary(pl.UTF-8): Funkcje współdzielone dla wskaźników Ayatana (wersja dla GTK+ 3.x)
58 Requires: glib2 >= 1:2.37
59 Requires: gtk+3 >= 3.24
62 A set of symbols and convenience functions that all Ayatana indicators
63 are likely to use. This package contains GTK+ 3.x version.
65 %description gtk3 -l pl.UTF-8
66 Zbiór symboli i wygodnych funkcji, które mogą być używane przez
67 wszystkie wskaźniki Ayatana. Ten pakiet zawiera wersję dla GTK+ 3.x.
70 Summary: Development files for libayatana-indicator (GTK+ 3.x version)
71 Summary(pl.UTF-8): Pliki programistyczne biblioteki libayatana-indicator (wersja dla GTK+ 3.x)
72 Group: Development/Libraries
73 Requires: %{name}-gtk3 = %{version}-%{release}
74 Requires: glib2-devel >= 1:2.37
75 Requires: gtk+3-devel >= 3.24
77 %description gtk3-devel
78 This package contains the header files for developing applications
79 that use libayatana-indicator (GTK+ 3.x version).
81 %description gtk3-devel -l pl.UTF-8
82 Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji
83 wykorzystujących bibliotekę libayatana-indicator (w wersji dla GTK+
91 # we build it twice, once against GTK+ 3 and once against GTK+ 2, so
92 # both GTK+ 2 and GTK+ 3 apps can use it; the GTK+ 3 build is
93 # libayatana-indicator-gtk3. When we have no need for the GTK+ 2 build any more
94 # we can drop the -gtk3 package and have the main package build against
96 install -d build-gtk{2,3}
99 -DFLAVOUR_GTK2:BOOL=ON \
105 -DFLAVOUR_GTK3:BOOL=ON \
110 rm -rf $RPM_BUILD_ROOT
112 %{__make} -C build-gtk2 install -j1 \
113 DESTDIR=$RPM_BUILD_ROOT
114 %{__make} -C build-gtk3 install -j1 \
115 DESTDIR=$RPM_BUILD_ROOT
117 # dirs for library users, see .pc files for paths
118 install -d $RPM_BUILD_ROOT%{_libdir}/ayatana-{indicators,indicators3}/7
119 install -d $RPM_BUILD_ROOT%{_datadir}/libayatana-indicator/icons
122 rm -rf $RPM_BUILD_ROOT
124 %post -p /sbin/ldconfig
125 %postun -p /sbin/ldconfig
127 %post gtk3 -p /sbin/ldconfig
128 %postun gtk3 -p /sbin/ldconfig
131 %defattr(644,root,root,755)
132 %doc AUTHORS ChangeLog NEWS
133 %attr(755,root,root) %{_libdir}/libayatana-indicator.so.*.*.*
134 %attr(755,root,root) %ghost %{_libdir}/libayatana-indicator.so.7
135 %dir %{_libdir}/ayatana-indicators
136 %dir %{_libdir}/ayatana-indicators/7
137 %dir %{_datadir}/libayatana-indicator
138 %dir %{_datadir}/libayatana-indicator/icons
141 %defattr(644,root,root,755)
142 %attr(755,root,root) %{_libdir}/libayatana-indicator.so
143 %{_includedir}/libayatana-indicator-0.4
144 %{_pkgconfigdir}/ayatana-indicator-0.4.pc
145 # This is marked as 'for development use only'
146 %{_datadir}/libayatana-indicator/80indicator-debugging
149 %defattr(644,root,root,755)
150 %doc AUTHORS ChangeLog NEWS
151 %attr(755,root,root) %{_libdir}/libayatana-indicator3.so.*.*.*
152 %attr(755,root,root) %ghost %{_libdir}/libayatana-indicator3.so.7
153 %dir %{_libexecdir}/libayatana-indicator
154 %attr(755,root,root) %{_libexecdir}/libayatana-indicator/ayatana-indicator-loader3
155 %dir %{_libdir}/ayatana-indicators3
156 %dir %{_libdir}/ayatana-indicators3/7
157 %dir %{_datadir}/libayatana-indicator
158 %dir %{_datadir}/libayatana-indicator/icons
161 %defattr(644,root,root,755)
162 %attr(755,root,root) %{_libdir}/libayatana-indicator3.so
163 %{_includedir}/libayatana-indicator3-0.4
164 %{_pkgconfigdir}/ayatana-indicator3-0.4.pc