Package libgumbo: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 | %define _name gumbo-parser %def_with docs %def_with python %define soname 2 Name: libgumbo Version: 0.12.1 Release: alt1 Summary: An HTML5 parsing library License: Apache-2.0 Group: System/Libraries Url: https://codeberg.org/grisha/gumbo-parser Vcs: https://codeberg.org/grisha/gumbo-parser.git Source: %_name-%version.tar Patch: %_name-%version-%release.patch BuildRequires: gcc-c++ %{?_with_python:BuildRequires: python3-devel python3-module-setuptools} %{?!_without_check:%{?!_disable_check:BuildRequires: libgtest-devel}} %{?_with_docs:BuildRequires: doxygen} %define _unpackaged_files_terminate_build 1 %description Gumbo is an implementation of the HTML5 parsing algorithm implemented as a pure C99 library with no outside dependencies. It's designed to serve as a building block for other tools and libraries such as linters, validators, templating languages, and refactoring and analysis tools. %package -n %name%soname Summary: %summary Group: System/Libraries %description -n %name%soname Gumbo is an implementation of the HTML5 parsing algorithm implemented as a pure C99 library with no outside dependencies. It's designed to serve as a building block for other tools and libraries such as linters, validators, templating languages, and refactoring and analysis tools. %package devel Summary: Development files for %name Group: Development/C Requires: %name%soname = %version-%release %description devel This package contains libraries and header files for developing applications that use %name. %if_with docs %package devel-doc Summary: Development files for %name Group: Development/C Conflicts: %name-devel < %version BuildArch: noarch %description devel-doc This package contains development documentation for %name. %endif %if_with python %package -n python3-module-gumbo Summary: Python3 bindings to %name Group: Development/Python3 Requires: %name%soname = %version-%release BuildArch: noarch %add_python3_self_prov_path %buildroot%python3_sitelibdir_noarch %description -n python3-module-gumbo This package contains a module that permits applications written in the Python3 programming language to use the interface supplied by %name. %endif %prep %setup -n %_name-%version %patch -p1 %build # Remove python tests: # otherwise they will be installed find python/ -name '*_test.py' -delete %autoreconf %configure \ --disable-static %make_build %if_with docs doxygen Doxyfile %endif %if_with python %python3_build %endif %install %makeinstall_std %if_with docs install -m 755 -d %buildroot%_man3dir/ install -m 644 docs/man/man3/*.3 %buildroot%_man3dir/ %endif %if_with python %python3_install %endif %check make check %files -n %name%soname %_libdir/%name.so.%soname %_libdir/%name.so.%soname.* %files devel %_includedir/* %_libdir/*.so %_libdir/pkgconfig/*.pc %if_with docs %files devel-doc %doc docs/html/ doc/COPYING doc/*.md %_man3dir/* %endif %if_with python %files -n python3-module-gumbo %python3_sitelibdir_noarch/* %endif %changelog * Wed Nov 22 2023 Mikhail Efremov <sem@altlinux.org> 0.12.1-alt1 - Added Vcs tag. - Updated url tag. - Don't use rpm-build-licenses. - Updated to 0.12.1. * Sat Nov 12 2022 Daniel Zagaynov <kotopesutility@altlinux.org> 0.10.1-alt2.1 - NMU: used %%add_python3_self_prov_path macro to skip self-provides from dependencies. * Sat Aug 31 2019 Michael Shigorin <mike@altlinux.org> 0.10.1-alt2 - Fixed build without check (gcc-c++ is requisite). * Tue Jul 30 2019 Mikhail Efremov <sem@altlinux.org> 0.10.1-alt1 - Patches from Debain. - Patch from upstream. - Initial build. |