From 1a8b416075bb10dde0635ee8158558c04968369ea412d9dba5a684124fcccc5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 3 Dec 2019 12:19:13 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/QR-Code-generator?expand=0&rev=2 --- QR-Code-generator.spec | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/QR-Code-generator.spec b/QR-Code-generator.spec index 371517b..eb61ef8 100644 --- a/QR-Code-generator.spec +++ b/QR-Code-generator.spec @@ -42,6 +42,27 @@ This project aims to be the best, clearest QR Code generator library in multiple The primary goals are flexible options and absolute correctness. Secondary goals are compact implementation size and good documentation comments. +%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 %setup -q %autopatch -p1 @@ -71,8 +92,25 @@ pushd python popd rm -rf %{buildroot}%{_libdir}/*.a +%post -n %{libcname} -p /sbin/ldconfig +%postun -n %{libcname} -p /sbin/ldconfig +%post -n %{libcppname} -p /sbin/ldconfig +%postun -n %{libcppname} -p /sbin/ldconfig + %files %{python_files} %license Readme.markdown %{python_sitelib}/* +%files -n QR-Code-generator-devel +%{_includedir}/* +%{_libdir}/*.so + +%files -n %{libcname} +%license Readme.markdown +%{_libdir}/libqrcodegen.so.* + +%files -n %{libcppname} +%license Readme.markdown +%{_libdir}/libqrcodegencpp.so.* + %changelog