]> git.pld-linux.org Git - packages/libayatana-indicator.git/blame - libayatana-indicator.spec
rename to libayatana-indicator
[packages/libayatana-indicator.git] / libayatana-indicator.spec
CommitLineData
e269c381
JB
1Summary: Shared functions for Ayatana indicators (GTK+ 2.x version)
2Summary(pl.UTF-8): Funkcje współdzielone dla wskaźników Ayatana (wersja dla GTK+ 2.x)
ecd41185 3Name: libindicator
4558eefa 4Version: 12.10.1
416519b0 5Release: 3
ecd41185
ER
6License: GPL v3
7Group: Libraries
e269c381 8#Source0Download: https://launchpad.net/libindicator/+download
4558eefa
JR
9Source0: http://launchpad.net/libindicator/12.10/%{version}/+download/%{name}-%{version}.tar.gz
10# Source0-md5: 5fd4d6bab339fc9611078b64c44a85a8
e269c381
JB
11Patch0: %{name}-sh.patch
12URL: https://launchpad.net/libindicator
13BuildRequires: autoconf >= 2.64
14BuildRequires: automake >= 1:1.11
15BuildRequires: glib2-devel >= 1:2.22
16BuildRequires: gtk+2-devel >= 2:2.18
17BuildRequires: gtk+3-devel >= 3.0
18BuildRequires: libtool >= 2:2.2
f577a488 19BuildRequires: pkgconfig
e269c381 20BuildRequires: sed >= 4.0
de8db6a4 21BuildRequires: which
e269c381
JB
22Requires: glib2 >= 1:2.22
23Requires: gtk+2 >= 2:2.18
ecd41185
ER
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%description
27A set of symbols and convenience functions that all Ayatana indicators
e269c381
JB
28are likely to use. This package contains GTK+ 2.x version.
29
30%description -l pl.UTF-8
31Zbiór symboli i wygodnych funkcji, które mogą być używane przez
32wszystkie wskaźniki Ayatana. Ten pakiet zawiera wersję dla GTK+ 2.x.
ecd41185
ER
33
34%package devel
e269c381
JB
35Summary: Development files for libindicator (GTK+ 2.x version)
36Summary(pl.UTF-8): Pliki programistyczne biblioteki libindicator (wersja dla GTK+ 2.x)
ecd41185
ER
37Group: Development/Libraries
38Requires: %{name} = %{version}-%{release}
e269c381
JB
39Requires: glib2-devel >= 1:2.22
40Requires: gtk+2-devel >= 2:2.18
ecd41185
ER
41
42%description devel
e269c381
JB
43This package contains the header files for developing applications
44that use libindicator (GTK+ 2.x version).
45
46%description devel -l pl.UTF-8
47Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji
48wykorzystujących bibliotekę libindicator (w wersji dla GTK+ 2.x).
ecd41185
ER
49
50%package gtk3
e269c381
JB
51Summary: Shared functions for Ayatana indicators (GTK+ 3.x version)
52Summary(pl.UTF-8): Funkcje współdzielone dla wskaźników Ayatana (wersja dla GTK+ 3.x)
ecd41185 53Group: Libraries
e269c381
JB
54Requires: glib2 >= 1:2.22
55Requires: gtk+3 >= 3.0
ecd41185
ER
56
57%description gtk3
58A set of symbols and convenience functions that all Ayatana indicators
e269c381
JB
59are likely to use. This package contains GTK+ 3.x version.
60
61%description gtk3 -l pl.UTF-8
62Zbiór symboli i wygodnych funkcji, które mogą być używane przez
63wszystkie wskaźniki Ayatana. Ten pakiet zawiera wersję dla GTK+ 3.x.
ecd41185
ER
64
65%package gtk3-devel
e269c381
JB
66Summary: Development files for libindicator (GTK+ 3.x version)
67Summary(pl.UTF-8): Pliki programistyczne biblioteki libindicator (wersja dla GTK+ 3.x)
ecd41185
ER
68Group: Development/Libraries
69Requires: %{name}-gtk3 = %{version}-%{release}
e269c381
JB
70Requires: glib2-devel >= 1:2.22
71Requires: gtk+3-devel >= 3.0
ecd41185
ER
72
73%description gtk3-devel
e269c381 74This package contains the header files for developing applications
7b1381c7 75that use libindicator (GTK+ 3.x version).
e269c381
JB
76
77%description gtk3-devel -l pl.UTF-8
78Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji
7b1381c7 79wykorzystują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.
98install -d build-gtk{2,3}
99cd build-gtk2
100../%configure \
e269c381 101 --disable-silent-rules \
ecd41185
ER
102 --disable-static \
103 --with-gtk=2
e269c381 104%{__make}
ecd41185
ER
105
106cd ../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
114rm -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
416519b0
JB
123# dirs for library users, see .pc files for paths
124install -d $RPM_BUILD_ROOT%{_libdir}/{indicators,indicators3}/7
125install -d $RPM_BUILD_ROOT%{_datadir}/libindicator/icons
126
ecd41185
ER
127# this dummy indicator is fairly useless, it's not shipped in Ubuntu
128%{__rm} $RPM_BUILD_ROOT%{_libdir}/libdummy-indicator*.so
129
130%clean
131rm -rf $RPM_BUILD_ROOT
132
133%post -p /sbin/ldconfig
134%postun -p /sbin/ldconfig
416519b0 135
ecd41185
ER
136%post gtk3 -p /sbin/ldconfig
137%postun gtk3 -p /sbin/ldconfig
138
139%files
140%defattr(644,root,root,755)
e269c381 141%doc AUTHORS ChangeLog NEWS
ecd41185 142%attr(755,root,root) %{_libdir}/libindicator.so.*.*.*
e269c381 143%attr(755,root,root) %ghost %{_libdir}/libindicator.so.7
bb31ee0a 144%attr(755,root,root) %{_libexecdir}/indicator-loader
416519b0
JB
145%dir %{_libdir}/indicators
146%dir %{_libdir}/indicators/7
147%dir %{_datadir}/libindicator
148%dir %{_datadir}/libindicator/icons
ecd41185
ER
149
150%files devel
151%defattr(644,root,root,755)
e269c381 152%attr(755,root,root) %{_libdir}/libindicator.so
ecd41185 153%{_includedir}/libindicator-0.4
ecd41185 154%{_pkgconfigdir}/indicator-0.4.pc
ecd41185 155# This is marked as 'for development use only'
416519b0 156%{_datadir}/libindicator/80indicator-debugging
ecd41185
ER
157
158%files gtk3
159%defattr(644,root,root,755)
e269c381 160%doc AUTHORS ChangeLog NEWS
ecd41185 161%attr(755,root,root) %{_libdir}/libindicator3.so.*.*.*
e269c381 162%attr(755,root,root) %ghost %{_libdir}/libindicator3.so.7
bb31ee0a 163%attr(755,root,root) %{_libexecdir}/indicator-loader3
416519b0
JB
164%dir %{_libdir}/indicators3
165%dir %{_libdir}/indicators3/7
166%dir %{_datadir}/libindicator
167%dir %{_datadir}/libindicator/icons
ecd41185
ER
168
169%files gtk3-devel
170%defattr(644,root,root,755)
e269c381 171%attr(755,root,root) %{_libdir}/libindicator3.so
ecd41185 172%{_includedir}/libindicator3-0.4
ecd41185 173%{_pkgconfigdir}/indicator3-0.4.pc
This page took 0.210782 seconds and 4 git commands to generate.