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
%def_enable docs Name: editorconfig Version: 0.12.5 Release: alt1 Summary: Parser for EditorConfig files written in C Group: Development/Other License: BSD-2-Clause Url: https://%name.org %define srcname %name-core-c #VCS: https://github.com/%name/%srcname Source: https://github.com/%name/%srcname/archive/v%version/%srcname-%version.tar.gz Requires: lib%name = %EVR BuildRequires(pre): cmake >= 3.5.1 BuildRequires: gcc-c++ libpcre2-devel %{?_enable_docs:BuildRequires: doxygen} %description EditorConfig makes it easy to maintain the correct coding style when switching between different text editors and between different projects. The EditorConfig project maintains a file format and plugins for various text editors which allow this file format to be read and used by those editors. %package -n lib%name Summary: EditorConfig shared library Group: System/Libraries %description -n lib%name EditorConfig makes it easy to maintain the correct coding style when switching between different text editors and between different projects. The EditorConfig project maintains a file format and plugins for various text editors which allow this file format to be read and used by those editors. This package contains shared EditorConfig library. %package -n lib%name-devel Summary: Development files for EditorConfig library Group: Development/C Requires: lib%name = %EVR %description -n lib%name-devel EditorConfig makes it easy to maintain the correct coding style when switching between different text editors and between different projects. The EditorConfig project maintains a file format and plugins for various text editors which allow this file format to be read and used by those editors. This package contains files needed for development EditorConfig plugins. %prep %setup -n %srcname-%version %build %add_optflags %(getconf LFS_CFLAGS) %cmake %{?_disable_docs:-DBUILD_DOCUMENTATION=OFF} %install %cmakeinstall_std %files %_bindir/%name %_bindir/%name-%version %{?_enable_docs:%_man1dir/%name.1.*} %{?_enable_docs:%_man5dir/%{name}*} %doc CHANGELOG README.md LICENSE %files -n lib%name %_libdir/lib%name.so.0* %exclude %_libdir/*.a %files -n lib%name-devel %_includedir/%name/ %_libdir/lib%name.so %_libdir/cmake/EditorConfig/ %_pkgconfigdir/%name.pc %{?_enable_docs:%_man3dir/%{name}*} %changelog * Sun Jun 20 2021 Yuri N. Sedunov <aris@altlinux.org> 0.12.5-alt1 - 0.12.5 * Sun Aug 30 2020 Yuri N. Sedunov <aris@altlinux.org> 0.12.4-alt1 - 0.12.4 - fixed License tag * Thu Jun 13 2019 Yuri N. Sedunov <aris@altlinux.org> 0.12.3-alt1.1 - fixed build if "docs" disabled * Thu Jan 03 2019 Yuri N. Sedunov <aris@altlinux.org> 0.12.3-alt1 - first build for Sisyphus