Witam.
Dodany moduł weather + drobna kosmetyka.
P.S.
Po upgrade z wersji kadu-0.3.9-1.5 zostaje pusty katalog
%{_datadir}/kadu/modules, który (co zrozumiałe) nie należy do żadnego
pakietu. Nie wiem jak "takie coś" jest rozwiązywane w PLD, więc problem
zostawiam otwarty.
--
Pozdrawiam
Karol "Charles" Krenski
Index: kadu.spec
===================================================================
RCS file: /cvsroot/SPECS/kadu.spec,v
retrieving revision 1.125
diff -u -r1.125 kadu.spec
--- kadu.spec 30 Oct 2004 10:55:52 -0000 1.125
+++ kadu.spec 11 Nov 2004 22:41:02 -0000
@@ -8,6 +8,7 @@
%bcond_without speech # without Speech synthesis support
%bcond_without amarok # without amarok player support module
%bcond_without spellchecker # without spellchecker (Aspell support)
+%bcond_without weather # without Weather support module
%define _libgadu_ver 4:1.4-2
%define _amarok_mod_ver 1.5
@@ -17,7 +18,7 @@
Summary(pl): Klient Gadu-Gadu do przesyłania wiadomości po sieci
Name: kadu
Version: 0.3.9
-Release: 3
+Release: 4
License: GPL
Group: Applications/Communications
Source0: http://kadu.net/download/stable/%{name}-%{version}.tar.bz2
@@ -29,6 +30,8 @@
# Source3-md5: 2ad7832cf02422a84bdd675a507a47d0
Source4: http://scripts.one.pl/spellchecker/stable/%{version}/spellchecker-0.9.tar.gz
# Source4-md5: b699879a56b679690a57e653dbc9d64d
+Source5: http://pcb45.tech.us.edu.pl/~blysk/weather/kadu-weather-1.45.tar.bz2
+# Source5-md5: b699879a56b679690a57e653dbc9d64d
Patch0: %{name}-ac_am.patch
URL: http://kadu.net/
#BuildRequires: FHS-compliance-needed
@@ -125,7 +128,7 @@
provided by external program "powiedz".
%description module-speech -l pl
-Moduł obsługi "Głośnego czytania" przez zewnętrzny program "Powiedz".
+Moduł obsługi "Głośnego czytania" przez zewnętrzny program "powiedz".
%package module-amarok
Summary: Support amarok status
@@ -144,7 +147,7 @@
%package module-spellchecker
Summary: Checker of spelling mistakes
-Summary(pl): Moduł sprawdzający pisownie
+Summary(pl): Moduł sprawdzający pisownię
Group: Applications/Communications
Requires: %{name} = %{version}-%{release}
Requires: aspell
@@ -153,7 +156,19 @@
Checker of spelling mistakes.
%description module-spellchecker -l pl
-Moduł sprawdzający pisownie.
+Moduł sprawdzający pisownię.
+
+%package module-weather
+Summary: Weather module
+Summary(pl): Moduł pogodowy
+Group: Applications/Communications
+Requires: %{name} = %{version}-%{release}
+
+%description module-weather
+Informations of weather in locality of contact.
+
+%description module-weather -l pl
+Informacje o pogodzie w miejscowości danego kontaktu.
%prep
%setup -q -n %{name}
@@ -168,6 +183,9 @@
%if %{with spellchecker}
tar xzf %{SOURCE4} -C modules
%endif
+%if %{with weather}
+tar xjf %{SOURCE5} -C modules
+%endif
%{__perl} -pi -e '[EMAIL PROTECTED](dataPath\("kadu/modules/[EMAIL PROTECTED](\("%{_libdir}/kadu/modules/@g' kadu/modules.cpp
%{__perl} -pi -e 's@/lib@/[EMAIL PROTECTED]' modules/x11_docking/spec
@@ -197,6 +215,10 @@
%if %{with spellchecker}
sed -i -e 's/module_spellchecker=n/module_spellchecker=m/' .config
%endif
+%if %{with weather}
+sed -i -e 's/module_weather=n/module_weather=m/' .config
+%{__perl} -pi -e '[EMAIL PROTECTED]("kadu/modules/[EMAIL PROTECTED]("%{_libdir}/kadu/modules/@g' modules/weather/weather.cpp
+%endif
chmod u+w aclocal.m4 configure
%{__aclocal}
@@ -231,12 +253,17 @@
%files
%defattr(644,root,root,755)
-%doc ChangeLog README TODO
+%doc HISTORY README TODO
%attr(755,root,root) %{_bindir}/*
%{_desktopdir}/kadu.desktop
%{_pixmapsdir}/kadu.png
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/themes
+#About... files
+%{_datadir}/%{name}/AUTHORS
+%{_datadir}/%{name}/ChangeLog
+%{_datadir}/%{name}/COPYING
+%{_datadir}/%{name}/THANKS
#default modules:
%dir %{_libdir}/%{name}/modules
%{_libdir}/%{name}/modules/autoaway.desc
@@ -351,6 +378,15 @@
%{_libdir}/%{name}/modules/spellchecker.desc
%attr(755,root,root) %{_libdir}/%{name}/modules/spellchecker.so
%lang(pl) %{_libdir}/%{name}/modules/translations/spellchecker_pl.qm
+%endif
+
+%if %{with weather}
+%files module-weather
+%defattr(644,root,root,755)
+%{_libdir}/%{name}/modules/weather.desc
+%attr(755,root,root) %{_libdir}/%{name}/modules/weather.so
+%{_libdir}/%{name}/modules/data/weather
+%lang(pl) %{_libdir}/%{name}/modules/translations/weather_pl.qm
%endif
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
_______________________________________________
pld-devel-pl mailing list
[EMAIL PROTECTED]
http://lists.pld-linux.org/mailman/listinfo/pld-devel-pl