qrcodegen/qrcodegen.spec

62 lines
2.1 KiB
RPMSpec
Raw Permalink Normal View History

Name: qrcodegen
Version: 1.6.0
Release: 1mamba
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 CFLAGS="%{optflags} -fPIC"
%make -C cpp CXXFLAGS="%{optflags} -fPIC"
%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
* Sat Apr 18 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.0-1mamba
- update to 1.6.0
* 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