SPECS: alpine.spec - separated pico and pilot into subpackages (Ep...

blues blues at pld-linux.org
Mon Jul 16 16:42:11 CEST 2007


Author: blues                        Date: Mon Jul 16 14:42:11 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- separated pico and pilot into subpackages (Epoch 1 to allow upgrade from
  pine); use old desktop; more TODO (i.e.: maildir support)

---- Files affected:
SPECS:
   alpine.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SPECS/alpine.spec
diff -u SPECS/alpine.spec:1.2 SPECS/alpine.spec:1.3
--- SPECS/alpine.spec:1.2	Sat Jul 14 21:22:53 2007
+++ SPECS/alpine.spec	Mon Jul 16 16:42:06 2007
@@ -1,13 +1,21 @@
 # $Revision$, $Date$
+# TODO:
+# - backport man-pages from pine.spec
+# - alpine should obsolete pine, link pine -> alpine should be made
+# - pine -> alpine config converter
+# - review patches from pine:
+#   - maildir support is missing - maybe some fixed patch from http://staff.washington.edu/chappa/pine/ ?
 Summary:	University of Washington Pine mail user agent
 Summary(pl.UTF-8):	Klient pocztowy Pine z Uniwersytetu w Waszyngtonie
 Name:		alpine
 Version:	0.999
-Release:	0.1
-License:	Apache License
+Release:	0.2
+Epoch:		1
+License:	Apache License 2.0
 Group:		Applications/Mail
 Source0:	ftp://ftp.cac.washington.edu/alpine/%{name}-%{version}.tar.gz
 # Source0-md5:	082de388a998c1faa2385ebdfd6800f5
+Source1:	pico.desktop
 URL:		http://www.washington.edu/alpine
 BuildRequires:	krb5-devel
 BuildRequires:	ncurses-devel
@@ -17,6 +25,8 @@
 BuildRequires:	tcl-devel
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define		alpineconfdir	/etc/%{name}
+
 %description
 Alpine -- an Alternatively Licensed Program for Internet News & Email
 -- is a tool for reading, sending, and managing electronic messages.
@@ -37,6 +47,50 @@
 wiele zaawansowanych możliwości, a liczba opcji konfiguracyjnych
 ciągle rośnie.
 
+%package -n pico
+Summary:        Simple text editor in the style of the Pine Composer
+Summary(pl.UTF-8):      Prosty edytor tekstowy w stylu alpine
+Summary(pt_BR.UTF-8):   Editor de textos para terminal simples e fácil de usar
+Group:          Applications/Editors
+
+%description -n pico
+Pico is a simple, display-oriented text editor based on the Alpine
+message system composer. As with Pine, commands are displayed at the
+bottom of the screen, and context-sensitive help is provided. As
+characters are typed they are immediately inserted into the text.
+
+%description -n pico -l pl.UTF-8
+Pico jest prostym, zorientowanym na wyświetlanie edytorem bazującym na
+alpine. Tak jak w pine komendy są wyświetlane na dole ekranu oraz
+dostępna jest pomoc konteksowa. Wpisywane znaki są natychmiast
+włączane do tekstu.
+
+%description -n pico -l pt_BR.UTF-8
+Pico é um editor de texto baseado no compositor de mensagens do Alpine.
+Assim como no Pine, comandos são mostrados na parte de baixo da tela,
+e ajuda de acordo com o contexto está disponível.
+
+%package -n pilot
+Summary:        Simple file system browser in the style of the Alpine Composer
+Summary(pl.UTF-8):      Prosta przeglądarka plików w stylu composera alpine
+Summary(pt_BR.UTF-8):   Navegador de sistemas de arquivos no estilo do compositor do Alpine
+Group:          Applications/Shells
+
+%description -n pilot
+Pilot is a simple, display-oriented file system browser based on the
+Alpine message system composer. As with Alpine, commands are displayed at
+the bottom of the screen, and context-sensitive help is provided.
+
+%description -n pilot -l pl.UTF-8
+Pilot jest prostą, zorientowaną na wyświetlanie przeglądarką plików w
+stylu compsera pine. Podobnie jak w alpine polecenia sa wyświetlane na
+dole ekranu oraz jest dostępna pomoc kontekstowa.
+
+%description -n pilot -l pt_BR.UTF-8
+Pilot é um navegador de sistemas de arquivos baseado no Pine. Assim
+como no Pine, comandos são apresentados na parte de baixo da tela, e
+ajuda de acordo com o contexto está disponível.
+
 %prep
 %setup -q
 
@@ -45,8 +99,8 @@
 	--enable-quotas \
 	--with-smtp-msa=%{_libdir}/sendmail \
 	--with-spellcheck-prog=aspell \
-	--with-system-pinerc=/etc/alpine/alpine.conf \
-	--with-system-fixed-pinerc=/etc/alpine/alpine.conf.fixed \
+	--with-system-pinerc=%{alpineconfdir}/%{name}.conf \
+	--with-system-fixed-pinerc=%{alpineconfdir}/%{name}.conf.fixed \
 	--with-krb5-dir=%{_prefix} \
 	--with-ldap-dir=%{_prefix} \
 	--with-system-mail-directory=/var/mail
@@ -54,29 +108,40 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{alpineconfdir},%{_desktopdir}}
 
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README LICENSE doc/tech-notes.txt
+%doc README doc/tech-notes.txt
+%dir %{alpineconfdir}
 %attr(755,root,root) %{_bindir}/alpine
-%attr(755,root,root) %{_bindir}/pico
-%attr(755,root,root) %{_bindir}/pilot
 %attr(755,root,root) %{_bindir}/rpload
 %attr(755,root,root) %{_bindir}/rpdump
-%attr(755,root,root) %{_bindir}/mailutil
-%attr(2755,root,mail) %{_sbindir}/mlock
+#%attr(755,root,root) %{_bindir}/mailutil
+#%attr(2755,root,mail) %{_sbindir}/mlock
 %{_mandir}/man1/alpine.1*
-%{_mandir}/man1/pico.1*
-%{_mandir}/man1/pilot.1*
-%{_mandir}/man1/rpload.1*
-%{_mandir}/man1/rpdump.1*
-%{_mandir}/man1/mailutil.1*
+#%{_mandir}/man1/rpload.1*
+#%{_mandir}/man1/rpdump.1*
+#%{_mandir}/man1/mailutil.1*
+
+%files -n pico
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/pico
+%{_desktopdir}/pico.desktop
+%{_mandir}/man1/pico*
+
+%files -n pilot
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/pilot
+%{_mandir}/man1/pilot*
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -84,6 +149,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2007/07/16 14:42:06  blues
+- separated pico and pilot into subpackages (Epoch 1 to allow upgrade from
+  pine); use old desktop; more TODO (i.e.: maildir support)
+
 Revision 1.2  2007/07/14 19:22:53  qboosh
 - pl
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/alpine.spec?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list