actos

Krystian T tomczyk w op.onet.pl
Wto, 13 Wrz 2005, 23:03:06 CEST


Dnia 12-09-2005, pon o godzinie 00:35 +0200, Paweł Sakowski napisał(a):
> On Mon, 2005-09-12 at 00:08 +0200, Krystian T wrote:
> > Witam
> > Chciałem zrobić speca do tego
> > http://belikewater.ifrance.com/code/actos.html ale poległem :( W
> > źródłach jest skrypt, który musi być uruchamiany z roota i od razu
> > rozrzuca pliki po drzewie katalogów.
> 
> Zapatchuj skrypt instalacyjny, żeby nie potrzebował roota. Do usunięcia:
> wszelkie sprawdzenia /bin/id, wywołania chmod, chown. Do tego popraw,
> żeby zechciał rozrzucać po $RPM_BUILD_ROOT.
> 
...
> 
> HTH
   ^^^^ ??

Dzięki za podpowiedzi
W załączniku spec i patch. Release ułamkowy, bo nie jestem zadowolony z
dokumentacji (część plików powtarza się w %doc i /usr/share/actos) i jak
się robi right way ostatnią pozycję z %files.
Czekam na komentarze.
-- 
Pozdrawiam
Krystian T

        "errare humanum est..."
-------------- następna część ---------
Załącznik, który nie był tekstem został usunięty...
Name: actos-dont_use_X_server.patch
Type: text/x-patch
Size: 880 bytes
Desc: nie znany
Url : /mailman/pipermail/pld-devel-pl/attachments/20050913/fbf9aa2e/actos-dont_use_X_server.bin
-------------- następna część ---------
# $Revision: 1.1 $, $Date: 2005/09/10 17:21:05 $
Summary:	ACTOS - Asterisk Configuration Tool Open Source
Summary(pl):	ACTOS - Narzędzie do konfiguracji Asterisk'a
Name:		actos
Version:	2.1
Release:	0.1
License:	GPLv2
Group:		Applications/Communications
Source0:	http://www.derrier.com/pierre/code/%{name}-%{version}.tar.gz
Patch0:         %{name}-dont_use_X_server.patch
URL:		http://www.derrier.com/pierre/code/
BuildRequires:	python >= 2.3
BuildRequires:	gtk+
BuildRequires:	libglade >= 2.0
BuildRequires:	glib
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
ACTOS is a GUI tool with an intuitive interface for configuring
Asterisk, the Linux Open Source PBX. Asterisk is a very powerful tool,
and that means a bit complex... ACTOS helps the user through the
choice of the options and generate the text configuration files needed
by Asterisk.

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

%build
python setup.py clean
python setup.py build

%install
rm -rf $RPM_BUILD_ROOT

install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
python setup.py install \
	--root $RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc KNOWN_BUGS README TODO
%attr(755,root,root) %{_bindir}/*
%{_datadir}/%{name}
/usr/share/python2.4/site-packages/actos_modules

%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:$


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