代码拉取完成,页面将自动刷新
%global _smp_mflags -j1
%global srcname editorconfig-core-c
%global common_description %{expand:
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.}
Name: editorconfig
Summary: Parser for EditorConfig files written in C
Version: 0.12.6
Release: 1%{?dist}
License: BSD-2-Clause AND BSD-3-Clause AND BSD-1-Clause
URL: https://github.com/editorconfig/editorconfig-core-c
Source0: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: doxygen
BuildRequires: gcc
BuildRequires: pcre2-devel
BuildRequires: uthash-static
Requires: %{name}-libs = %{version}-%{release}
%description %common_description
%package libs
Summary: Parser library for EditorConfig files (shared library)
Provides: bundled(inih) = 0^20110627git328c3d4
%description libs %common_description
This package contains the shared library.
%package devel
Summary: Parser library for EditorConfig files (development files)
Requires: %{name}-libs = %{version}-%{release}
Requires: cmake
%description devel %common_description
This package contains the files needed for development.
%prep
%autosetup -n %{srcname}-%{version} -p1
rm -vf src/lib/utarray.h
%build
%cmake
%cmake_build
%install
%cmake_install
rm %{buildroot}/%{_libdir}/libeditorconfig_static.a
%files
%doc README.md
%license LICENSE
%{_bindir}/editorconfig
%{_bindir}/editorconfig-%{version}
%{_mandir}/man1/editorconfig.1*
%files libs
%doc README.md
%license LICENSE
%{_libdir}/libeditorconfig.so.0*
%{_mandir}/man3/editorconfig*
%{_mandir}/man5/editorconfig*
%files devel
%{_includedir}/editorconfig/
%{_libdir}/libeditorconfig.so
%{_libdir}/cmake/EditorConfig/
%{_libdir}/pkgconfig/editorconfig.pc
%changelog
* Fri Apr 12 2024 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 0.12.6-1
- initial build
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。