Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP4:FactoryCandidates
QR-Code-generator
QR-Code-generator.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File QR-Code-generator.spec of Package QR-Code-generator
# # spec file for package QR-Code-generator # # Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define libcname libqrcodegen1 %define libcppname libqrcodegencpp1 %global cmake_code_version 1.8.0.cmake3 %{?sle15_python_module_pythons} Name: QR-Code-generator Version: 1.8.0+git17.856ba8a Release: 0 Summary: QR Code generator library License: MIT URL: https://github.com/nayuki/QR-Code-generator Source0: %{name}-%{version}.tar.zst Source1: qrcodegen-cmake-%cmake_code_version.tar.zst BuildRequires: %{python_module setuptools} BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: pkgconfig BuildRequires: python-rpm-macros BuildRequires: zstd %python_subpackages %description This project aims to be the best, clearest QR Code generator library in multiple languages. The primary goals are flexible options and absolute correctness. Secondary goals are compact implementation size and good documentation comments. %if 0%{?suse_version} < 1500 # this is hack to make rpm happy as %python_subpackage does not work %package -n python-%{name} Summary: QR Code generator python bindings %description -n python-%{name} QR Code generator python2 bindings %endif %package devel Summary: Development files for QR code generator Requires: %{libcname} Requires: %{libcppname} Provides: qrcodegen-devel %description devel Development files, headers/libs for QR code generator %package -n %{libcname} Summary: QR Code generator library %description -n %{libcname} C QR Code generator library %package -n %{libcppname} Summary: QR Code generator library %description -n %{libcppname} C++ QR Code generator library %prep %autosetup -p1 -a1 ln -s qrcodegen-cmake-%cmake_code_version/{CMakeLists.txt,cmake} . cp qrcodegen-cmake-%cmake_code_version/{README.md,LICENSE} . %build %cmake pushd ../python %python_build popd %install %cmake_install pushd python %python_install popd %ldconfig_scriptlets -n %{libcname} %ldconfig_scriptlets -n %{libcppname} %files %{python_files} %license Readme.markdown %{python_sitelib}/* %files -n QR-Code-generator-devel %license LICENSE Readme.markdown %doc README.md Readme.markdown %{_libdir}/cmake/qrcodegencpp/ %{_libdir}/cmake/qrcodegen/ %{_libdir}/libqrcodegen.so %{_libdir}/libqrcodegencpp.so %{_includedir}/qrcodegen/ %{_includedir}/qrcodegencpp/ %{_libdir}/pkgconfig/qrcodegencpp.pc %{_libdir}/pkgconfig/qrcodegen.pc %files -n %{libcname} %license Readme.markdown %{_libdir}/libqrcodegen.so.* %files -n %{libcppname} %license Readme.markdown %{_libdir}/libqrcodegencpp.so.* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor