]> git.pld-linux.org Git - packages/gg2.git/blobdiff - gg2.spec
- snapshot 20031020
[packages/gg2.git] / gg2.spec
index 4bdd2e22f54b3103c018e9b836175417d9b7c4a6..797cdf31d95f230f1c3679325d018b24282fe2e0 100644 (file)
--- a/gg2.spec
+++ b/gg2.spec
@@ -1,62 +1,79 @@
 
+%bcond_with    arts
+%bcond_without perl
+
+%define                _snap   20031020
 Summary:       GNU Gadu 2 - free talking
+Summary(es):   GNU Gadu 2 - charlar libremente
 Summary(pl):   GNU Gadu 2 - wolne gadanie
 Name:          gg2
-Version:       2.0pre3
-Release:       1
-Epoch:         1
+Version:       2.0
+Release:       2.%{_snap}.1
+Epoch:         2
 License:       GPL v2+
 Group:         Applications/Communications
-Source0:       http://dl.sourceforge.net/sourceforge/ggadu/%{name}-%{version}.tar.gz
-# Source0-md5: 49c52cec6869c9ed1b3c015f37401879
+#Source0:      http://dl.sourceforge.net/sourceforge/ggadu/%{name}-%{version}-%{_snap}.tar.gz
+Source0:       ftp://distfiles.pld-linux.org/src/%{name}-%{version}-%{_snap}.tar.gz
+# Source0-md5: 2b1540839e84b39688c68d008d0725eb
 Source1:       %{name}.desktop
 URL:           http://www.gadu.gnu.pl/
-#BuildRequires:        arts-devel
 BuildRequires: perl-devel
 BuildRequires: autoconf
 BuildRequires: automake >= 1.7
 BuildRequires: esound-devel >= 0.2.7
-BuildRequires: iksemel-devel >= 0.0.1
+BuildRequires: loudmouth-devel >= 0.13.1
 BuildRequires: glib2-devel  >= 2.2.0
 BuildRequires: gtk+2-devel  >= 2.2.0
-BuildRequires: libgadu-devel >= 1.0
+BuildRequires: libgadu-devel <= 3:1.3-1
 BuildRequires: libtlen-devel
 BuildRequires: libtool
 BuildRequires: intltool
 BuildRequires: gettext-devel >= 0.11.0
 BuildRequires: xosd-devel   >= 2.0.0
-BuildRequires:  pkgconfig
+BuildRequires: pkgconfig
 BuildRequires: fontconfig-devel
+%{?with_arts:BuildRequires:    arts-devel}
+%{?with_perl:BuildRequires:    perl-devel}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 Gadu-Gadu, Tlen.pl and others instant messanger client with
 GTK+2 GUI on GNU/GPL.
 
+%description -l es
+Un cliente para Gadu-Gadu, Tlen.pl y otros protocolos con un GUI de
+GTK+2, bajo la licencia GNU/GPL.
+
 %description -l pl
 Klient Gadu-Gadu, Tlen.pl oraz innych protoko³ów z GUI pod GTK+2 na
 licencji GNU/GPL.
 
 %package devel
-Summary:       Headers to develop plugins
-Summary(pl):   Pliki potrzebne do rozwijania pluginow
+Summary:       Headers for libgg2_core library to develop plugins
+Summary(es):   Cabeceras para la biblioteca libgg2_core para desarrollar plugins
+Summary(pl):   Pliki nag³ówkowe biblioteki libgg2_core potrzebne do rozwijania wtyczek
 Group:         Applications/Communications
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{epoch}:%{version}
+Requires:      glib2-devel
+Requires:      perl-devel
 
 %description devel
-Gadu-Gadu, Tlen.pl and others instant messanger client with
-GTK+2 GUI on GNU/GPL. Package contain header files.
+This package contains header files for libgg2_core library, needed to
+develop plugins for GNU Gadu 2.
 
