]> git.pld-linux.org Git - packages/gg.git/blame - gg.spec
- converted to UTF-8
[packages/gg.git] / gg.spec
CommitLineData
580cd0d9
MM
1# Conditional build:
2#
7c148efa 3%bcond_without gnome # don't build with GNOME
4%bcond_without gnome_applet # don't build GNOME applet
5%bcond_without kde # don't build KDE applet
6%bcond_without wm_applet # don't build WM applet
7%bcond_without sound # disable sound support
8#
4e42e0a9 9# This looks like overkill but some day we might have *everything* bconded :)
7c148efa 10%{?with_gnome:%define need_gnome 1}
11%{?with_gnome:%define need_esd 1}
12%{?with_gnome_applet:%define need_gnome 1}
13%{?with_gnome_applet:%define nees_esd 1}
14%{?with_kde:%define need_arts 1}
15%{?with_wm_applet:%define need_esd 1}
16#
ae5f69f2 17Summary: GNU Gadu - free talking
981c48b9 18Summary(pl.UTF-8): GNU Gadu - wolne gadanie
49e659fc 19Name: gg
2c37e6ca 20Version: 1.0.0
5366b5dc 21Release: 3
2c37e6ca 22Epoch: 5
49e659fc 23License: GPL
25713d39 24Group: Applications/Communications
08b18888 25Source0: http://dl.sourceforge.net/ggadu/%{name}-%{version}.tar.gz
47727f1c 26# Source0-md5: 7b32d4c866ef59dfe22373a83b1a9a2a
68f7a512 27Source1: %{name}.png
025ae160 28Source2: %{name}_gnome.desktop
7b71f88b
PG
29Source3: %{name}_WM_applet.desktop
30Source4: %{name}_KDE.desktop
5366b5dc 31Patch0: http://piorun.ds.pg.gda.pl/~blues/patches/gg-debian_fixes.patch
5404f841 32URL: http://gadu.gnu.pl/
7c148efa 33%{?need_arts:BuildRequires: arts-devel}
34%if %{with sound}
35%{?need_esd:BuildRequires: esound-devel > 0.2.7}
4e42e0a9 36%endif
7c148efa 37%{?need_gnome:BuildRequires: gnome-libs-devel}
38%{?need_gnome:BuildRequires: gnome-core-devel}
ab716a74 39BuildRequires: gtk+-devel > 1.2.8
14dcbb17 40BuildRequires: xmms-devel
49e659fc 41BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42
52a03b7e 43%define _sysconfdir /etc/X11/GNOME
14dcbb17 44%define _prefix /usr/X11R6
49e659fc 45
46%description
ae5f69f2 47Gadu-Gadu client released on GNU/GPL.
49e659fc 48
981c48b9 49%description -l pl.UTF-8
49e659fc 50Klient Gadu-Gadu na licencji GNU/GPL.
51
64ce8f6e 52%package common
53Summary: GNU Gadu - free talking - common files
981c48b9 54Summary(pl.UTF-8): GNU Gadu - wolne gadanie - wspólne pliki
64ce8f6e 55Group: Applications/Communications
c973cb01 56Obsoletes: gg =< 0.2.0
64ce8f6e 57
64ce8f6e 58%description common
59Gadu-Gadu client released on GNU/GPL.
60
981c48b9 61%description common -l pl.UTF-8
64ce8f6e 62Klient Gadu-Gadu na licencji GNU/GPL.
63
64%package X11
2a3edca3 65Summary: GNU Gadu - free talking
981c48b9 66Summary(pl.UTF-8): GNU Gadu - wolne gadanie
64ce8f6e 67Group: Applications/Communications
94274944 68PreReq: %{name}-common = %{epoch}:%{version}
64ce8f6e 69Provides: gg = %{epoch}:%{version}-%{release}
70
71%description X11
52a03b7e 72Gadu-Gadu client released on GNU/GPL.
64ce8f6e 73
981c48b9 74%description X11 -l pl.UTF-8
64ce8f6e 75Klient Gadu-Gadu na licencji GNU/GPL. Wersja dla X11.
76
cb042015 77%package gnome
35e9106a 78Summary: GNU Gadu - free talking - GNOME version
981c48b9 79Summary(pl.UTF-8): GNU Gadu - wolne gadanie - wersja dla GNOME
25713d39 80Group: Applications/Communications
94274944 81PreReq: %{name}-common = %{epoch}:%{version}
64ce8f6e 82Provides: gg = %{epoch}:%{version}-%{release}
cb042015 83
35e9106a 84%description gnome
85Gadu-Gadu client released on GNU/GPL. GNOME version
cb042015 86
981c48b9 87%description gnome -l pl.UTF-8
35e9106a 88Klient Gadu-Gadu na licencji GNU/GPL. Wersja dla GNOME.
89
90%package gnome-applet
91Summary: GNU Gadu - free talking - GNOME dockable version
981c48b9 92Summary(pl.UTF-8): GNU Gadu - wolne gadanie - wersja dokowalna dla GNOME
35e9106a 93Group: Applications/Communications
94274944 94PreReq: %{name}-common = %{epoch}:%{version}
35e9106a 95Provides: gg = %{epoch}:%{version}-%{release}
96
97%description gnome-applet
98Gadu-Gadu client released on GNU/GPL. GNOME dockable version
99
981c48b9 100%description gnome-applet -l pl.UTF-8
3339a899 101Klient Gadu-Gadu na licencji GNU/GPL. Wersja dokowalna dla GNOME.
cb042015 102
b07d27c6 103%package wm-applet
f2a0b608 104Summary: GNU Gadu - free talking - WindowMaker dockable version
981c48b9 105Summary(pl.UTF-8): GNU Gadu - wolne gadanie - wersja dokowalna dla WindowMaker'a
b07d27c6 106Group: Applications/Communications
94274944 107PreReq: %{name}-common = %{epoch}:%{version}
b07d27c6 108Provides: gg = %{epoch}:%{version}-%{release}
109
110%description wm-applet
111Gadu-Gadu client released on GNU/GPL. WindowMaker dockable version
112
981c48b9 113%description wm-applet -l pl.UTF-8
2a3edca3 114Klient Gadu-Gadu na licencji GNU/GPL. Wersja dokowalna dla
115WindowMaker'a.
b07d27c6 116
117%package kde
f2a0b608 118Summary: GNU Gadu - free talking - KDE version
981c48b9 119Summary(pl.UTF-8): GNU Gadu - wolne gadanie - wersja dla KDE
b07d27c6 120Group: Applications/Communications
94274944 121PreReq: %{name}-common = %{epoch}:%{version}
b07d27c6 122Provides: gg = %{epoch}:%{version}-%{release}
123
124%description kde
125Gadu-Gadu client released on GNU/GPL. KDE version
126
981c48b9 127%description kde -l pl.UTF-8
b07d27c6 128Klient Gadu-Gadu na licencji GNU/GPL. Wersja dla KDE.
129
49e659fc 130%prep
a1c2e115 131%setup -q
5366b5dc 132%patch0 -p1
49e659fc 133
134%build
6790e806 135LDFLAGS=" -L%{_libdir} %{rpmldflags}"
580cd0d9 136
7c148efa 137%if %{with gnome_applet}
6790e806 138%configure \
7c148efa 139 %{!?with_sound:--disable-esd} \
6790e806 140 --enable-gnome \
bbc98e10
PG
141 --enable-panel \
142 --enable-xmms
cb042015 143%{__make}
9209df71 144mv -f src/gg src/gg_applet
35e9106a 145%{__make} clean
580cd0d9 146%endif
35e9106a 147
7c148efa 148%if %{with gnome}
35e9106a 149%configure \
7c148efa 150 %{!?with_sound:--disable-esd} \
bbc98e10
PG
151 --enable-gnome \
152 --enable-xmms
35e9106a 153%{__make}
9209df71 154mv -f src/gg src/gg_gnome
cb042015 155%{__make} clean
580cd0d9 156%endif
cb042015 157
7c148efa 158%if %{with wm_applet}
b07d27c6 159%configure \
7c148efa 160 %{!?with_sound:--disable-esd} \
bbc98e10
PG
161 --enable-dockapp \
162 --enable-xmms
b07d27c6 163%{__make}
164mv -f src/gg src/gg_wm
165%{__make} clean
580cd0d9 166%endif
b07d27c6 167
7c148efa 168%if %{with kde}
b07d27c6 169%configure \
a3a4cda4 170 --enable-docklet \
7c148efa 171 %{?with_sound:--enable-arts} \
bbc98e10
PG
172 --disable-esd \
173 --enable-xmms
b07d27c6 174%{__make}
175mv -f src/gg src/gg_kde
176%{__make} clean
580cd0d9 177%endif
b07d27c6 178
7c148efa 179%configure %{!?with_sound:--disable-esd} --enable-xmms
49e659fc 180%{__make}
181
182%install
183rm -rf $RPM_BUILD_ROOT
5366b5dc
PG
184install -d $RPM_BUILD_ROOT{%{_applnkdir}/Network/Communications,%{_datadir}/applets/Network} \
185 $RPM_BUILD_ROOT{%{_sysconfdir}/CORBA/servers,%{_pixmapsdir}}
186
187%{__make} install \
188 DESTDIR=$RPM_BUILD_ROOT
49e659fc 189
7c148efa 190%{?with_gnome_applet:install src/gg_applet $RPM_BUILD_ROOT%{_bindir}}
191%{?with_gnome:install src/gg_gnome $RPM_BUILD_ROOT%{_bindir}}
192%{?with_wm_applet:install src/gg_wm $RPM_BUILD_ROOT%{_bindir}}
193%{?with_kde:install src/gg_kde $RPM_BUILD_ROOT%{_bindir}}
d7b2d032 194
9209df71
JB
195sed -e 's/xpm$/png/' src/GnuGadu.desktop \
196 > $RPM_BUILD_ROOT%{_applnkdir}/Network/Communications/GnuGadu.desktop
197sed -e 's/xpm$/png/' -e 's/Exec=gg/Exec=gg_applet\ --activate-goad-server=gg/' \
198 src/GnuGadu.desktop > $RPM_BUILD_ROOT%{_datadir}/applets/Network/GnuGadu.desktop
cb042015 199
68f7a512 200install %{SOURCE1} $RPM_BUILD_ROOT%{_pixmapsdir}
025ae160 201install %{SOURCE2} $RPM_BUILD_ROOT%{_applnkdir}/Network/Communications/GnuGadu_gnome.desktop
7b71f88b
PG
202install %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/applets/Network/GnuGadu_WM_applet.desktop
203install %{SOURCE4} $RPM_BUILD_ROOT%{_applnkdir}/Network/Communications/GnuGadu_KDE.desktop
a4059908 204install src/GnuGadu.gnorba $RPM_BUILD_ROOT%{_sysconfdir}/CORBA/servers/
49e659fc 205
206%clean
9209df71 207rm -rf $RPM_BUILD_ROOT
49e659fc 208
64ce8f6e 209%files common
49e659fc 210%defattr(644,root,root,755)
c80a4662 211%doc README ChangeLog TODO
d7b2d032 212%{_datadir}/gg
d7b2d032 213%{_pixmapsdir}/*
cb042015 214
64ce8f6e 215%files X11
216%defattr(644,root,root,755)
64ce8f6e 217%attr(755,root,root) %{_bindir}/gg
5404f841 218%{_applnkdir}/Network/Communications/GnuGadu.desktop
64ce8f6e 219
7c148efa 220%if %{with gnome}
cb042015 221%files gnome
222%defattr(644,root,root,755)
3e92e3f8 223%attr(755,root,root) %{_bindir}/gg_gnome
025ae160 224%{_applnkdir}/Network/Communications/GnuGadu_gnome.desktop
580cd0d9 225%endif
35e9106a 226
7c148efa 227%if %{with gnome_applet}
35e9106a 228%files gnome-applet
229%defattr(644,root,root,755)
3e92e3f8 230%attr(755,root,root) %{_bindir}/gg_applet
7b71f88b 231%{_datadir}/applets/Network/GnuGadu.desktop
12a08cf6 232%{_sysconfdir}/CORBA/servers/GnuGadu.gnorba
580cd0d9 233%endif
b07d27c6 234
7c148efa 235%if %{with wm_applet}
b07d27c6 236%files wm-applet
237%defattr(644,root,root,755)
238%attr(755,root,root) %{_bindir}/gg_wm
025ae160 239%{_datadir}/applets/Network/GnuGadu_WM_applet.desktop
580cd0d9 240%endif
b07d27c6 241
7c148efa 242%if %{with kde}
b07d27c6 243%files kde
244%defattr(644,root,root,755)
245%attr(755,root,root) %{_bindir}/gg_kde
025ae160 246%{_applnkdir}/Network/Communications/GnuGadu_KDE.desktop
580cd0d9 247%endif
This page took 0.102977 seconds and 4 git commands to generate.