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