File libqtelegram-ae.spec of Package libqtelegram-ae

%define bname libqtelegram
%define oname %bname-aseman-edition
Name: %bname-ae
Summary: Telegram Protocol Access Library - Shared Library
Version: 10.0.0
Release: 3
License: GPL-3.0
Group: Development/Libraries/C and C++
Source: %oname-%version.tar.xz
Source9: %name-rpmlintrc
Patch: %oname-%version-git.patch
Url: https://github.com/Aseman-Land/%oname
Provides: %{name}1 = %version-%release
Obsoletes: %{name}1 <= %version-%release
BuildRequires: cmake
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(Qt5Core) >= 5.4.0
BuildRequires: pkgconfig(Qt5Gui) pkgconfig(Qt5Network)
BuildRequires: libqt5-qtmultimedia-devel


%description
This is a fork of libqtelegram by Aseman team.
This is a Qt asynchronous library to be used as Telegram client. Using
signal-slot mechanism to communicate to telegram servers, exposes an easy to use
API for applications to interact to.


%package devel
Group: Development/Libraries/C and C++
Summary: Telegram Protocol Access Library - Development Files
Requires: %name = %version-%release

%description devel
This is a fork of libqtelegram by Aseman team.
This is a Qt asynchronous library to be used as Telegram client. 
Using signal-slot mechanism to communicate to telegram servers, 
exposes an easy to use API for applications to interact to.


%prep
%setup -q -n %oname-%version
%patch -p1


%build
install -d -m 0755 build
cd build
%qmake5 -r \
	PREFIX=%_libqt5_prefix \
	LIB_PATH=%_libqt5_libdir \
	INSTALL_LIBS_PREFIX=%_libqt5_libdir \
	INSTALL_HEADERS_PREFIX=%_includedir \
	QMAKE_CFLAGS_ISYSTEM= \
	..
%make_jobs


%install
cd build
%qmake5_install


%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig


%files
%defattr(-,root,root)
%doc README.md
%_libdir/*.so.*


%files devel
%defattr(-,root,root)
%_libdir/*.so
%_includedir/*


%changelog
openSUSE Build Service is sponsored by