ru:opensuse
Различия
Показаны различия между двумя версиями страницы.
Предыдущая версия справа и слеваПредыдущая версияСледующая версия | Предыдущая версия | ||
ru:opensuse [2010/09/08 10:03] – zet | ru:opensuse [2019/04/28 13:54] (текущий) – внешнее изменение 127.0.0.1 | ||
---|---|---|---|
Строка 1: | Строка 1: | ||
====== Psi+ on OpenSUSE Linux ====== | ====== Psi+ on OpenSUSE Linux ====== | ||
+ | **ВНИМАНИЕ: | ||
===== Вступление ===== | ===== Вступление ===== | ||
Сборка Psi+ на OpenSUSE "с нуля" | Сборка Psi+ на OpenSUSE "с нуля" | ||
- | |||
- | |||
- | |||
- | |||
- | |||
===== Что может понадобиться и как собирать? | ===== Что может понадобиться и как собирать? | ||
Строка 23: | Строка 19: | ||
< | < | ||
- | cd /home | + | cd ~ |
rm psi -r | rm psi -r | ||
</ | </ | ||
- | Скачиваем исходники Psi и субмодулей из git: | + | Скачиваем исходники Psi и субмодули из git: |
< | < | ||
- | cd /home | + | cd ~ |
git clone git:// | git clone git:// | ||
cd psi | cd psi | ||
Строка 47: | Строка 43: | ||
< | < | ||
- | cd /home | + | cd ~ |
svn co http:// | svn co http:// | ||
cd psi | cd psi | ||
cat *.diff|patch -p1 | cat *.diff|patch -p1 | ||
+ | </ | ||
+ | |||
+ | Скачиваем иконпаки, | ||
+ | < | ||
+ | cd ~/psi | ||
+ | svn export --force http:// | ||
+ | svn export --force http:// | ||
+ | rev=`svnversion` | ||
+ | sed " | ||
</ | </ | ||
Строка 56: | Строка 61: | ||
< | < | ||
- | cd /home/psi/ | + | cd ~/psi |
qconf && ./configure --enable-plugins && make && make install | qconf && ./configure --enable-plugins && make && make install | ||
</ | </ | ||
Строка 114: | Строка 119: | ||
- | Русская локализация: | + | ==== Русская локализация |
< | < | ||
- | |||
cd / | cd / | ||
- | |||
wget http:// | wget http:// | ||
- | |||
</ | </ | ||
- | =Сборка rpm-пакета= | + | ===== Сборка rpm-пакета |
- | ==Собираем исходные коды и патчи== | + | ==== Собираем исходные коды и патчи ==== |
- | + | ||
< | < | ||
- | |||
#!/bin/sh | #!/bin/sh | ||
- | |||
# | # | ||
- | |||
# | # | ||
- | |||
#$USER - имя пользователя в системе | #$USER - имя пользователя в системе | ||
- | |||
home=/ | home=/ | ||
- | |||
psi=/ | psi=/ | ||
- | |||
# | # | ||
- | |||
app_info=ls / | app_info=ls / | ||
- | |||
build_root=/ | build_root=/ | ||
- | |||
# | # | ||
- | |||
rev=`svnversion " | rev=`svnversion " | ||
- | |||
cd ${home} | cd ${home} | ||
- | |||
mkdir psi_dev | mkdir psi_dev | ||
- | |||
cd ${psi} | cd ${psi} | ||
- | |||
git clone git:// | git clone git:// | ||
- | |||
cd psi | cd psi | ||
- | |||
git submodule init | git submodule init | ||
- | |||
git submodule update | git submodule update | ||
- | |||
cd ${psi} | cd ${psi} | ||
- | |||
svn co http:// | svn co http:// | ||
- | |||
cp ${psi}/ | cp ${psi}/ | ||
- | |||
cd ${psi}/psi | cd ${psi}/psi | ||
- | |||
sed " | sed " | ||
- | |||
for f in *diff; do patch -p1 -i " | for f in *diff; do patch -p1 -i " | ||
- | |||
sed ' | sed ' | ||
- | |||
cd ${psi} | cd ${psi} | ||
- | |||
mv psi psi-0.15_dev | mv psi psi-0.15_dev | ||
- | |||
tar -pczf psi-0.15_dev.tar.gz psi-0.15_dev | tar -pczf psi-0.15_dev.tar.gz psi-0.15_dev | ||
- | |||
rm -r ${build_root}/ | rm -r ${build_root}/ | ||
- | |||
cp psi-0.15_dev.tar.gz ${build_root}/ | cp psi-0.15_dev.tar.gz ${build_root}/ | ||
- | |||
chown -R $USER:users ${psi} | chown -R $USER:users ${psi} | ||
- | |||
exit 0 | exit 0 | ||
- | |||
</ | </ | ||
+ | __**Примечание**__: | ||
- | |||
- | _Примечание: | ||
- | |||
- | |||
- | |||
- | ==Для сборки rpm-пакета необходим spec-файл== | ||
+ | ==== Для сборки rpm-пакета необходим spec-файл ==== | ||
< | < | ||
- | + | Summary: Client application for the XMPP network | |
- | Summary: Client application for the Jabber | + | |
Name: psi | Name: psi | ||
- | |||
Version: 0.15_dev | Version: 0.15_dev | ||
- | |||
Release: %{dist} | Release: %{dist} | ||
- | |||
License: GPL | License: GPL | ||
- | |||
Group: Applications/ | Group: Applications/ | ||
- | |||
URL: http:// | URL: http:// | ||
- | |||
Source0: %{name}-%{version}.tar.gz | Source0: %{name}-%{version}.tar.gz | ||
- | |||
BuildRoot: %{_tmppath}/ | BuildRoot: %{_tmppath}/ | ||
- | |||
BuildRequires: | BuildRequires: | ||
- | |||
%{!? | %{!? | ||
- | |||
%description | %description | ||
- | |||
Psi is the premiere Instant Messaging application designed for Microsoft Windows, | Psi is the premiere Instant Messaging application designed for Microsoft Windows, | ||
- | + | Apple Mac OS X and GNU/Linux. Built upon an open protocol named XMPP, | |
- | Apple Mac OS X and GNU/Linux. Built upon an open protocol named Jabber, | + | |
si is a fast and lightweight messaging client that utilises the best in open | si is a fast and lightweight messaging client that utilises the best in open | ||
- | |||
source technologies. The goal of the Psi project is to create a powerful, yet | source technologies. The goal of the Psi project is to create a powerful, yet | ||
- | + | easy-to-use XMPP client that tries to strictly adhere to the XMPP drafts. | |
- | easy-to-use | + | and XMPP JEPs. This means that in most cases, Psi will not implement a feature |
- | + | unless there is an accepted standard for it in the XMPP community. Doing so | |
- | and Jabber | + | |
- | + | ||
- | unless there is an accepted standard for it in the Jabber | + | |
ensures that Psi will be compatible, stable, and predictable, | ensures that Psi will be compatible, stable, and predictable, | ||
- | |||
and developer standpoint. | and developer standpoint. | ||
- | |||
%prep | %prep | ||
- | |||
%setup | %setup | ||
- | |||
%build | %build | ||
- | |||
qconf | qconf | ||
- | |||
#для сборки без webkit' | #для сборки без webkit' | ||
- | |||
./configure --prefix=" | ./configure --prefix=" | ||
- | |||
%{__make} %{? | %{__make} %{? | ||
- | |||
%install | %install | ||
- | |||
%{__rm} -rf %{buildroot} | %{__rm} -rf %{buildroot} | ||
- | |||
%{__make} install INSTALL_ROOT=" | %{__make} install INSTALL_ROOT=" | ||
- | |||
# Install the pixmap for the menu entry | # Install the pixmap for the menu entry | ||
- | |||
%{__install} -Dp -m0644 iconsets/ | %{__install} -Dp -m0644 iconsets/ | ||
- | |||
%{buildroot}%{_datadir}/ | %{buildroot}%{_datadir}/ | ||
- | |||
%post | %post | ||
- | |||
touch --no-create %{_datadir}/ | touch --no-create %{_datadir}/ | ||
- | |||
%{_bindir}/ | %{_bindir}/ | ||
- | |||
%postun | %postun | ||
- | |||
touch --no-create %{_datadir}/ | touch --no-create %{_datadir}/ | ||
- | |||
%{_bindir}/ | %{_bindir}/ | ||
- | |||
%clean | %clean | ||
- | |||
%{__rm} -rf %{buildroot} | %{__rm} -rf %{buildroot} | ||
- | |||
%files | %files | ||
- | |||
%defattr(-, root, root, 0755) | %defattr(-, root, root, 0755) | ||
- | |||
%doc COPYING README TODO | %doc COPYING README TODO | ||
- | |||
%{_bindir}/ | %{_bindir}/ | ||
- | |||
%{_datadir}/ | %{_datadir}/ | ||
- | |||
%{_datadir}/ | %{_datadir}/ | ||
- | |||
%{_datadir}/ | %{_datadir}/ | ||
- | |||
%{_datadir}/ | %{_datadir}/ | ||
- | |||
%exclude %{_datadir}/ | %exclude %{_datadir}/ | ||
- | |||
%exclude %{_datadir}/ | %exclude %{_datadir}/ | ||
- | |||
</ | </ | ||
+ | __**Примечание**__: | ||
- | _Примечание: | ||
- | + | ==== Сборка rpm-пакета ==== | |
- | + | ||
- | ==Сборка rpm-пакета== | + | |
- | + | ||
< | < | ||
- | |||
cd / | cd / | ||
- | |||
rpmbuild -bb psi.spec | rpmbuild -bb psi.spec | ||
- | |||
</ | </ | ||
- | _Примечание: | + | __**Примечание**__: Флаг |
- | + | ||
И установить командой: | И установить командой: | ||
< | < | ||
- | |||
rpm -ihv psi-0.15_dev.rpm | rpm -ihv psi-0.15_dev.rpm | ||
- | |||
</ | </ | ||
- | = В заключении = | + | ===== В заключении ===== |
- | + | ||
Наслаждаемся ;-) | Наслаждаемся ;-) |
ru/opensuse.1283940184.txt.gz · Последнее изменение: 2010/10/17 15:36 (внешнее изменение)