-%description devel -l pl
-Klient Gadu-Gadu, Tlen.pl oraz innych protoko³ów z GUI pod GTK+2 na
-licencji GNU/GPL. - Pakiet zawiera pliki naglowkowe.
+%description devel -l es
+Este paquete contiene los ficheros de cabeceras de la biblioteca
+libgg2_core necesarios para desarrollar plugins para GNU Gadu 2.
 
+%description devel -l pl
+Ten pakiet zawiera pliki nag³ówkowe biblioteki libgg2_core, potrzebne
+do rozwijania wtyczek do GNU Gadu 2.
 
 %package gui-gtk+2
 Summary:       GTK+2 GUI plugin
 Summary(pl):   Wtyczka z GUI w GTK+2
 Group:         Applications/Communications
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{epoch}:%{version}
 
 %description gui-gtk+2
 GTK+2 GUI plugin for GNU Gadu 2.
@@ -68,7 +85,7 @@ Wtyczka z GUI w GTK+2 do GNU Gadu 2.
 Summary:       Emoticons
 Summary(pl):   Emotikony
 Group:         Applications/Communications
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{epoch}:%{version}
 
 %description emoticons
 Emotions icons and description files.
@@ -80,7 +97,7 @@ Zestaw ikon z emotikonami, oraz plikiem konfiguracyjnym.
 Summary:       Gadu-Gadu plugin
 Summary(pl):   Wtyczka protoko³u Gadu-Gadu
 Group:         Applications/Communications
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{epoch}:%{version}
 
 %description gadu-gadu
 Gadu-Gadu protocol plugin.
@@ -92,7 +109,7 @@ Wtyczka protoko
 Summary:       Tlen.pl plugin
 Summary(pl):   Wtyczka protoko³u Tlen.pl
 Group:         Applications/Communications
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{epoch}:%{version}
 
 %description tlen
 Tlen.pl protocol plugin.
@@ -104,7 +121,7 @@ Wtyczka protoko
 Summary:       Jabber.org plugin
 Summary(pl):   Wtyczka protoko³u Jabber
 Group:         Applications/Communications
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{epoch}:%{version}
 
 %description jabber
 Jabber protocol plugin.
@@ -116,7 +133,7 @@ Wtyczka protoko
 Summary:       Sound support with ESD
 Summary(pl):   Obs³uga d¼wiêku poprzez ESD
 Group:         Applications/Communications
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{epoch}:%{version}
 
 %description sound-esd
 Sound support with ESD.
@@ -128,7 +145,7 @@ Obs
 Summary:       OSS sound support
 Summary(pl):   Obs³uga d¼wiêku OSS
 Group:         Applications/Communications
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{epoch}:%{version}
 
 %description sound-oss
 OSS sound support.
@@ -140,31 +157,33 @@ Obs
 Summary:       Sound support with external player
 Summary(pl):   Obs³uga d¼wiêku przez zewnêtrzny program
 Group:         Applications/Communications
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{epoch}:%{version}
 
 %description sound-external
 Sound support with external player.
 
 %description sound-external -l pl
-Obs³uga d¼wiêku przez zewnêtrzny program
+Obs³uga d¼wiêku przez zewnêtrzny program.
 
-#%package sound-aRts
-#Summary:      Sound support with aRts
-#Summary(pl):  Obs³uga d¼wiêku poprzez aRts
-#Group:                Applications/Communications
-#Requires:     %{name} = %{version}
+%if %{with arts}
+%package sound-aRts
+Summary:       Sound support with aRts
+Summary(pl):   Obs³uga d¼wiêku poprzez aRts
+Group:         Applications/Communications
+Requires:      %{name} = %{version}
 
-#%description sound-aRts
-#Sound support with aRts.
+%description sound-aRts
+Sound support with aRts.
 
-#%description sound-aRts -l pl
-#Obs³uga d¼wiêku poprzez aRts.
+%description sound-aRts -l pl
+Obs³uga d¼wiêku poprzez aRts.
+%endif
 
 %package xosd
 Summary:       Support for X On Screen Display
 Summary(pl):   Wy¶wietlanie komunikatów na ekranie X
 Group:         Applications/Communications
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{epoch}:%{version}
 
 %description xosd
 Support for X On Screen Display.
