editorconfig/editorconfig.spec

144 lines
4.0 KiB
RPMSpec
Raw Normal View History

# 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
2021-06-17 20:51:47 +00:00
Version: 0.12.5
Release: 2%{?dist}
2018-05-03 13:02:50 +00:00
License: BSD
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
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)
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
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}
%{_mandir}/man1/editorconfig.1.*
%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
* 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.
* Thu Feb 04 2021 Fabio Valentini <decathorpe@gmail.com> - 0.12.4-3
- Force single-threaded build to work around race conditions.
* 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.
* 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
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* 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.
* 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.