6 Star 0 Fork 0

OpenCloudOS Stream/editorconfig

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
editorconfig.spec 2.12 KB
一键复制 编辑 原始数据 按行查看 历史
ocs-bot 提交于 2024-05-06 15:46 . package init
%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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/opencloudos-stream/editorconfig.git
git@gitee.com:opencloudos-stream/editorconfig.git
opencloudos-stream
editorconfig
editorconfig
master

搜索帮助