SPECS: bluemote.spec

Bartosz Świątek swiatek w informatik.hu-berlin.de
Nie, 23 Kwi 2006, 15:54:41 CEST


Dnia niedziela, 23 kwietnia 2006 15:41, Jakub Bogusz napisał(a):
> On Sun, Apr 23, 2006 at 03:35:13PM +0200, Bartosz Świątek wrote:
> > Dnia niedziela, 23 kwietnia 2006 02:13, Przemek Iskra napisał(a):
> > > zrób wrapper dla programu w shellu, który skopiuje config jeśli jest
> > > to konieczne i potem robi:
> > > exec prawdziwy-program ${1+"$@"}
> > >
> > > tylko jedna rzecz, ten config nie może być w /usr/share/doc/,
> > > dokładnie to nie może być dodany przez:
> > > %doc bluemote-example.cfg
> > > ponieważ tych plików można nie instalować
> > >
> > > tak więc lepiej poprostu do /etc
> >
> > Ok, poprawione,
>
> A to?
> http://lists.pld-linux.org/mailman/pipermail/pld-devel-pl/2006-April/134059
>.html

Poprawione.
Co do bluez-libs, bluemote nie wymaga niczego związanego z bluetooth do 
budowy, dałem te bluez-libs i -utils do R, żeby nikt nie instalował gołego 
bluemote bo mu psu na bude taki goły.
-------------- następna część ---------
# $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-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 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},%{_sysconfdir}}
install bluemote $RPM_BUILD_ROOT%{_bindir}/bluemoteapp
install bluemote-example.cfg $RPM_BUILD_ROOT%{_sysconfdir}

cat > $RPM_BUILD_ROOT%{_bindir}/bluemote <<EOF
#!/bin/bash
if [ -s $HOME/.bluemote.cfg ]; then
bluemoteapp
exit 0
else
cp /etc/bluemote-example.cfg $HOME/.bluemote.cfg
bluemoteapp
fi

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
%{_sysconfdir}/bluemote-example.cfg

%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