LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File sni-qt.spec of Package sni-qt (Project GNOME:Ayatana)

# Written by: Xiao-Long Chen <chenxiaolong@cxl.epac.to>

Name:		sni-qt
Version:	0.2.6
Release:	1
License:	LGPL-3.0
Summary:	Library that turns Qt tray icons into appindicators
Url:		https://launchpad.net/sni-qt
Group:		System/Libraries
Source:		https://launchpad.net/sni-qt/trunk/%{version}/+download/sni-qt-%{version}.tar.bz2
# From Ubuntu packaging version 0.2.5-0ubuntu3
Source1:	sni-qt.conf

BuildRequires:	cmake
BuildRequires:	gcc-c++

BuildRequires:	pkgconfig(dbusmenu-qt)
BuildRequires:	pkgconfig(QtCore)

%description
This package contains a Qt plugin which turns all QSystemTrayIcon into
StatusNotifierItems (appindicators).


%prep
%setup -q


%build
mkdir build
cd build

cmake .. \
  -DCMAKE_BUILD_TYPE=release \
  -DCMAKE_C_FLAGS_RELEASE:STRING="%{optflags}" \
  -DCMAKE_CXX_FLAGS_RELEASE:STRING="%{optflags}" \
  -DLIB_SUFFIX=$(echo %{_lib} | sed 's/lib//') \
  -DCMAKE_INSTALL_PREFIX:PATH="%{_prefix}"

make %{?_smp_mflags}


%install
cd build
%make_install

install -dm755 $RPM_BUILD_ROOT%{_sysconfdir}/xdg/
install -m644 '%{SOURCE1}' $RPM_BUILD_ROOT%{_sysconfdir}/xdg/


%files
%defattr(-,root,root)
%doc NEWS README
%config(noreplace) %{_sysconfdir}/xdg/sni-qt.conf
%dir %{_libdir}/qt4/plugins/systemtrayicon/
%{_libdir}/qt4/plugins/systemtrayicon/libsni-qt.so


%changelog
* Sat Aug 18 2012 Xiao-Long Chen <chenxiaolong@cxl.epac.to> - 0.2.6-1
- Initial release
- Version 0.2.6