File libtelegramqml.spec of Package libtelegramqml

#
# spec file for package libqtelegram-ae
#
# Copyright (c) 2015 Buschmann <buschmann23@opensuse.org>
#
# 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.

# norootforbuild

%define _soversion 1

Name:               libtelegramqml
Summary:            Telegram API Tools for QtQML and Qml
Version:            0.9.2
Release:            1
License:            GPL-3.0
Group:              Development/Libraries/C and C++
Source0:            https://github.com/Aseman-Land/TelegramQML/archive/v%{version}.tar.gz
BuildRoot:          %{_tmppath}/%{name}-%{version}-build
AutoReqProv:        yes  
Url:                https://github.com/Aseman-Land/TelegramQML

BuildRequires:      pkgconfig(openssl)
BuildRequires:      pkgconfig(Qt5Core) >= 5.4.0
BuildRequires:      pkgconfig(Qt5Quick)
BuildRequires:      pkgconfig(Qt5Qml)
BuildRequires:      pkgconfig(Qt5Sql)
BuildRequires:      pkgconfig(Qt5Xml)
BuildRequires:      libqt5-qtmultimedia-devel
BuildRequires:      libqtelegram-ae-devel >= 6.1


%description
Telegram API tools for QtQML and Qml, based on Cutegram-Core and libqtelegram.
It's free and released under the GPLv3 license.





%package -n %{name}%{_soversion}
Summary:            Telegram API Tools for QtQML and Qml - Shared Library
Group:              Development/Libraries/C and C++

%description -n %{name}%{_soversion}
Telegram API tools for QtQML and Qml, based on Cutegram-Core and libqtelegram.
It's free and released under the GPLv3 license.



%package devel
Group:              Development/Libraries/C and C++
Summary:            Telegram API Tools for QtQML and Qml - Development Files
AutoReqProv:        yes
Requires:           %{name}%{_soversion} = %{version}-%{release}

%description devel
Telegram API tools for QtQML and Qml, based on Cutegram-Core and libqtelegram.
It's free and released under the GPLv3 license.





%prep
%setup -q -n TelegramQML-%{version}

%build  
  mkdir build
  pushd build
  %qmake5 -r PREFIX=%{_libqt5_prefix} \
             LIBDIR=%{_libqt5_libdir} \
             INSTALL_LIBS_PREFIX=%{_libqt5_libdir} \
             INSTALL_HEADERS_PREFIX=%_includedir \
             BUILD_MODE+=lib ..
  %make_jobs
  popd
  
    

%install
  pushd build
  %qmake5_install
  popd


%post -n %{name}%{_soversion} -p /sbin/ldconfig

%postun -n %{name}%{_soversion} -p /sbin/ldconfig

  
%clean
  rm -rf $RPM_BUILD_ROOT

%files -n %{name}%{_soversion}
%defattr(644,root,root,755)
%doc LICENSE README.md
%_libdir/libtelegramqml.so.1
%_libdir/libtelegramqml.so.1.0
%_libdir/libtelegramqml.so.1.0.0

%files devel
%defattr(644,root,root,755)
%_libdir/libtelegramqml.so
%_includedir/telegramqml

%changelog
openSUSE Build Service is sponsored by