Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: Telegram Desktop
Source: https://github.com/telegramdesktop/tdesktop
Files-Excluded: Telegram/ThirdParty/*
                Telegram/Patches/*.diff
                Telegram/lib_ui/fonts/*.ttf
Comment: Exclude unused third-party modules to reduce code size.

Files: *
Copyright: 2014-2020 John Preston <johnprestonmail@gmail.com>
License: GPL-3.0+ with OpenSSL exception

Files: lib/xdg/telegramdesktop.appdata.xml.in
Copyright: Jan Grulich <grulja@gmail.com> (github: grulja)
License: CC0-1.0

Files: Telegram/lib_ui/emoji_suggestions/emoji_autocomplete.json
Copyright: 2017 EmojiOne Inc.
License: Expat
Comment: See https://github.com/emojione/emojione/tree/master/extras/alpha-codes

Files: Telegram/SourceFiles/boxes/mute_settings_box.h
       Telegram/SourceFiles/boxes/mute_settings_box.cpp
       Telegram/lib_spellcheck/spellcheck/platform/linux/spellcheck_linux.cpp
Copyright: 2017,2019 Nicholas Guriev <guriev-ns@ya.ru> (github: mymedia2)
License: Public-domain

Files: Telegram/lib_spellcheck/spellcheck/platform/linux/linux_enchant.h
       Telegram/lib_spellcheck/spellcheck/platform/linux/linux_enchant.cpp
Copyright: 2003 Dom Lachowicz
           2019 Nicholas Guriev <guriev-ns@ya.ru>
License: LGPL-2.1+ with Spelling-Providers exception

Files: snap/*
Author: Marco Trevisan <marco@ubuntu.com>
Copyright: 2017-2018 Canonical Ltd
License: GPL-3.0 or Public-domain
Comment: Contribution License Agreement is signed.
         https://github.com/telegramdesktop/tdesktop/pull/4505#event-1746102406

Files: debian/*
Copyright: 2016-2020 Nicholas Guriev <guriev-ns@ya.ru>
License: Public-domain
Comment: Contributing policy - https://cla-assistant.io/telegramdesktop/tdesktop

Files: debian/statusnotifieritem/*
Source: https://github.com/lxqt/lxqt-qtplugin
Copyright: 2013-2019 LXQt team
           2010-2012 Razor team
License: LGPL-2.1+

Files: Telegram/SourceFiles/qt_functions.cpp
Copyright: 2015 The Qt Company Ltd.
License: LGPL-2.1-or-3 with Qt-1.1 exception

License: CC0-1.0
 This work has been placed in the public domain. Full text of the license is
 available in file /usr/share/common-licenses/CC0-1.0 or at Creative Commons
 web-site https://creativecommons.org/publicdomain/zero/1.0/legalcode.

License: Expat
 Permission is hereby granted, free of charge, to any person obtaining a copy of
 this software and associated documentation files (the 'Software') deal in the
 Software without restriction, including without limitation the rights to use,
 copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
 Software, and to permit persons to whom the Software is furnished to do so,
 subject to the following conditions:
 .
 The above copyright notice and this permission notice shall be included in all
 copies or substantial portions of the Software.
 .
 THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 SOFTWARE.

License: LGPL-2.1+
 This program or library is free software; you can redistribute it and/or
 modify it under the terms of the GNU Lesser General Public License as
 published by the Free Software Foundation; either version 2.1 of the License,
 or (at your option) any later version.
 .
 This program is distributed in the hope that it will be useful, but WITHOUT
 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
 details.
 .
 On Debian systems, the complete text of the GNU Lesser General Public
 License version 2.1 can be found in "/usr/share/common-licenses/LGPL-2.1".

License: LGPL-2.1+ with Spelling-Providers exception
 This library is free software; you can redistribute it and/or modify it under
 the terms of the GNU Lesser General Public License as published by the Free
 Software Foundation; either version 2.1 of the License, or (at your option)
 any later version.
 .
 This library is distributed in the hope that it will be useful, but WITHOUT
 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 details.
 .
 You should have received a copy of the GNU Lesser General Public License along
 with this library; if not, write to the Free Software Foundation, Inc.,
 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 .
 In addition, as a special exception, Dom Lachowicz gives permission to link
 the code of this program with non-LGPL Spelling Provider libraries (eg: a MSFT
 Office spell checker backend) and distribute linked combinations including the
 two.  You must obey the GNU Lesser General Public License in all respects for
 all of the code used other than said providers.  If you modify this file, you
 may extend this exception to your version of the file, but you are not
 obligated to do so.  If you do not wish to do so, delete this exception
 statement from your version.
 .
 On Debian systems, the complete text of the GNU Lesser General Public License
 version 2.1 can be found in /usr/share/common-licenses/LGPL-2.1 file.

License: LGPL-2.1-or-3 with Qt-1.1 exception
 This file may be used under the terms of the GNU Lesser General Public License
 version 2.1 or version 3 as published by the Free Software Foundation and
 appearing in the file LICENSE.LGPLv21 and LICENSE.LGPLv3 included in the
 packaging of this file. Please review the following information to ensure the
 GNU Lesser General Public License requirements will be met:
 https://www.gnu.org/licenses/lgpl.html.
 .
 In addition, as a special exception, The Qt Company gives you certain
 additional rights. These rights are described in The Qt Company Qt LGPL
 Exception version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
 .
 On Debian systems, the complete text of the GNU Lesser General Public License
 version 2.1 can be found in /usr/share/common-licenses/LGPL-2.1. The complete
 text of the GNU Lesser General Public License version 3 can be found in
 /usr/share/common-licenses/LGPL-3.
 .
 The Qt Company LGPL Exception version 1.1:
 As an additional permission to the GNU Lesser General Public License version
 2.1, the object code form of a "work that uses the Library" may incorporate
 material from a header file that is part of the Library.  You may distribute
 such object code under terms of your choice, provided that:
     (i)   the header files of the Library have not been modified; and
     (ii)  the incorporated material is limited to numerical parameters, data
           structure layouts, accessors, macros, inline functions and templates;
           and
     (iii) you comply with the terms of Section 6 of the GNU Lesser General
           Public License version 2.1.
 .
 Moreover, you may apply this exception to a modified version of the Library,
 provided that such modification does not involve copying material from the
 Library into the modified Library's header files unless such material is
 limited to (i) numerical parameters; (ii) data structure layouts; (iii)
 accessors; and (iv) small macros, templates and inline functions of five lines
 or less in length.
 .
 Furthermore, you are not required to apply this additional permission to a
 modified version of the Library.

License: GPL-3.0
 This program is free software: you can redistribute it and/or modify it under
 the terms of the GNU General Public License version 3 as published by the Free
 Software Foundation.
 .
 This program is distributed in the hope that it will be useful, but WITHOUT ANY
 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
 PARTICULAR PURPOSE. See the GNU General Public License for more details.
 .
 You should have received a copy of the GNU General Public License along with
 this program. If not, see <http://www.gnu.org/licenses/>.
 .
 On Debian systems, the complete text of the GNU General Public License version
 3 can be found in "/usr/share/common-licenses/GPL-3".

License: GPL-3.0+ with OpenSSL exception
 This program is free software: you can redistribute it and/or modify it under
 the terms of the GNU General Public License as published by the Free Software
 Foundation, either version 3 of the License, or (at your option) any later
 version.
 .
 In addition, as a special exception, the copyright holders give permission to
 link the code of portions of this program with the OpenSSL library. You must
 obey the GNU General Public License in all respects for all of the code used
 other than OpenSSL. If you modify file(s) with this exception, you may extend
 this exception to your version of the file(s), but you are not obligated to do
 so. If you do not wish to do so, delete this exception statement from your
 version. If you delete this exception statement from all source files in the
 program, then also delete it here.
 .
 This package is distributed in the hope that it will be useful, but WITHOUT ANY
 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
 PARTICULAR PURPOSE. See the GNU General Public License for more details.
 .
 You should have received a copy of the GNU General Public License along with
 this program. If not, see <http://www.gnu.org/licenses/>.
 .
 On Debian systems, the complete text of the GNU General Public License version
 3 can be found in "/usr/share/common-licenses/GPL-3".

License: Public-domain
 I certify that:
 a) The contribution was created in whole by me or is based upon previous work
    that, to the best of my knowledge, is in the public domain and I have the
    right to put it in the public domain.
 b) I understand and agree that this project and the contribution are public and
    that a record of the contribution (including all metadata and personal
    information I submit with it, including my sign-off) is maintained
    indefinitely and may be redistributed.
 c) I am granting this work into the public domain.
