SPECS: bluemote.spec

Bartosz Świątek swiatek w informatik.hu-berlin.de
Sob, 22 Kwi 2006, 23:50:51 CEST


Dnia sobota, 22 kwietnia 2006 06:00, napisałeś(aś):
> Bartosz =?iso-8859-2?q?=A6wi=B1tek?= wrote:
> > Tego jeszcze zdaje si=EA nie ma w PLD.
> > Je=B6li brak sprzeciw=F3w prosz=EA o commit.
>
> Kilka drobiazgow:
> > Summary:	Bluemote - pilot przez bluetooth.
> > Summary(pl):	Bluemote - a remote controller via bluetooth.
>
> Nie stawiamy tu kropek na koncu

Tak, to pamiętałem, byłem chyba zbyt podniecony propozycją na RW, stąd tak 
banalny błąd :) Poprawione.

>
> > %description
> > Bluemote is a program meant to extend your Bluetooth enabled T610 (and
> > most other Sony Ericsson) as a remote for your PC.
> >
> > %description -l pl
> > Bluemote to program, kt=F3ry zamieni Tw=F3j wyposa=BFony w Bluetooth
> > telefo= n T610
> > (i wi=EAkszo=B6=E6 innych telefon=F3w Sony Ericsson) w pilota dla
> > komputera.
>
> Formatujemy na 70 znakow.

Poprawione.

>
> > %banner %{name} -e <<EOF
> > #####################################################################
> > #                                                                   #
> > # NOTICE:                                                           #
> > # Remember to copy /usr/share/doc/bluemote-2.0/bluemote-example.cfg #
> > # to ~/.bluemote.cfg and configure it like it says in               #
> > # /usr/share/doc/bluemote-2.0/config.txt                            #
> > #                                                                   #
> > #####################################################################
> > EOF
>
> banner jest dla admina systemu, nie dla jego uzytkownika - wiec o jakim
> ~/ tu mowa?
> Poza tym jak to sie ma do przypadku instalacji bez plikow %doc?
> Do przykladow jest %{_examplesdir} ZTCP.
>

Tak, ale nie zrobię tego w inny sposób, bluemote nie potrafi czytac configa 
z /etc, musi być to plik w katalogu domowym usera który uruchamia program,
masz może jakiś pomysł ? Chętnie poprawię.

> > %defattr(644,root,root,755)
> > %doc AUTHOR COPYING README config.txt bluemote-example.cfg
>
> Jesli COPYING to kopia GPL, to jej tu nie umieszczamy.

Poprawione. Wywaliłem ten plik po prostu.

>
> > $Log: template.spec,v $
> > Revision 1.59  2006/03/04 22:52:54  glen
> > =2D adapterized, truncate changelog
>
> Huh?

A to się wzięło z template.spec :) już usunąłem.
-------------- następna część ---------
# $Revision: 1.0 $, $Date: 2006/04/15 22:52:54 $

Summary:	Bluemote - pilot przez bluetooth
Summary(pl):	Bluemote - a remote controller via bluetooth
Name:		bluemote
Version:	2.0
Release:	1
License:	GPL
Group:		Applications
Source0:	http://www.geocities.com/saravkrish/progs/bluemote/%{name}.%{version}.tar.gz
# Source0-md5:	69ab4eafb839a3f22fca2832fbba60f6
URL:		http://www.geocities.com/saravkrish/progs/bluemote/
BuildRequires:	gcc
Requires:	bluez-libs
Requires:	bluez-utils
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
Bluemote is a program meant to extend your Bluetooth enabled 
T610 (and most other Sony Ericsson) as a remote for your PC.

%description -l pl
Bluemote to program, który zamieni Twój wyposażony w Bluetooth 
telefon T610 (i większość innych telefonów Sony Ericsson) 
w pilota dla komputera.

%prep
%setup -q -n %{name}

%build
%{__make}

%install
rm -rf $RPM_BUILD_ROOT
# create directories if necessary
#install -d $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_bindir}
install bluemote $RPM_BUILD_ROOT%{_bindir}

%clean
rm -rf $RPM_BUILD_ROOT

%post
%banner %{name} -e <<EOF
#####################################################################
#                                                                   #
# NOTICE:                                                           #
# Remember to copy /usr/share/doc/bluemote-2.0/bluemote-example.cfg #
# to ~/.bluemote.cfg and configure it like it says in               #
# /usr/share/doc/bluemote-2.0/config.txt                            #
#                                                                   #
#####################################################################
EOF

%files
%defattr(644,root,root,755)
%doc AUTHOR README config.txt bluemote-example.cfg
%attr(755,root,root) %{_bindir}/bluemote

%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <feedback w pld-linux.org>
All persons listed below can be reached at <cvs_login>@pld-linux.org

$Log: template.spec,v $



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