diff --git a/README.md b/README.md index 3570a07..430c220 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # qxlsx +Excel file(*.xlsx) reader/writer library using Qt 5 or 6. Descendant of QtXlsx. + diff --git a/qxlsx.spec b/qxlsx.spec new file mode 100644 index 0000000..1a6025a --- /dev/null +++ b/qxlsx.spec @@ -0,0 +1,80 @@ +Name: qxlsx +Version: 1.4.5 +Release: 1mamba +Summary: Excel file(*.xlsx) reader/writer library using Qt 5 or 6 +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://qtexcel.github.io/QXlsx/ +Source: https://github.com/QtExcel/QXlsx.git/v%{version}/QXlsx-%{version}.tar.bz2 +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libgcc +BuildRequires: libglvnd-devel +BuildRequires: libstdc++6-devel +BuildRequires: libxkbcommon-devel +BuildRequires: qt6-qtbase-devel +## AUTOBUILDREQ-END +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description +Excel file(*.xlsx) reader/writer library using Qt 5 or 6. Descendant of QtXlsx. + +%package -n libQXlsxQt6 +Group: System/Libraries +Summary: Excel file(*.xlsx) reader/writer library using Qt6 + +%description -n libQXlsxQt6 +Excel file(*.xlsx) reader/writer library using Qt6. Descendant of QtXlsx. +This package contains shared libraries for %{name}. + +%package -n libQXlsxQt6-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: libQXlsxQt6 = %{?epoch:%epoch:}%{version}-%{release} + +%description -n libQXlsxQt6-devel +This package contains libraries and header files for developing applications that use libQXlsxQt6. + +%debug_package + +%prep +%setup -q -n QXlsx-%{version} + +%build +cd QXlsx +%cmake -d build \ + -DQT_DIR=%{_libdir}/cmake/Qt6 + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +cd QXlsx +%makeinstall -C build + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n libQXlsxQt6 -p /sbin/ldconfig +%postun -n libQXlsxQt6 -p /sbin/ldconfig + +%files -n libQXlsxQt6 +%defattr(-,root,root) +%{_libdir}/libQXlsxQt6.so.* +%doc LICENSE + +%files -n libQXlsxQt6-devel +%defattr(-,root,root) +%dir %{_includedir}/QXlsx +%{_includedir}/QXlsx/*.h +%{_libdir}/libQXlsxQt6.so +%dir %{_libdir}/cmake/QXlsxQt6 +%{_libdir}/cmake/QXlsxQt6/QXlsxQt6*.cmake +%doc README.RU.md README.ko.md README.md + +%changelog +* Mon Jan 09 2023 Silvan Calarco 1.4.5-1mamba +- package created using the webbuild interface