rename libqrcodegen.a to libqrcodegencpp.a and provide libqrcodegen.a as C library [release 1.5.0-2mamba;Thu Feb 06 2020]

This commit is contained in:
Silvan Calarco 2024-01-05 17:04:09 +01:00
parent b9bc392f77
commit 867a3cf1ed
2 changed files with 60 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# qrcodegen
High-quality QR Code generator library in Java, TypeScript/JavaScript, Python, C++, C, Rust.

58
qrcodegen.spec Normal file
View File

@ -0,0 +1,58 @@
Name: qrcodegen
Version: 1.5.0
Release: 2mamba
Summary: High-quality QR Code generator library in Java, TypeScript/JavaScript, Python, C++, C, Rust
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.nayuki.io/page/qr-code-generator-library
## GITSOURCE https://github.com/nayuki/QR-Code-generator.git v1.5.0
Source: https://github.com/nayuki/QR-Code-generator.git/v%{version}/QR-Code-generator-%{version}.tar.bz2
License: MIT
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
High-quality QR Code generator library in Java, TypeScript/JavaScript, Python, C++, C, Rust.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%prep
%setup -q -n QR-Code-generator-%{version}
%build
%make -C c
%make -C cpp
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -D -m0755 c/libqrcodegen.a %{buildroot}%{_libdir}/libqrcodegen.a
install -D -m0755 cpp/libqrcodegen.a %{buildroot}%{_libdir}/libqrcodegencpp.a
install -d -m0755 %{buildroot}%{_includedir}/qrcodegen
cp -a c/*.h %{buildroot}%{_includedir}/qrcodegen/
cp -a cpp/*.hpp %{buildroot}%{_includedir}/qrcodegen/
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/qrcodegen
%{_includedir}/qrcodegen/*.hpp
%{_includedir}/qrcodegen/qrcodegen.h
%{_libdir}/libqrcodegencpp.a
%{_libdir}/libqrcodegen.a
%changelog
* Thu Feb 06 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.5.0-2mamba
- rename libqrcodegen.a to libqrcodegencpp.a and provide libqrcodegen.a as C library
* Sun Feb 02 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.5.0-1mamba
- package created using the webbuild interface