paco i kshutdown
Robert Tomasik
robert.tomasik at gmail.com
Tue Feb 7 01:16:17 CET 2006
Przesyłam diffy do speca i patcha kshutdown oraz speca do programu paco.
Paco jest to program, który przechwytuje wynik komend takich jak make install
czy rpm -i itp. i zapisuje do pliku. Przydatny jest przy instalacji
programów ze źródeł (unikamy bajzlu w razie uninstall) oraz przy pisaniu
specy (łatwiej jest tworzyć sekcje files). I tu małe wyjaśnienie.
Domyślnie program pisze do /var/log i przez to może być uruchamiany tylko
w trybie root. Ale jeżeli chcemy tylko przechwycić wynik make install to po
co na root-a wchodzić. Więc można uruchomić go w trybie usera dodając opcję
--logdir=$HOME
Oczywiście proszę o wrzucenie do cvs
--
___________________________
Linux is like Wigwam. No Gates, No Windows, Apache Inside !!!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: paco-Makefile.patch
Type: text/x-diff
Size: 615 bytes
Desc: not available
URL: </mailman/pipermail/pld-devel-pl/attachments/20060207/fec5940f/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kshutdown.spec.diff
Type: text/x-diff
Size: 1590 bytes
Desc: not available
URL: </mailman/pipermail/pld-devel-pl/attachments/20060207/fec5940f/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kshutdown-desktop.patch.diff
Type: text/x-diff
Size: 1559 bytes
Desc: not available
URL: </mailman/pipermail/pld-devel-pl/attachments/20060207/fec5940f/attachment-0002.bin>
-------------- next part --------------
# $Revision: $, $Date: $
Summary: Paco is a source code package organizer for Unix/Linux systems
Summary(pl): Paco to manager paczek źródłowych dla systemów Unix/Linux
Name: paco
Version: 1.10.2
Release: 0.1
License: GPL v2
Group: Applications/System
Source0: http://dl.sourceforge.net/paco/%{name}-%{version}.tar.bz2
# Source0-md5: b3cc9a1bd7bf218adf38ee23eecb48dd
Patch0: %{name}-Makefile.patch
URL: http://paco.sourceforge.net/
#BuildRequires: -
#BuildRequires: autoconf
#BuildRequires: automake
BuildRequires: gtk+2 > 2:2:2.6.0
#BuildRequires: libtool
BuildRequires: pkgconfig
#Requires(postun): -
#Requires(pre,post): -
#Requires(preun): -
#Requires: -
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
When installing a package from sources, paco wraps the "make install"
command (or whatever is needed to install the files into the system),
and generates a log containing the list of all installed files.
%description -l pl
Przy instalacji programów ze źródeł paco przechwytuje "make install"
(lub inne komendy które są potrzebne do zainstalowania danego
programu) i tworzy log zawierający listę wszystkich instalowanych
plików, umożliwiając w przyszłości łatwe i skuteczne odinstalowanie
pakietu.
%package gui
Summary: Gtk+2 frontend to paco
Summary(pl): Nakładka na paco w Gtk+2
Group: Applications/System
Requires: %{name} = %{version}-%{release}
Requires: gtk+2 >= 2:2.6.0
%description gui
Gtk+2 gui for paco.
%description gui -l pl
Graficzny interfejs dla paco w Gtk+2
%package scripts
Summary: Addtional scripts for paco
Summary: Skrypty dodatkowe dla paco
Group: Applications/System
Requires: %{name} = %{version}-%{release}
%description scripts
Some scripts for paco.
%description scripts -l pl
Jakieś tam skrypciki dla paco.
%prep
%setup -q
%patch0 -p1
%build
./configure \
--enable-a2paco \
--enable-pacoball \
--enable-superpaco \
--prefix=%{_prefix} \
--sysconfdir=%{_sysconfdir}
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_mandir}/{man5,man8}}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
mv $RPM_BUILD_ROOT%{_prefix}/man/man5/* $RPM_BUILD_ROOT%{_mandir}/man5
mv $RPM_BUILD_ROOT%{_prefix}/man/man8/* $RPM_BUILD_ROOT%{_mandir}/man8
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pacorc
%attr(755,root,root) %{_bindir}/paco
%doc AUTHORS ChangeLog README
%{_libdir}/*.so
%{_libdir}/libpaco*
%{_mandir}/man5/pacorc*
%{_mandir}/man8/paco*
%files scripts
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/a2paco
%attr(755,root,root) %{_bindir}/superpaco
%attr(755,root,root) %{_bindir}/pacoball
%{_mandir}/man8/a2paco*
%{_mandir}/man8/superpaco*
%files gui
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/gpaco
%{_pixmapsdir}/*.png
%{_datadir}/*/*/*/paco.mo
%{_desktopdir}/*.desktop
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <feedback at pld-linux.org>
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log: $
More information about the pld-devel-pl
mailing list