]> git.pld-linux.org Git - packages/libayatana-indicator.git/blame - libindicator.spec
adjust to new %{_libexecdir}
[packages/libayatana-indicator.git] / libindicator.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
0461a99e 5Release: 2
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
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
127rm -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
This page took 0.188358 seconds and 4 git commands to generate.