Nowy roundcubemail

Stacho Pal stacho w venco.com.pl
Czw, 10 Wrz 2009, 13:37:28 CEST


On Tue, 8 Sep 2009, Pawel Dlugosz wrote:
> Paweł Zuzelski pisze:
>> robisz tak:
>
> Czekaj, jak się chce uczyć to porządnie:
>
> http://repo.dobremiasto.net/articles/kurs_budowania_pakietow_rpm/sekcja_prep
>
> + reszta

Dzięki, poczytałem i oto moje wypociny, może ktoś zerknie:
=========================================================
--- roundcubemail.spec.org	2009-05-19 12:52:53.000000000 +0200
+++ roundcubemail.spec	2009-09-10 13:34:26.078366149 +0200
@@ -11,15 +11,17 @@
  %bcond_with	postfixadmin	# Build with postfixadmin support patch

  %define		rcpfa_ver	1.0.5
+%define		subver	stable
+%define		rel	1
  Summary:	RoundCube Webmail
  Summary(pl.UTF-8):	RoundCube Webmail - poczta przez WWW
  Name:		roundcubemail
-Version:	0.2.2
-Release:	1
+Version:	0.3
+Release:	%{subver}.%{rel}
  License:	GPL v2
  Group:		Applications/WWW
-Source0:	http://dl.sourceforge.net/roundcubemail/%{name}-%{version}.tar.gz
-# Source0-md5:	992bd125a5f3c91e81f1eebbdef63575
+Source0:	http://dl.sourceforge.net/roundcubemail/%{name}-%{version}-%{subver}.tar.gz
+# Source0-md5:	741bb3dace2e2824c0cbb3e86142be5b
  Source1:	%{name}.config
  Source2:	%{name}.logrotate
  Source3:	%{name}-lighttpd.conf
@@ -28,7 +30,6 @@
  Patch0:		%{name}-config.patch
  Patch1:		%{name}-spam.patch
  Patch2:		%{name}-postfixadmin-pl_locales.patch
-Patch3:		%{name}-faq-page.patch
  URL:		http://www.roundcube.net/
  BuildRequires:	rpmbuild(macros) >= 1.268
  BuildRequires:	sed >= 4.0
@@ -100,7 +101,7 @@
  Domyślna skórka dla RoundCube Webmaila.

  %prep
-%setup -q %{?with_postfixadmin:-a 4}
+%setup -q -n %{name}-%{version}-%{subver} %{?with_postfixadmin:-a 4}
  %patch0 -p1
  %if %{with spamfilter}
  %patch1 -p1
@@ -108,7 +109,6 @@
  %if %{with postfixadmin}
  #patch2 -p1
  %endif
-%patch3 -p1

  find -name .svn | xargs -r rm -rf

@@ -143,7 +143,7 @@
  %install
  rm -rf $RPM_BUILD_ROOT
  install -d $RPM_BUILD_ROOT{%{_appdatadir},%{_applogdir},%{_archivelogdir},%{_sysconfdir}} \
-	$RPM_BUILD_ROOT{%{_appdir}/{bin,config,installer,program,skins},/etc/logrotate.d}
+	$RPM_BUILD_ROOT{%{_appdir}/{bin,config,installer,plugins,program,skins},/etc/logrotate.d}

  # Main application part:
  cp -a program/* $RPM_BUILD_ROOT%{_appdir}/program
@@ -153,6 +153,9 @@
  # Skins installation
  cp -a skins/* $RPM_BUILD_ROOT%{_appdir}/skins

+# Plugins installation
+cp -a plugins/* $RPM_BUILD_ROOT%{_appdir}/plugins
+
  # Installer part
  cp -a installer/* $RPM_BUILD_ROOT%{_appdir}/installer
  cp -a config/db.inc.php $RPM_BUILD_ROOT%{_appdir}/config/db.inc.php.dist
@@ -231,6 +234,8 @@
  %{_appdir}/bin/*.php
  %dir %{_appdir}/config
  %{_appdir}/config/*.php
+%dir %{_appdir}/plugins
+%{_appdir}/plugins/*
  %dir %{_appdir}/program
  %{_appdir}/program/*.gif
  %{_appdir}/program/include
@@ -245,6 +250,7 @@
  %lang(az) %{_appdir}/program/localization/az_AZ
  %lang(bg) %{_appdir}/program/localization/bg_BG
  %lang(bn_BD) %{_appdir}/program/localization/bn_BD
+%lang(br) %{_appdir}/program/localization/br
  %lang(bs) %{_appdir}/program/localization/bs_BA
  %lang(ca) %{_appdir}/program/localization/ca_ES
  %lang(cs) %{_appdir}/program/localization/cs_CZ
@@ -261,6 +267,7 @@
  %lang(et) %{_appdir}/program/localization/et_EE
  %lang(eu) %{_appdir}/program/localization/eu_ES
  %lang(fa) %{_appdir}/program/localization/fa
+%lang(fa_AF) %{_appdir}/program/localization/fa_AF
  %lang(fi) %{_appdir}/program/localization/fi_FI
  %lang(fr) %{_appdir}/program/localization/fr_FR
  %lang(ga) %{_appdir}/program/localization/ga_IE
@@ -280,6 +287,7 @@
  %lang(lt) %{_appdir}/program/localization/lt_LT
  %lang(lv) %{_appdir}/program/localization/lv_LV
  %lang(mk) %{_appdir}/program/localization/mk_MK
+%lang(mr) %{_appdir}/program/localization/mr_IN
  %lang(ms) %{_appdir}/program/localization/ms_MY
  %lang(nb) %{_appdir}/program/localization/nb_NO
  %lang(ne) %{_appdir}/program/localization/ne_NP
@@ -287,6 +295,7 @@
  %lang(nl_BE) %{_appdir}/program/localization/nl_BE
  %lang(nn) %{_appdir}/program/localization/nn_NO
  %lang(pl) %{_appdir}/program/localization/pl_PL
+%lang(ps) %{_appdir}/program/localization/ps
  %lang(pt) %{_appdir}/program/localization/pt_PT
  %lang(pt_BR) %{_appdir}/program/localization/pt_BR
  %lang(ro) %{_appdir}/program/localization/ro_RO
=================================================
-- 
pzdr
Stacho Pal


Więcej informacji o liście dyskusyjnej pld-devel-pl