@@ -176,7 +195,7 @@ Wy
 Summary:       Support for Window Managers docklets
 Summary(pl):   Obs³uga dokletów w ró¿nych zarz±dcach okien
 Group:         Applications/Communications
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{epoch}:%{version}
 
 %description docklet
 Support for Window Managers docklets (GNOME, KDE).
@@ -185,10 +204,10 @@ Support for Window Managers docklets (GNOME, KDE).
 Obs³uga dokletów w ró¿nych zarz±dcach okien (GNOME, KDE).
 
 %package sms
-Summary:        SMS Gateway
-Summary(pl):    Bramka SMS
-Group:          Applications/Communications
-Requires:       %{name} = %{version}
+Summary:       SMS Gateway
+Summary(pl):   Bramka SMS
+Group:         Applications/Communications
+Requires:      %{name} = %{epoch}:%{version}
 
 %description sms
 Send SMS to cellular phones via web gateways.
@@ -197,10 +216,10 @@ Send SMS to cellular phones via web gateways.
 Wtyczka wysy³aj±ca wiadomo¶ci SMS na telefony komórkowe przez bramki WWW.
 
 %package remote
-Summary:        Remote access from other applications
-Summary(pl):    Dostêp do programu z innych aplikacji
-Group:          Applications/Communications
-Requires:       %{name} = %{version} 
+Summary:       Remote access from other applications
+Summary(pl):   Dostêp do programu z innych aplikacji
+Group:         Applications/Communications
+Requires:      %{name} = %{epoch}:%{version}
 
 %description remote
 Make possible exchange data with other applications.
@@ -212,17 +231,17 @@ Wtyczka umo
 Summary:       Themes for GNU Gadu 2 GUI
 Summary(pl):   Motywy graficzne dla GUI GNU Gadu 2
 Group:         Applications/Communications
-Requires:       %{name} = %{version}
+Requires:      %{name} = %{epoch}:%{version}
 Requires:      %{name}-gui-gtk+2
 
 %description themes
 Themes for GNU Gadu 2 GUI.
 
-%description themes
+%description themes -l pl
 Motywy graficzne dla GUI GNU Gadu 2.
 
 %prep
-%setup -q -n %{name}-%{version}
+%setup -q -n %{name}-%{version}-%{_snap}
 
 %build
 rm -f missing
@@ -245,9 +264,13 @@ intltoolize --copy --force
        --with-oss \
        --with-sms \
        --with-external \
-       --with-remote \
-       --enable-perl
-#      --with-arts
+%if %{with arts}
+       --with-arts \
+%endif
+%if %{with perl}
+       --enable-perl \
+%endif
+       --with-remote
 
 %{__make}
 
@@ -267,18 +290,20 @@ install $RPM_BUILD_ROOT%{_datadir}/%{name}/pixmaps/icon.png $RPM_BUILD_ROOT%{_pi
 
 #Remove useless files
 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
-rm -f $RPM_BUILD_ROOT%{_libdir}/libgg2_core.la
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
 %files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc A* C* N* R* T* contrib doc/*
 %attr(755,root,root) %{_bindir}/gg2
+%attr(755,root,root) %{_libdir}/libgg2_core.so.*.*.*
 %dir %{_libdir}/gg2
 %{_datadir}/%{name}/sounds
-%{_libdir}/libgg2_core.so*
 
 %files gui-gtk+2
 %defattr(644,root,root,755)
@@ -292,6 +317,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_desktopdir}/gg2.desktop
 
 %files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libgg2_core.so
+%{_libdir}/libgg2_core.la
 %{_includedir}/gg2_core.h
 %{_pkgconfigdir}/gg2_core.pc
 
@@ -323,6 +351,12 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/gg2/libsound_external_plugin.so
 
+%if %{with arts}
+%files sound-aRts
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/gg2/libsound_arts_plugin.so
+%endif
+
 %files xosd
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/gg2/libxosd_plugin.so
This page took 0.078232 seconds and 4 git commands to generate.