File rosagram.spec of Package rosagram

%define conflicts telegram

# spec file for package rosagram
#
# Copyright (c) 2016 Marcelo Atie, Rio de Janeiro, Brazil.
# Copyright (c) 2018 Alessandro Accardo, Roma, Italy.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

Name:		rosagram
Version:	6.2.4 
Release:	0
ExclusiveArch: x86_64
Summary:	Official Telegram Messenger app
License:	GPL-3.0
Group:		Productivity/Networking/Instant Messenger
Url:		https://telegram.org/
BuildRequires: xz
BuildRequires:  hicolor-icon-theme
Conflicts:      %{conflicts}
Source0:	    rosagram.%{version}.tar.xz
Source1:    %{name}.desktop
Source2:    %{name}.png
BuildRoot:	%{_tmppath}/%{name}-%{version}-build

%description
Telegram is a cloud-based mobile and desktop messaging app with a focus on security and speed.

%global debug_package %{nil}
%prep
%setup -q -c

%install
install -Dm 755 Telegram/Telegram %{buildroot}%{_bindir}/%{name}
install -Dm 644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}-desktop.desktop
install -Dm 644 %{SOURCE2} %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
export NO_BRP_CHECK_RPATH=true


#ln -sf /opt/telegram/Telegram %{buildroot}%{_bindir}/telegram
#%__install -Dm 755 Telegram/Telegram %{buildroot}%{_bindir}/telegram
#%__install -Dm 755 Telegram/Updater %{buildroot}/opt/telegram/Updater
%clean

%files
%defattr(-,root,root)
%{_bindir}/%{name}
%defattr(644,root,root)
%{_datadir}/applications/%{name}-desktop.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
#/opt/telegram
#/opt/telegram/Telegram
#/opt/telegram/Updater
openSUSE Build Service is sponsored by