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..."
diff -urN actos.org/setup.py actos/setup.py
--- actos.org/setup.py 2005-09-13 22:15:06.023611216 +0200
+++ actos/setup.py 2005-09-13 22:12:45.099035008 +0200
@@ -33,15 +33,15 @@
raise DependencyFailed, "You need SocketServer package for Python"
-try:
- import gtk
-except ImportError:
- raise DependencyFailed, "You need pyGTK 2.0 or higher - http://www.pygtk.org/"
-
-try:
- import gtk.glade
-except ImportError:
- raise DependencyFailed, "You need libglade 2.0 or higher- http://ftp.gnome.org/pub/GNOME/sources/libglade/2.0/"
+#try:
+# import gtk
+#except ImportError:
+# raise DependencyFailed, "You need pyGTK 2.0 or higher - http://www.pygtk.org/"
+
+#try:
+# import gtk.glade
+#except ImportError:
+# raise DependencyFailed, "You need libglade 2.0 or higher- http://ftp.gnome.org/pub/GNOME/sources/libglade/2.0/"
try:
import gobject
# $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 <[EMAIL PROTECTED]>
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log:$
_______________________________________________
pld-devel-pl mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-devel-pl