From 96f344886299147e982d1cf0434b627336219fd7 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 18:23:23 +0100 Subject: [PATCH] package created using the webbuild interface [release 0.1.0.20190318git-1mamba;Mon Mar 18 2019] --- README.md | 2 ++ telegram-qt.spec | 85 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 87 insertions(+) create mode 100644 telegram-qt.spec diff --git a/README.md b/README.md index d237d43..dd21f02 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # telegram-qt +Qt-based library for Telegram network. + diff --git a/telegram-qt.spec b/telegram-qt.spec new file mode 100644 index 0000000..511f434 --- /dev/null +++ b/telegram-qt.spec @@ -0,0 +1,85 @@ +Name: telegram-qt +Version: 0.1.0.20190318git +Release: 1mamba +Summary: Qt-based library for Telegram network +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +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: 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}/libTelegramQt5.so.* +%{_libdir}/libTelegramQt5Qml.so.* +%dir %{_libdir}/qt5/qml/TelegramQt +%{_libdir}/qt5/qml/TelegramQt/* + +%files -n lib%{name}-devel +%defattr(-,root,root) +%dir %{_includedir}/TelegramQt5 +%dir %{_includedir}/TelegramQt5/TelegramQt +%{_includedir}/TelegramQt5/TelegramQt/* +%{_libdir}/cmake/TelegramQt5/TelegramQt5Config.cmake +%{_libdir}/cmake/TelegramQt5/TelegramQt5ConfigVersion.cmake +%{_libdir}/libTelegramQt5.so +%{_libdir}/libTelegramQt5Qml.so +%{_libdir}/pkgconfig/TelegramQt5.pc +%doc README.md + +%changelog +* Mon Mar 18 2019 Silvan Calarco 0.1.0.20190318git-1mamba +- package created using the webbuild interface