LINUX.ORG.RU

2HighwayStar


0

0

покритикуй плз spec файл blueman'а:

Name:           blueman
Version:        1.21
Release:        1.1
License:        GPL v3
Source:         http://download.tuxfamily.org/%{name}/%{name}-%{version}.tar.gz
Group:          System/GUI/GNOME
Summary:        GTK+ Bluetooth Manager
Url:            http://blueman-project.org
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  update-desktop-files
BuildRequires:  -post-build-checks -rpmlint-Factory
BuildRequires:  glib2
BuildRequires:  gtk2-devel
BuildRequires:  python-devel
BuildRequires:  python-gobject2-devel
BuildRequires:  python-gtk-devel
BuildRequires:  bluez-devel
BuildRequires:  intltool
BuildRequires:  pyrex
BuildRequires:  startup-notification-devel
BuildRequires:  python-notify
BuildRequires:  dbus-1-python-devel
BuildRequires:  PolicyKit-devel
Requires:  PolicyKit
Requires:  dbus-1-python
Requires:  hal
Requires:  python-gnome
Requires:  python-notify
Requires:  python-gtk
Requires:  python-gobject2
Requires:  startup-notification

%description
Blueman is designed to be simple and intuitive for everyday bluetooth tasks such as:

    * Connecting to 3G/EDGE/GPRS via DUN profile.
    * Connecting to/Creating bluetooth networks
    * Connecting to input devices
    * Connecting to audio devices
    * Sending/Receiving/Browsing files via OBEX
    * Pairing

%lang_package  

%prep
%setup -q

%build
autoconf -f -i
%configure \
	--libdir=%{_libdir}/
make

%install
make install DESTDIR=%{buildroot}
%find_lang %{name}
%suse_update_desktop_file -i blueman-manager

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_bindir}/blueman-*
%{_datadir}/polkit-1/actions/org.blueman.policy
%{_datadir}/applications/blueman-manager.desktop
%{_datadir}/blueman
%{_datadir}/dbus-1/services/blueman-applet.service
%{_datadir}/dbus-1/system-services/org.blueman.Mechanism.service
%{_datadir}/icons/hicolor/*/apps/blueman.*
%{_libexecdir}/blueman-mechanism
%{_mandir}/man*/blueman-*.*
%{_sysconfdir}/dbus-1/system.d/org.blueman.Mechanism.conf
%{_sysconfdir}/xdg/autostart/blueman.desktop
%{py_prefix}/lib/python%{py_ver}/site-packages/*blueman*

%ifarch x86_64
%{py_prefix}/lib64/python%{py_ver}/site-packages/*blueman*
%endif

%files lang -f %{name}.lang  

%changelog

меня смущает вот этот кусок:

%ifarch x86_64
%{py_prefix}/lib64/python%{py_ver}/site-packages/*blueman*
%endif

так можно вообще аналогичные платформо-зависимые штуки указывать? там три либы запихиваются в site-packages.

еще вопрос - можно ли в спеке сделать так, чтобы перед сборкой, в %prep забирался код из bzr|svn|git ?

★★★★★

Последнее исправление: isden (всего исправлений: 3)

> %configure \

--libdir=%{_libdir}/


Вторая строчка лишняя, такой параметр в %configure (вместе с кучей других) передаётся сам.

%install

make install DESTDIR=%{buildroot}



Можно %makeinstall

можно ли в спеке сделать так, чтобы перед сборкой, в %prep забирался код из bzr|svn|git ?


Можно, только в билдсервисе тогда вроде бы не соберётся, т.к. у тамошних виртуальных машин доступа в сеть нет.

anonymous
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.