ru:rpm_build_howto
Различия
Показаны различия между двумя версиями страницы.
Предыдущая версия справа и слеваПредыдущая версияСледующая версия | Предыдущая версия | ||
ru:rpm_build_howto [2010/09/08 10:30] – zet | ru:rpm_build_howto [2019/04/28 13:53] (текущий) – внешнее изменение 127.0.0.1 | ||
---|---|---|---|
Строка 107: | Строка 107: | ||
==== Шаг 4. Сборка пакета ==== | ==== Шаг 4. Сборка пакета ==== | ||
- | |||
Строка 137: | Строка 136: | ||
< | < | ||
- | Summary: Client application for the Jabber | + | Summary: Client application for the XMPP network |
Name: psi | Name: psi | ||
Version: 0.14_dev | Version: 0.14_dev | ||
Release: 3%{dist} | Release: 3%{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 | ||
- | |||
./configure \ | ./configure \ | ||
- | |||
--prefix=" | --prefix=" | ||
- | |||
--bindir=" | --bindir=" | ||
- | |||
--datadir=" | --datadir=" | ||
- | |||
--release\ | --release\ | ||
- | |||
--no-separate-debug-info\ | --no-separate-debug-info\ | ||
- | |||
--enable-plugins \ /*эта строчка включает компиляцию с интерфесом подключения плагинов*/ | --enable-plugins \ /*эта строчка включает компиляцию с интерфесом подключения плагинов*/ | ||
- | |||
--enable-qtwebkit\ /*эта строчка включает компиляцию с webkit*/ | --enable-qtwebkit\ /*эта строчка включает компиляцию с webkit*/ | ||
- | |||
--qtdir=" | --qtdir=" | ||
- | |||
%{__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}/ | ||
- | |||
</ | </ | ||
- | + | Переходим в каталог | |
- | + | ||
- | Переходим в каталог | + | |
- | + | ||
< | < | ||
- | |||
cd / | cd / | ||
- | |||
rpmbuild -bb psi.spec | rpmbuild -bb psi.spec | ||
- | |||
</ | </ | ||
- | + | Опция | |
- | + | ||
- | Опция *-bb* указывает программе на сборку бинарного пакета. После удачной сборки пакет можно забрать из директории | + | |
- | + | ||
< | < | ||
- | |||
rpm -ihv psi-0.14_dev-3.mdv2008.1.i586.rpm | rpm -ihv psi-0.14_dev-3.mdv2008.1.i586.rpm | ||
- | |||
</ | </ | ||
+ | __**Примечание**__: | ||
+ | Также можно добавить цифровую подпись для пакета, | ||
- | _Примечание: | + | < |
+ | rpm --addsign psi-0.13_dev-3.mdv2008.1.i586.rpm | ||
+ | </ | ||
- | Также можно добавить цифровую подпись для пакета, | ||
- | |||
- | |||
- | < | ||
- | |||
- | rpm --addsign psi-0.13_dev-3.mdv2008.1.i586.rpm | ||
- | |||
- | </ |
ru/rpm_build_howto.1283941824.txt.gz · Последнее изменение: 2010/10/17 15:36 (внешнее изменение)