telegram-qt/telegram-qt.spec

90 lines
2.5 KiB
RPMSpec
Raw Normal View History

Name: telegram-qt
Version: 0.1.0.20200428git
Release: 1mamba
Summary: Qt-based library for Telegram network
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/Kaffeine/telegram-qt
## GITSOURCE https://github.com/Kaffeine/telegram-qt.git master
Source: https://github.com/Kaffeine/telegram-qt.git/master/telegram-qt-%{version}.tar.bz2
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libgcc
BuildRequires: libopenssl-devel
BuildRequires: libqt5-devel
BuildRequires: libstdc++6-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Qt-based library for Telegram network.
%package -n lib%{name}
Group: System/Libraries
Summary: Qt-based library for Telegram network
%description -n lib%{name}
Qt-based library for Telegram network.
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
%build
%cmake -d build
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libTelegramQt5Core.so.*
%{_libdir}/libTelegramQt5Qml.so.*
%dir %{_libdir}/qt5/qml/TelegramQt
%{_libdir}/qt5/qml/TelegramQt/*
%doc LICENSE.LGPL
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/TelegramQt5
%dir %{_includedir}/TelegramQt5/TelegramQt
%{_includedir}/TelegramQt5/TelegramQt/*
%{_libdir}/cmake/TelegramQt5/TelegramQt5*.cmake
%{_libdir}/libTelegramQt5Core.so
%{_libdir}/libTelegramQt5Qml.so
%{_libdir}/pkgconfig/TelegramQt5.pc
%doc README.md
%changelog
* Tue Apr 28 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.1.0.20200428git-1mamba
- update to 0.1.0.20200428git
* Mon Mar 18 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.1.0.20190318git-1mamba
- package created using the webbuild interface