package created using the webbuild interface [release 1.0.8-1mamba;Sat Jan 11 2020]

This commit is contained in:
Silvan Calarco 2024-01-05 20:05:47 +01:00
parent 13b9dec2cf
commit f35e1136ef
2 changed files with 82 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# zxing-cpp
C++ port of ZXing.

80
zxing-cpp.spec Normal file
View File

@ -0,0 +1,80 @@
Name: zxing-cpp
Version: 1.0.8
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/nu-book/zxing-cpp.git
## GITSOURCE https://github.com/nu-book/zxing-cpp.git v1.0.8
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: ldconfig
BuildRequires: libgcc
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%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
%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}/libZXingCore.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}/libZXingCore.so
%{_libdir}/pkgconfig/zxing.pc
%doc README.md
%changelog
* Sat Jan 11 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.8-1mamba
- package created using the webbuild interface