qxlsx/qxlsx.spec

87 lines
2.4 KiB
RPMSpec
Raw Normal View History

Name: qxlsx
Version: 1.4.7
Release: 1mamba
Summary: Excel file(*.xlsx) reader/writer library using Qt 5 or 6
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
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}/QXlsxQt6
%{_includedir}/QXlsxQt6/*.h
%{_libdir}/libQXlsxQt6.so
%dir %{_libdir}/cmake/QXlsxQt6
%{_libdir}/cmake/QXlsxQt6/QXlsxQt6*.cmake
%doc README.RU.md README.ko.md README.md
%changelog
* Mon Dec 18 2023 Automatic Build System <autodist@mambasoft.it> 1.4.7-1mamba
- automatic version update by autodist
* Tue Apr 25 2023 Automatic Build System <autodist@mambasoft.it> 1.4.6-1mamba
- automatic version update by autodist
* Mon Jan 09 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.5-1mamba
- package created using the webbuild interface