2024-03-08 01:41:14 +00:00
|
|
|
|
# do not require a standalone uthash when built as part of RHEL
|
|
|
|
|
%bcond system_uthash %[0%{?fedora} || 0%{?epel}]
|
|
|
|
|
|
2021-02-04 10:54:05 +00:00
|
|
|
|
# build process has race conditions, force single thread
|
|
|
|
|
%global _smp_mflags -j1
|
|
|
|
|
|
2018-05-03 13:02:50 +00:00
|
|
|
|
%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
|
2020-08-31 10:49:27 +00:00
|
|
|
|
editors.}
|
2018-05-03 13:02:50 +00:00
|
|
|
|
|
|
|
|
|
Name: editorconfig
|
|
|
|
|
Summary: Parser for EditorConfig files written in C
|
2024-06-19 23:33:20 +00:00
|
|
|
|
Version: 0.12.9
|
2024-10-29 15:22:20 +00:00
|
|
|
|
Release: 3%{?dist}
|
2023-01-22 13:58:05 +00:00
|
|
|
|
|
|
|
|
|
# The entire source is BSD-2-Clause, except:
|
|
|
|
|
# BSD-3-Clause: src/lib/ini.h
|
|
|
|
|
# src/lib/ini.c
|
|
|
|
|
# BSD-1-Clause: src/lib/utarray.h
|
|
|
|
|
# Additionally, the following build-system files do not contribute to the
|
|
|
|
|
# licenses of the binary RPMs:
|
|
|
|
|
# MIT: CMake_Modules/FindPCRE2.cmake
|
|
|
|
|
# The file src/lib/utarray.h is unbundled in %%prep, as part of the uthash
|
|
|
|
|
# header-only library; however, since packaging guidelines treat header-only
|
|
|
|
|
# libraries as a kind of static library, and the entire contents are still
|
|
|
|
|
# compiled into the binary RPMs, its license still contributes to the overall
|
|
|
|
|
# license of the binary RPMs.
|
|
|
|
|
License: BSD-2-Clause AND BSD-3-Clause AND BSD-1-Clause
|
2020-08-31 10:49:27 +00:00
|
|
|
|
URL: https://github.com/editorconfig/editorconfig-core-c
|
|
|
|
|
Source0: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz
|
2018-05-03 13:02:50 +00:00
|
|
|
|
|
|
|
|
|
BuildRequires: cmake
|
|
|
|
|
BuildRequires: doxygen
|
|
|
|
|
BuildRequires: gcc
|
2018-11-16 22:42:31 +00:00
|
|
|
|
BuildRequires: pcre2-devel
|
2024-03-08 01:41:14 +00:00
|
|
|
|
%if %{with system_uthash}
|
2023-01-22 13:58:05 +00:00
|
|
|
|
# Header-only library; BR on -static required by guidelines
|
|
|
|
|
BuildRequires: uthash-static
|
2024-03-08 01:41:14 +00:00
|
|
|
|
%endif
|
2018-05-03 13:02:50 +00:00
|
|
|
|
|
2020-08-31 10:49:27 +00:00
|
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
2018-05-03 13:02:50 +00:00
|
|
|
|
|
2020-08-31 10:49:27 +00:00
|
|
|
|
%description %common_description
|
2018-05-03 13:02:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package libs
|
|
|
|
|
Summary: Parser library for EditorConfig files (shared library)
|
2023-01-22 13:58:05 +00:00
|
|
|
|
|
|
|
|
|
# Files src/lib/ini.h and src/lib/ini.c are a forked copy of inih:
|
|
|
|
|
# https://src.fedoraproject.org/rpms/inih
|
|
|
|
|
# https://github.com/benhoyt/inih
|
|
|
|
|
# Since it has different hard-coded limits, among other changes from upstream,
|
|
|
|
|
# we expect that it will not be possible to unbundle it. Still, we have
|
|
|
|
|
# contacted upstream as required in
|
|
|
|
|
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#bundling
|
|
|
|
|
# via a GitHub issue:
|
|
|
|
|
# Path to using a system copy of inih?
|
|
|
|
|
# https://github.com/editorconfig/editorconfig-core-c/issues/91
|
|
|
|
|
# Upstream agreed that the bundled version has diverged too much.
|
|
|
|
|
#
|
|
|
|
|
# The files were added in commit 24cc68431848c6d53a877ff82a4ee4ce7ff67b7f on
|
|
|
|
|
# 2011-10-23; their contents at that time were an exact match for the
|
|
|
|
|
# then-latest commit in inih, 328c3d4f8ac3715fc7024af09372a479f028450f in
|
|
|
|
|
# today’s git repository. Since inih did not carry a version number, and the
|
|
|
|
|
# Google Code SVN hash at the time is lost to history, we use the git hash in
|
|
|
|
|
# the current repository to indicate the snapshot from which the bundled
|
|
|
|
|
# version was forked.
|
|
|
|
|
Provides: bundled(inih) = 0^20110627git328c3d4
|
2024-03-08 01:41:14 +00:00
|
|
|
|
%if %{without system_uthash}
|
|
|
|
|
# src/lib/utarray.h:UTARRAY_VERSION
|
|
|
|
|
Provides: bundled(uthash) = 2.1.0
|
|
|
|
|
%endif
|
2023-01-22 13:58:05 +00:00
|
|
|
|
|
2020-08-31 10:49:27 +00:00
|
|
|
|
%description libs %common_description
|
2018-05-03 13:02:50 +00:00
|
|
|
|
|
|
|
|
|
This package contains the shared library.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Parser library for EditorConfig files (development files)
|
2018-11-16 22:42:31 +00:00
|
|
|
|
|
2018-05-03 13:02:50 +00:00
|
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
2018-11-16 22:42:31 +00:00
|
|
|
|
Requires: cmake
|
|
|
|
|
|
2020-08-31 10:49:27 +00:00
|
|
|
|
%description devel %common_description
|
2018-05-03 13:02:50 +00:00
|
|
|
|
|
|
|
|
|
This package contains the files needed for development.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2020-08-31 10:49:27 +00:00
|
|
|
|
%autosetup -n %{srcname}-%{version} -p1
|
2024-03-08 01:41:14 +00:00
|
|
|
|
%if %{with system_uthash}
|
2023-01-22 13:58:05 +00:00
|
|
|
|
# Unbundle uthash
|
|
|
|
|
rm -vf src/lib/utarray.h
|
2024-03-08 01:41:14 +00:00
|
|
|
|
%endif
|
2018-05-03 13:02:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
2020-08-01 20:19:51 +00:00
|
|
|
|
%cmake
|
|
|
|
|
%cmake_build
|
2018-05-03 13:02:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
2020-08-01 20:19:51 +00:00
|
|
|
|
%cmake_install
|
2018-05-03 13:02:50 +00:00
|
|
|
|
|
|
|
|
|
# Remove static library
|
|
|
|
|
rm %{buildroot}/%{_libdir}/libeditorconfig_static.a
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
2020-08-31 10:49:27 +00:00
|
|
|
|
%doc README.md
|
|
|
|
|
%license LICENSE
|
|
|
|
|
|
2018-05-03 13:02:50 +00:00
|
|
|
|
%{_bindir}/editorconfig
|
|
|
|
|
%{_bindir}/editorconfig-%{version}
|
|
|
|
|
|
2022-10-05 17:45:12 +00:00
|
|
|
|
%{_mandir}/man1/editorconfig.1*
|
2018-05-03 13:02:50 +00:00
|
|
|
|
|
|
|
|
|
%files libs
|
|
|
|
|
%doc README.md
|
|
|
|
|
%license LICENSE
|
|
|
|
|
|
2018-11-16 22:42:31 +00:00
|
|
|
|
%{_libdir}/libeditorconfig.so.0*
|
2018-05-03 13:02:50 +00:00
|
|
|
|
|
|
|
|
|
%{_mandir}/man3/editorconfig*
|
|
|
|
|
%{_mandir}/man5/editorconfig*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%{_includedir}/editorconfig/
|
|
|
|
|
|
|
|
|
|
%{_libdir}/libeditorconfig.so
|
2018-11-16 22:42:31 +00:00
|
|
|
|
%{_libdir}/cmake/EditorConfig/
|
2018-05-03 13:02:50 +00:00
|
|
|
|
%{_libdir}/pkgconfig/editorconfig.pc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2024-10-29 15:22:20 +00:00
|
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 0.12.9-3
|
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
|
2024-06-24 15:41:08 +00:00
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.12.9-2
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
2024-06-19 23:33:20 +00:00
|
|
|
|
* Wed Jun 19 2024 Christian Hergert <chergert@redhat.com> - 0.12.9-1
|
|
|
|
|
- Update to 0.12.9
|
|
|
|
|
|
|
|
|
|
* Thu Jun 13 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 0.12.8-1
|
|
|
|
|
- Update to 0.12.8 (close RHBZ#2292212)
|
2024-06-12 20:30:00 +00:00
|
|
|
|
|
2024-05-03 19:11:53 +00:00
|
|
|
|
* Wed Apr 03 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 0.12.7-1
|
|
|
|
|
- Update to 0.12.7 (close RHBZ#2272370)
|
|
|
|
|
|
2024-03-08 01:41:14 +00:00
|
|
|
|
* Fri Mar 08 2024 Yaakov Selkowitz <yselkowi@redhat.com> - 0.12.6-5
|
|
|
|
|
- Use bundled uthash in RHEL builds
|
|
|
|
|
|
2024-01-24 10:09:09 +00:00
|
|
|
|
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.6-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
2024-01-19 17:52:51 +00:00
|
|
|
|
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.6-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
2023-07-19 18:14:54 +00:00
|
|
|
|
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.6-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
2023-01-22 14:11:05 +00:00
|
|
|
|
* Sun Jan 22 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 0.12.6-1
|
|
|
|
|
- Update to 0.12.6 (close RHBZ#2162811)
|
2023-01-22 13:58:05 +00:00
|
|
|
|
- Update License to SPDX
|
|
|
|
|
- Document and/or unbundle all bundled libraries
|
|
|
|
|
|
2023-01-19 02:07:08 +00:00
|
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.5-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
2022-07-21 01:39:02 +00:00
|
|
|
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.5-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
2022-01-20 01:38:39 +00:00
|
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.5-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
2021-07-21 21:41:03 +00:00
|
|
|
|
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.5-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
2021-06-17 20:51:47 +00:00
|
|
|
|
* Thu Jun 17 2021 Fabio Valentini <decathorpe@gmail.com> - 0.12.5-1
|
|
|
|
|
- Update to version 0.12.5.
|
|
|
|
|
|
2021-02-04 10:54:05 +00:00
|
|
|
|
* Thu Feb 04 2021 Fabio Valentini <decathorpe@gmail.com> - 0.12.4-3
|
|
|
|
|
- Force single-threaded build to work around race conditions.
|
|
|
|
|
|
2021-01-26 04:20:03 +00:00
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.4-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
2020-08-31 10:49:27 +00:00
|
|
|
|
* Mon Aug 31 2020 Fabio Valentini <decathorpe@gmail.com> - 0.12.4-1
|
|
|
|
|
- Update to version 0.12.4.
|
|
|
|
|
|
2020-08-01 20:19:51 +00:00
|
|
|
|
* Sat Aug 01 2020 Fabio Valentini <decathorpe@gmail.com> - 0.12.3-7
|
|
|
|
|
- Adapt to new cmake macros.
|
|
|
|
|
|
2020-08-01 00:43:48 +00:00
|
|
|
|
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.3-6
|
|
|
|
|
- Second attempt - Rebuilt for
|
|
|
|
|
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
2020-07-27 16:19:04 +00:00
|
|
|
|
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.3-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
2020-01-28 17:00:17 +00:00
|
|
|
|
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.3-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
2019-07-24 23:12:39 +00:00
|
|
|
|
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.3-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
2019-01-31 18:22:45 +00:00
|
|
|
|
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.3-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
2018-11-16 22:42:31 +00:00
|
|
|
|
* Fri Nov 16 2018 Fabio Valentini <decathorpe@gmail.com> - 0.12.3-1
|
|
|
|
|
- Update to version 0.12.3.
|
|
|
|
|
|
2018-07-12 23:41:08 +00:00
|
|
|
|
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.2-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
2018-05-03 14:00:03 +00:00
|
|
|
|
* Thu May 03 2018 Fabio Valentini <decathorpe@gmail.com> - 0.12.2-3
|
|
|
|
|
- Fix broken ldconfig_scriptlets use.
|
|
|
|
|
|
2018-05-03 13:02:50 +00:00
|
|
|
|
* Wed May 02 2018 Fabio Valentini <decathorpe@gmail.com> - 0.12.2-2
|
|
|
|
|
- Use single-job make for building.
|
|
|
|
|
- Added missing ldconfig scriptlets.
|
|
|
|
|
- Rewritten summaries.
|
|
|
|
|
|
|
|
|
|
* Thu Mar 22 2018 Fabio Valentini <decathorpe@gmail.com> - 0.12.2-1
|
|
|
|
|
- Initial package.
|
|
|
|
|
|