]> git.pld-linux.org Git - packages/libayatana-indicator.git/blob - libayatana-indicator.spec
46154b2cbb3b16a5bf31716343f7d4ac3dbe80b0
[packages/libayatana-indicator.git] / libayatana-indicator.spec
1 # TODO:
2 # - package systemd user target unit
3
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
7 Version:        0.9.1
8 Release:        2
9 License:        GPL v3
10 Group:          Libraries
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
24 BuildRequires:  which
25 Requires:       glib2 >= 1:2.37
26 Requires:       gtk+2 >= 2:2.18
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 A set of symbols and convenience functions that all Ayatana indicators
31 are likely to use. This package contains GTK+ 2.x version.
32
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.
36
37 %package devel
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
44
45 %description devel
46 This package contains the header files for developing applications
47 that use libayatana-indicator (GTK+ 2.x version).
48
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+
52 2.x).
53
54 %package gtk3
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)
57 Group:          Libraries
58 Requires:       glib2 >= 1:2.37
59 Requires:       gtk+3 >= 3.24
60
61 %description gtk3
62 A set of symbols and convenience functions that all Ayatana indicators
63 are likely to use. This package contains GTK+ 3.x version.
64
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.
68
69 %package gtk3-devel
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
76
77 %description gtk3-devel
78 This package contains the header files for developing applications
79 that use libayatana-indicator (GTK+ 3.x version).
80
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+
84 3.x).
85
86 %prep
87 %setup -q
88 %patch0 -p1
89
90 %build
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
95 # GTK+ 3.
96 install -d build-gtk{2,3}
97 cd build-gtk2
98 %cmake \
99         -DFLAVOUR_GTK2:BOOL=ON \
100         ..
101 %{__make}
102
103 cd ../build-gtk3
104 %cmake \
105         -DFLAVOUR_GTK3:BOOL=ON \
106         ..
107 %{__make}
108
109 %install
110 rm -rf $RPM_BUILD_ROOT
111
112 %{__make} -C build-gtk2 install -j1 \
113         DESTDIR=$RPM_BUILD_ROOT
114 %{__make} -C build-gtk3 install -j1 \
115         DESTDIR=$RPM_BUILD_ROOT
116
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
120
121 %clean
122 rm -rf $RPM_BUILD_ROOT
123
124 %post   -p /sbin/ldconfig
125 %postun -p /sbin/ldconfig
126
127 %post   gtk3 -p /sbin/ldconfig
128 %postun gtk3 -p /sbin/ldconfig
129
130 %files
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
139
140 %files devel
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
147
148 %files gtk3
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
159
160 %files gtk3-devel
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
This page took 0.075768 seconds and 2 git commands to generate.