Dnia niedziela, 23 kwietnia 2006 19:58, Arkadiusz Miskiewicz napisał(a):
> On Sunday 23 April 2006 19:54, Bartosz Świątek wrote:
> > cat > $RPM_BUILD_ROOT%{_bindir}/bluemote <<EOF
> > #!/bin/sh
> > [ -e ~/.bluemote.cfg ] ||
> >     cat /usr/share/bluemote/bluemote.cfg > ~/.bluemote.cfg
>
> cp -a /usr/share/bluemote/bluemote.cfg ~/.bluemote.cfg
>
> > exec bluemoteapp
>
> exec %{_bindir}/bluemoteapp
>
> Jak już ktoś pisał, martwiące są:
>
> Requires:       bluez-libs
> Requires:       bluez-utils
>
> co konkretnie z bluez-libs potrzeba? Tam jest tylko biblioteka.
>
>
> Pozatym ok.

Poprawiłem i to.
Bluez-libs dałem do R, żeby zaznaczyć, że jednak trzeba mieć skonfigurowany 
bluetooth, a bluez-libs zdaje się jest do tego wymagany, natomiast 
bluez-utils dlatego, że wymagany jest rfcomm. Bluez-libs wywaliłem z R.
# $Revision: 1.0 $, $Date: 2006/04/15 22:52:54 $

Summary:        Bluemote - a remote controller for your PC via bluetooth
Summary(pl):    Bluemote - pilot dla komputera 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/
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 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
install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name}}
install bluemote $RPM_BUILD_ROOT%{_bindir}/bluemoteapp
install bluemote-example.cfg $RPM_BUILD_ROOT%{_datadir}/%{name}/bluemote.cfg

cat > $RPM_BUILD_ROOT%{_bindir}/bluemote <<EOF
#!/bin/sh
[ -e ~/.bluemote.cfg ] ||
    cp -a /usr/share/bluemote/bluemote.cfg ~/.bluemote.cfg

exec %{_bindir}/bluemoteapp

EOF

%clean
rm -rf $RPM_BUILD_ROOT

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

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

$Log: template.spec,v $

_______________________________________________
pld-devel-pl mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-devel-pl

Odpowiedź listem elektroniczym