* [Comm] Synaptic
@ 2007-04-16 15:00 Виталий Моцьо
2007-04-16 15:40 ` Damir Shayhutdinov
0 siblings, 1 reply; 2+ messages in thread
From: Виталий Моцьо @ 2007-04-16 15:00 UTC (permalink / raw)
To: community
Здраствуйте, помогите ришить проблему.
Пытался написать спек на Synaptic 0.57
==============================
# hey Emacs, its -*- mode: rpm-spec; coding: cyrillic-cp1251; -*-
# $Id: synaptic,v 1.1 2003/04/28 11:30:54 svd Exp $
%define rel %nil
# '--with ru_po' if we have updated ru.po (Source1)
%def_with ru_po
# '--with ru_man' if we have updated russian manpage (Source2)
%def_without ru_man
%def_enable autotools
Name: synaptic
Version: 0.57
Release: alt1.1
Summary: WINGs based graphical front-end for APT
Summary(ru_RU.CP1251): Графическая оболочка для APT
Group: Group: System/Configuration/Packaging
License: GPL
Url: http://www.nongnu.org/synaptic/
Source:
http://savannah.nongnu.org/download/synaptic/synaptic.pkg/%version/%name-%version%rel.tar.gz
Source1: %name-ru.po
Source2: %name.ru.8
Source100: %{name}.menu
Source101: %{name}-16.png
Source102: %{name}-32.png
# This patch needed to build synaptic with apt < 0.5.5cnc5 only
Patch1: synaptic-0.36-alt-state.patch
Patch2: synaptic-0.47-alt-xslt.patch
Patch3: synaptic-0.51-alt-rpmgroups-intl.patch
Requires: %{get_dep rpm}, %{get_dep libapt}
Requires: apt >= 0.3.19cnc32
Requires: usermode
# Original BuildPreReq was: libapt-devel >= 0.5.4cnc9
# To build synaptic with apt < 0.5.5cnc5 apply Patch1
BuildRequires: rpm-devel >= 3.0.5, libbz2-devel, zlib-devel
BuildRequires: WindowMaker-devel >= 0.65.0-2cl, libwraster-devel
BuildRequires: apt-devel >= 0.3.19cnc32
BuildRequires: gtk+-devel >= 1.2.0
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Synaptic is a graphical front-end for APT (Advanced Package Tool) written
with the Window Maker toolkit (Gtk version also available).
Instead of using trees to display packages, Synaptic is heavily based on a
powerful package filtering system. That greatly simplifies the interface
while giving a lot more flexibility to browse through very long package
lists.
%description -l pt_BR
Synaptic й um front-end grбfico para o APT (Advanced Package Tool) escrito
com o toolkit do Window Maker (versгo em Gtk tambйm disponнvel).
Em vez de utilizar estruturas em бrvore para mostrar os pacotes, Synaptic
utiliza um sistema de filtro de pacotes, simplificando a interface e
oferecendo mais flexibilidade quando houver um grande numero de pacotes
listado.
%prep
%setup -q
%build
%configure
make
%install
rm -fr %{buildroot}
make install DESTDIR=%{buildroot}
mkdir -p %{buildroot}%{_bindir}
ln -s %{_bindir}/consolehelper %{buildroot}%{_bindir}/synaptic
ln -s %{_bindir}/consolehelper %{buildroot}%{_bindir}/gsynaptic
mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps
echo USER=root > %{buildroot}%{_sysconfdir}/security/console.apps/synaptic
echo USER=root > %{buildroot}%{_sysconfdir}/security/console.apps/gsynaptic
mkdir -p %{buildroot}%{_sysconfdir}/pam.d
# menu
mkdir -p %{buildroot}%{_menudir} \
%{buildroot}%{_datadir}/icons/mini
install -m 644 %{_sourcedir}/%{name}.menu %{buildroot}%{_menudir}/%{name}
cp -f %{_sourcedir}/%{name}-16.png
%{buildroot}%{_datadir}/icons/mini/%{name}.png
cp -f %{_sourcedir}/%{name}-32.png %{buildroot}%{_datadir}/icons/%{name}.png
cat << EOF > %{buildroot}%{_sysconfdir}/pam.d/synaptic
#%PAM-1.0
auth sufficient /lib/security/pam_rootok.so
auth required /lib/security/pam_pwdb.so shadow nullok
account required /lib/security/pam_pwdb.so
EOF
cp %{buildroot}%{_sysconfdir}/pam.d/synaptic
%{buildroot}%{_sysconfdir}/pam.d/gsynaptic
%post
# menu
%update_menus
%postun
# menu
%clean_menus
%clean
rm -rf %{buildroot}
%files
%defattr(0644,root,root,755)
%doc COPYING* README* TODO
%defattr(755,root,root)
%{_sbindir}/synaptic
%{_bindir}/synaptic
# menu
%defattr(0644,root,root,0755)
%{_sysconfdir}/security/console.apps/synaptic
%{_sysconfdir}/pam.d/synaptic
%{_datadir}/locale/*/LC_MESSAGES/%{name}.mo
%{_menudir}/%{name}
%{_datadir}/icons/%{name}.png
%{_datadir}/icons/mini/%{name}.png
%package gsynaptic
Summary: Gtk based graphical front-end for APT
Summary(pt_BR): Front-end grбfico para APT baseado em Gtk
Summary(es): Front-end grafico para APT en Gtk
Group: Administration
Group(pt_BR): Administraзгo
Group(es): Administraciуn
Requires: apt >= 0.3.19cnc32
Requires: usermode
%description
Synaptic is a graphical front-end for APT (Advanced Package Tool). This
version is written with the Gtk toolkit.
Instead of using trees to display packages, Synaptic is heavily based on a
powerful package filtering system. That greatly simplifies the interface
while giving a lot more flexibility to browse through very long package
lists.
%description -l pt_BR
Synaptic й um front-end grбfico para o APT (Advanced Package Tool). Esta
versгo usa o toolkit Gtk.
Em vez de utilizar estruturas em бrvore para mostrar os pacotes, Synaptic
utiliza um sistema de filtro de pacotes, simplificando a interface e
oferecendo mais flexibilidade quando houver um grande numero de pacotes
listado.
%files
%defattr(755,root,root)
%{_sbindir}/gsynaptic
%{_bindir}/gsynaptic
# menu
%defattr(0644,root,root,0755)
%{_sysconfdir}/security/console.apps/gsynaptic
%{_sysconfdir}/pam.d/gsynaptic
%{_datadir}/locale/*/LC_MESSAGES/%{name}.mo
%{_menudir}/%{name}
%{_datadir}/icons/%{name}.png
%{_datadir}/icons/mini/%{name}.png
==============================
а он:
[vitalia@motsyo SPECS]$ rpm -bs --nodeps *
предупреждение: Macro %PAM not found
ошибка: строка 158: Второй список %files
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Comm] Synaptic
2007-04-16 15:00 [Comm] Synaptic Виталий Моцьо
@ 2007-04-16 15:40 ` Damir Shayhutdinov
0 siblings, 0 replies; 2+ messages in thread
From: Damir Shayhutdinov @ 2007-04-16 15:40 UTC (permalink / raw)
To: ALT Linux Community
> Здраствуйте, помогите ришить проблему.
> Пытался написать спек на Synaptic 0.57
А нельзя было уже существующий взять? Этот просто страшный.
> cat << EOF > %{buildroot}%{_sysconfdir}/pam.d/synaptic
> #%PAM-1.0
> auth sufficient /lib/security/pam_rootok.so
> auth required /lib/security/pam_pwdb.so shadow nullok
> account required /lib/security/pam_pwdb.so
> EOF
Вот тут наверное вместо %PAM надо ставить %%PAM, чтобы заэкранировать
знак процента.
P.S. Третий Моцьо в рассылке. Гена разрекламировал? ;)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-04-16 15:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-16 15:00 [Comm] Synaptic Виталий Моцьо
2007-04-16 15:40 ` Damir Shayhutdinov
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git