X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=gg.spec;h=d6f1f28770e62e3c686b6cad959f41fdbdbd7ff9;hb=89f3b672b51325643c49d579ec6f8e5a8429a954;hp=ae34b4ce8c5e9bf944bf4e451195143f8f0ae554;hpb=6410c93b579a924777e1f6179b0bdf708780ba9c;p=packages%2Fgg.git diff --git a/gg.spec b/gg.spec index ae34b4c..d6f1f28 100644 --- a/gg.spec +++ b/gg.spec @@ -1,26 +1,49 @@ +# +# Conditional build: +# +# _without_gnome +# _without_gnome_applet +# _without_kde +# _without_wm_applet +# _without_sound + +# This looks like overkill but some day we might have *everything* bconded :) +%{!?_without_gnome:%define _need_gnome 1} +%{!?_without_gnome:%define _need_esd 1} +%{!?_without_gnome_applet:%define _need_gnome 1} +%{!?_without_gnome_applet:%define _nees_esd 1} +%{!?_without_kde:%define _need_arts 1} +%{!?_without_wm_applet:%define _need_esd 1} + Summary: GNU Gadu - free talking Summary(pl): GNU Gadu - wolne gadanie Name: gg -Version: 0.2.pre4 -Release: 1 -Epoch: 2 +Version: 1.0.0 +Release: 1.1 +Epoch: 5 License: GPL Group: Applications/Communications -Group(de): Applikationen/Kommunikation -Group(pl): Aplikacje/Komunikacja -Source0: http://netkrab.slackware.pl/gg/%{name}-%{version}.tar.gz -Source1: %{name}.desktop -Source2: %{name}.png +Source0: ftp://ftp.slackware.pl/pub/gg/%{name}-%{version}.tar.gz +Source1: %{name}.png +Source2: %{name}_gnome.desktop +Source3: %{name}_gnome_applet.desktop +Source4: %{name}_WM_applet.desktop +Source5: %{name}_KDE.desktop Icon: gg.xpm -URL: http://netkrab.slackware.pl/gg/ +URL: http://gadu.gnu.pl +%{?_need_arts:BuildRequires: arts-devel} +%if %{!?_without_sound:1}%{?_without_sound:0} +%{?_need_esd:BuildRequires: esound-devel > 0.2.7} +%endif +%{?_need_gnome:BuildRequires: gnome-libs-devel} +%{?_need_gnome:BuildRequires: gnome-core-devel} BuildRequires: gtk+-devel > 1.2.8 -BuildRequires: esound-devel > 0.2.7 -BuildRequires: gnome-libs-devel -BuildRequires: gnome-core-devel +BuildRequires: xmms-devel + BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -%define _prefix /usr/X11R6 -%define _mandir %{_prefix}/man +%define _sysconfdir /etc/X11/GNOME +%define _prefix /usr/X11R6 %description Gadu-Gadu client released on GNU/GPL. @@ -28,30 +51,133 @@ Gadu-Gadu client released on GNU/GPL. %description -l pl Klient Gadu-Gadu na licencji GNU/GPL. +%package common +Summary: GNU Gadu - free talking - common files +Summary(pl): GNU Gadu - wolne gadanie - wspólne pliki +Group: Applications/Communications +Obsoletes: gg =< 0.2.0 + +%description common +Gadu-Gadu client released on GNU/GPL. + +%description common -l pl +Klient Gadu-Gadu na licencji GNU/GPL. + +%package X11 +Summary: GNU Gadu - free talking +Summary(pl): GNU Gadu - wolne gadanie +Group: Applications/Communications +PreReq: %{name}-common = %{epoch}:%{version} +Provides: gg = %{epoch}:%{version}-%{release} + +%description X11 +Gadu-Gadu client released on GNU/GPL. + +%description X11 -l pl +Klient Gadu-Gadu na licencji GNU/GPL. Wersja dla X11. + %package gnome -Summary: GNU Gadu - free talking - gnome dockable -Summary(pl): GNU Gadu - wolne gadanie - wersja dokowalna dla gnome +Summary: GNU Gadu - free talking - GNOME version +Summary(pl): GNU Gadu - wolne gadanie - wersja dla GNOME Group: Applications/Communications -Group(de): Applikationen/Kommunikation -Group(pl): Aplikacje/Komunikacja +PreReq: %{name}-common = %{epoch}:%{version} +Provides: gg = %{epoch}:%{version}-%{release} %description gnome -Gadu-Gadu client released on GNU/GPL. Gnome dockable version +Gadu-Gadu client released on GNU/GPL. GNOME version + +%description gnome -l pl +Klient Gadu-Gadu na licencji GNU/GPL. Wersja dla GNOME. + +%package gnome-applet +Summary: GNU Gadu - free talking - GNOME dockable version +Summary(pl): GNU Gadu - wolne gadanie - wersja dokowalna dla GNOME +Group: Applications/Communications +PreReq: %{name}-common = %{epoch}:%{version} +Provides: gg = %{epoch}:%{version}-%{release} -%description -l pl gnome +%description gnome-applet +Gadu-Gadu client released on GNU/GPL. GNOME dockable version + +%description gnome-applet -l pl Klient Gadu-Gadu na licencji GNU/GPL. Wersja dokowalna dla gnome. +%package wm-applet +Summary: GNU Gadu - free talking - WindowMaker dockable version +Summary(pl): GNU Gadu - wolne gadanie - wersja dokowalna dla WindowMaker'a +Group: Applications/Communications +PreReq: %{name}-common = %{epoch}:%{version} +Provides: gg = %{epoch}:%{version}-%{release} + +%description wm-applet +Gadu-Gadu client released on GNU/GPL. WindowMaker dockable version + +%description wm-applet -l pl +Klient Gadu-Gadu na licencji GNU/GPL. Wersja dokowalna dla +WindowMaker'a. + +%package kde +Summary: GNU Gadu - free talking - KDE version +Summary(pl): GNU Gadu - wolne gadanie - wersja dla KDE +Group: Applications/Communications +PreReq: %{name}-common = %{epoch}:%{version} +Provides: gg = %{epoch}:%{version}-%{release} + +%description kde +Gadu-Gadu client released on GNU/GPL. KDE version + +%description kde -l pl +Klient Gadu-Gadu na licencji GNU/GPL. Wersja dla KDE. + %prep -%setup -q +%setup -q %build -LDFLAGS=" -L%{_libdir} " -%configure --enable-gnome --enable-panel +LDFLAGS=" -L%{_libdir} %{rpmldflags}" + +%if %{!?_without_gnome_applet:1}%{?_without_gnome_applet:0} +%configure \ + %{?_without_sound:--disable-esd} \ + --enable-gnome \ + --enable-panel \ + --enable-xmms +%{__make} +mv -f src/gg src/gg_applet +%{__make} clean +%endif + +%if %{!?_without_gnome:1}%{?_without_gnome:0} +%configure \ + %{?_without_sound:--disable-esd} \ + --enable-gnome \ + --enable-xmms %{__make} -mv src/gg src/gnu_gadu_applet +mv -f src/gg src/gg_gnome %{__make} clean +%endif -%configure +%if %{!?_without_wm_applet:1}%{?_without_wm_applet:0} +%configure \ + %{?_without_sound:--disable-esd} \ + --enable-dockapp \ + --enable-xmms +%{__make} +mv -f src/gg src/gg_wm +%{__make} clean +%endif + +%if %{!?_without_kde:1}%{?_without_kde:0} +%configure \ + --enable-docklet \ + %{!?_without_sound:--enable-arts} \ + --disable-esd \ + --enable-xmms +%{__make} +mv -f src/gg src/gg_kde +%{__make} clean +%endif + +%configure %{?_without_sound:--disable-esd} --enable-xmms %{__make} %install @@ -59,30 +185,64 @@ rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_applnkdir}/Network/Communications,%{_pixmapsdir},%{_datadir}/applets/Network/} %{__make} install DESTDIR=$RPM_BUILD_ROOT -install src/gnu_gadu_applet $RPM_BUILD_ROOT%{_bindir} +%{!?_without_gnome_applet:install src/gg_applet $RPM_BUILD_ROOT%{_bindir}} +%{!?_without_gnome:install src/gg_gnome $RPM_BUILD_ROOT%{_bindir}} +%{!?_without_wm_applet:install src/gg_wm $RPM_BUILD_ROOT%{_bindir}} +%{!?_without_kde:install src/gg_kde $RPM_BUILD_ROOT%{_bindir}} -install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Network/Communications/gg.desktop -cat %{SOURCE1} | sed -e 's/Exec=gg/Exec=gnu_gadu_applet/' > $RPM_BUILD_ROOT%{_datadir}/applets/Network/gnu_gadu_applet.desktop +sed -e 's/xpm$/png/' src/GnuGadu.desktop \ + > $RPM_BUILD_ROOT%{_applnkdir}/Network/Communications/GnuGadu.desktop +sed -e 's/xpm$/png/' -e 's/Exec=gg/Exec=gg_applet\ --activate-goad-server=gg/' \ + src/GnuGadu.desktop > $RPM_BUILD_ROOT%{_datadir}/applets/Network/GnuGadu.desktop -install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir} +install %{SOURCE1} $RPM_BUILD_ROOT%{_pixmapsdir} +install %{SOURCE2} $RPM_BUILD_ROOT%{_applnkdir}/Network/Communications/GnuGadu_gnome.desktop +install %{SOURCE3} $RPM_BUILD_ROOT%{_applnkdir}/Network/Communications/GnuGadu_gnome_applet.desktop +install %{SOURCE4} $RPM_BUILD_ROOT%{_applnkdir}/Network/Communications/GnuGadu_WM_applet.desktop +install %{SOURCE5} $RPM_BUILD_ROOT%{_applnkdir}/Network/Communications/GnuGadu_KDE.desktop -gzip -9nf README ChangeLog TODO +install -d $RPM_BUILD_ROOT%{_sysconfdir}/CORBA/servers/ +install src/GnuGadu.gnorba $RPM_BUILD_ROOT%{_sysconfdir}/CORBA/servers/ %clean rm -rf $RPM_BUILD_ROOT -%files +%files common %defattr(644,root,root,755) -%doc *.gz -%attr(755,root,root) %{_bindir}/gg +%doc README ChangeLog TODO %{_datadir}/gg -%{_applnkdir}/Network/Communications/gg.desktop %{_pixmapsdir}/* +%files X11 +%defattr(644,root,root,755) +%{_applnkdir}/Network/Communications/GnuGadu.desktop +%attr(755,root,root) %{_bindir}/gg + +%if %{!?_without_gnome:1}%{?_without_gnome:0} %files gnome %defattr(644,root,root,755) -%doc *.gz -%attr(755,root,root) %{_bindir}/gnu_gadu_applet -%{_datadir}/gg -%{_datadir}/applets/Network/gnu_gadu_applet.desktop -%{_pixmapsdir}/* +%attr(755,root,root) %{_bindir}/gg_gnome +%{_applnkdir}/Network/Communications/GnuGadu_gnome.desktop +%endif + +%if %{!?_without_gnome_applet:1}%{?_without_gnome_applet:0} +%files gnome-applet +%defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/gg_applet +%{_datadir}/applets/Network/GnuGadu_gnome_applet.desktop +%{_sysconfdir}/CORBA/servers/GnuGadu.gnorba +%endif + +%if %{!?_without_wm_applet:1}%{?_without_wm_applet:0} +%files wm-applet +%defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/gg_wm +%{_datadir}/applets/Network/GnuGadu_WM_applet.desktop +%endif + +%if %{!?_without_kde:1}%{?_without_kde:0} +%files kde +%defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/gg_kde +%{_applnkdir}/Network/Communications/GnuGadu_KDE.desktop +%endif