zxing-cpp/zxing-cpp.spec

111 lines
3.1 KiB
RPMSpec

Name: zxing-cpp
Version: 2.2.1
Release: 1mamba
Summary: C++ port of ZXing
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/zxing-cpp/zxing-cpp
Source: https://github.com/nu-book/zxing-cpp.git/v%{version}/zxing-cpp-%{version}.tar.bz2
License: Apache License 2.0
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description
C++ port of ZXing.
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
%description -n lib%{name}
C++ port of ZXing.
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
install -m0644 core/src/BitArray.h %{buildroot}%{_includedir}/ZXing/BitArray.h
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/ZXingReader
%{_bindir}/ZXingWriter
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libZXing.so.*
%doc LICENSE
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/ZXing
%{_includedir}/ZXing/*
%dir %{_libdir}/cmake/ZXing
%{_libdir}/cmake/ZXing/ZXing*.cmake
%{_libdir}/libZXing.so
%{_libdir}/pkgconfig/zxing.pc
%doc README.md
%changelog
* Tue Feb 27 2024 Automatic Build System <autodist@openmamba.org> 2.2.1-1mamba
- automatic version update by autodist
* Thu Jul 06 2023 Automatic Build System <autodist@mambasoft.it> 2.1.0-1mamba
- automatic version update by autodist
* Mon Jan 09 2023 Automatic Build System <autodist@mambasoft.it> 2.0.0-1mamba
- automatic version update by autodist
* Wed Jul 20 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.0-2mamba
- install BitArray.h required by libreoffice
* Sun Jul 17 2022 Automatic Build System <autodist@mambasoft.it> 1.4.0-1mamba
- automatic version update by autodist
* Fri May 06 2022 Automatic Build System <autodist@mambasoft.it> 1.3.0-1mamba
- automatic version update by autodist
* Sat May 29 2021 Automatic Build System <autodist@mambasoft.it> 1.2.0-1mamba
- automatic version update by autodist
* Sun Sep 13 2020 Automatic Build System <autodist@mambasoft.it> 1.1.1-1mamba
- automatic version update by autodist
* Mon Aug 03 2020 Automatic Build System <autodist@mambasoft.it> 1.1.0-1mamba
- automatic version update by autodist
* Sat Jan 11 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.8-1mamba
- package created using the webbuild interface