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