2024-01-06 01:46:31 +01:00
|
|
|
Name: kimageannotator
|
2024-03-29 18:23:13 +01:00
|
|
|
Version: 0.7.1
|
2024-01-06 01:46:31 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: Tool for annotating images
|
|
|
|
Group: Applications/Graphics
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://github.com/ksnip/kImageAnnotator
|
|
|
|
Source: https://github.com/ksnip/kImageAnnotator.git/v%{version}/kImageAnnotator-%{version}.tar.bz2
|
2024-03-29 18:23:13 +01:00
|
|
|
Patch0: kimageannotator-0.7.1-rename-qt5-version.patch
|
2024-01-06 01:46:31 +01:00
|
|
|
License: LGPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libQt5Svg-devel
|
|
|
|
BuildRequires: libX11-devel
|
|
|
|
BuildRequires: libgcc
|
2024-03-29 18:23:13 +01:00
|
|
|
BuildRequires: libglvnd-devel
|
2024-01-06 01:46:31 +01:00
|
|
|
BuildRequires: libkcolorpicker-devel
|
2024-03-29 18:23:13 +01:00
|
|
|
BuildRequires: libkcolorpicker-qt6-devel
|
2024-01-06 01:46:31 +01:00
|
|
|
BuildRequires: libstdc++6-devel
|
|
|
|
BuildRequires: qt5-qtbase-devel
|
2024-03-29 18:23:13 +01:00
|
|
|
BuildRequires: qt6-qtbase-devel
|
|
|
|
BuildRequires: qt6-qtsvg-devel
|
2024-01-06 01:46:31 +01:00
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: cmake
|
|
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description
|
|
|
|
Tool for annotating images.
|
|
|
|
|
|
|
|
%package -n lib%{name}
|
|
|
|
Group: System/Libraries
|
|
|
|
Summary: Shared libraries for %{name}
|
|
|
|
|
|
|
|
%description -n lib%{name}
|
|
|
|
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}
|
|
|
|
|
|
|
|
%description -n lib%{name}-devel
|
|
|
|
This package contains libraries and header files for developing applications that use %{name}.
|
|
|
|
|
2024-03-29 18:23:13 +01:00
|
|
|
%package -n lib%{name}-qt6
|
|
|
|
Group: System/Libraries
|
|
|
|
Summary: Shared libraries for %{name}
|
|
|
|
|
|
|
|
%description -n lib%{name}-qt6
|
|
|
|
This package contains shared libraries for %{name}.
|
|
|
|
|
|
|
|
%package -n lib%{name}-qt6-devel
|
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: lib%{name}-qt6 = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description -n lib%{name}-qt6-devel
|
|
|
|
This package contains libraries and header files for developing applications that use %{name}.
|
2024-01-06 01:46:31 +01:00
|
|
|
|
|
|
|
%debug_package
|
|
|
|
|
|
|
|
%prep
|
2024-03-29 18:23:13 +01:00
|
|
|
%setup -q -c
|
|
|
|
mv kImageAnnotator-%{version} %{name}-qt5
|
|
|
|
cp -a %{name}-qt5 %{name}-qt6
|
|
|
|
cd %{name}-qt5
|
|
|
|
%patch 0 -p1 -b .rename-qt5-version
|
2024-01-06 01:46:31 +01:00
|
|
|
|
|
|
|
%build
|
2024-03-29 18:23:13 +01:00
|
|
|
cd %{name}-qt5
|
|
|
|
|
2024-01-06 01:46:31 +01:00
|
|
|
%cmake -d build
|
|
|
|
%make
|
|
|
|
|
2024-03-29 18:23:13 +01:00
|
|
|
cd ../../%{name}-qt6
|
|
|
|
|
|
|
|
%cmake -d build \
|
|
|
|
-DBUILD_WITH_QT6=ON
|
|
|
|
|
|
|
|
%make
|
|
|
|
|
2024-01-06 01:46:31 +01:00
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-03-29 18:23:13 +01:00
|
|
|
%makeinstall -C %{name}-qt5/build
|
|
|
|
%makeinstall -C %{name}-qt6/build
|
2024-01-27 18:17:59 +01:00
|
|
|
|
2024-03-29 18:23:13 +01:00
|
|
|
%find_lang %{name} --with-qt --all-name || touch %{name}.lang
|
2024-01-06 01:46:31 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%post -n lib%{name} -p /sbin/ldconfig
|
|
|
|
%postun -n lib%{name} -p /sbin/ldconfig
|
|
|
|
|
2024-03-29 18:23:13 +01:00
|
|
|
%files -n lib%{name} -f %{name}.lang
|
2024-01-06 01:46:31 +01:00
|
|
|
%defattr(-,root,root)
|
2024-01-27 18:17:59 +01:00
|
|
|
%{_libdir}/libkImageAnnotator-Qt5.so.*
|
2024-03-29 18:23:13 +01:00
|
|
|
%doc %{name}-qt5/LICENSE
|
2024-01-06 01:46:31 +01:00
|
|
|
|
|
|
|
%files -n lib%{name}-devel
|
|
|
|
%defattr(-,root,root)
|
2024-01-27 18:17:59 +01:00
|
|
|
%dir %{_includedir}/kImageAnnotator-Qt5
|
|
|
|
%dir %{_includedir}/kImageAnnotator-Qt5/kImageAnnotator
|
|
|
|
%{_includedir}/kImageAnnotator-Qt5/kImageAnnotator/*
|
|
|
|
%{_libdir}/libkImageAnnotator-Qt5.so
|
|
|
|
%dir %{_libdir}/cmake/kImageAnnotator-Qt5
|
|
|
|
%{_libdir}/cmake/kImageAnnotator-Qt5/kImageAnnotator*.cmake
|
2024-03-29 18:23:13 +01:00
|
|
|
%doc %{name}-qt5/README.md
|
|
|
|
|
|
|
|
%files -n lib%{name}-qt6 -f %{name}.lang
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libkImageAnnotator.so.*
|
|
|
|
%doc %{name}-qt5/LICENSE
|
|
|
|
|
|
|
|
%files -n lib%{name}-qt6-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_includedir}/kImageAnnotator-Qt6
|
|
|
|
%dir %{_includedir}/kImageAnnotator-Qt6/kImageAnnotator
|
|
|
|
%{_includedir}/kImageAnnotator-Qt6/kImageAnnotator/*
|
|
|
|
%{_libdir}/libkImageAnnotator.so
|
|
|
|
%dir %{_libdir}/cmake/kImageAnnotator-Qt6
|
|
|
|
%{_libdir}/cmake/kImageAnnotator-Qt6/kImageAnnotator*.cmake
|
2024-01-06 01:46:31 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-03-29 18:23:13 +01:00
|
|
|
* Sun Mar 03 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 0.7.1-1mamba
|
|
|
|
- update to 0.7.1
|
|
|
|
|
2024-01-27 18:17:59 +01:00
|
|
|
* Fri Jan 26 2024 Automatic Build System <autodist@openmamba.org> 0.7.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 01:46:31 +01:00
|
|
|
* Thu Mar 16 2023 Automatic Build System <autodist@mambasoft.it> 0.6.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 01:46:31 +01:00
|
|
|
* Thu Aug 25 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.0-1mamba
|
|
|
|
- package created using the webbuild interface
|