Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > 76e8809d7bda86be84a819ffe8fc969b > files > 3

editorconfig-core-c-0.12.6-1.mga9.src.rpm

%global _smp_build_ncpus 4

%define major     0
%define libname   %mklibname editorconfig %{major}
%define develname %mklibname editorconfig -d

Name:           editorconfig-core-c
Version:        0.12.6
Release:        %mkrel 1
Summary:        EditorConfig core library written in C
License:        BSD
Group:          System/Libraries
Url:            https://editorconfig.org/
Source:         https://github.com/editorconfig/editorconfig-core-c/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0:         editorconfig-core-c-0.12.6-no_timestamp.patch
BuildRequires:  cmake
BuildRequires:  doxygen
BuildRequires:  pkgconfig(libpcre2-posix)

%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. For information on the
file format and supported text editors, see the EditorConfig website.

#------------------------------------------------

%package -n     editorconfig
Summary:        Commandline utilities for EditorConfig
Group:          Text tools

%description -n editorconfig
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. For information on the
file format and supported text editors, see the EditorConfig website.

This package contains command line utilities.

#------------------------------------------------

%package -n     %{libname}
Summary:        EditorConfig core library written in C
Group:          System/Libraries

%description -n %{libname}
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. For information on the
file format and supported text editors, see the EditorConfig website.

This package contains library files for %{name}.

#------------------------------------------------

%package -n     %{develname}
Summary:        Development files for EditorConfig core library written in C
Group:          Development/C
Requires:       %{libname} = %{version}-%{release}
Provides:       editorconfig-devel = %{version}-%{release}
Provides:       libeditorconfig-devel = %{version}-%{release}

%description -n %{develname}
The %{develname} package contains libraries and header files for
developing applications that use %{name}.

#------------------------------------------------

%prep
%setup -q
%autopatch -p1

%build
mkdir -p build/doc/man
%cmake \
	-DLIB_SUFFIX=%{_lib} \
	-DINSTALL_HTML_DOC=ON
%cmake_build

%install
%cmake_install

# we don't want these
find %{buildroot} -name '*.a' -delete

%files -n editorconfig
%license LICENSE
%{_bindir}/editorconfig*
%{_mandir}/man1/editorconfig*
%{_mandir}/man5/editorconfig*

%files -n %{libname}
%license LICENSE
%{_libdir}/libeditorconfig.so.%{major}{,.*}

%files -n %{develname}
%doc CONTRIBUTORS README.md
%license LICENSE
%{_docdir}/editorconfig/
%{_includedir}/editorconfig/
%{_libdir}/libeditorconfig.so
%{_libdir}/cmake/EditorConfig/
%{_libdir}/pkgconfig/editorconfig.pc
%{_mandir}/man3/editorconfig*


%changelog
* Mon Feb 06 2023 daviddavid <daviddavid> 0.12.6-1.mga9
+ Revision: 1938771
- new version: 0.12.6, fixes CVE-2023-0341 (mga#31516)

* Thu Mar 24 2022 umeabot <umeabot> 0.12.5-2.mga9
+ Revision: 1824452
- Mageia 9 Mass Rebuild

* Sun Aug 08 2021 luigiwalser <luigiwalser> 0.12.5-1.mga9
+ Revision: 1740176
- 0.12.5

* Sun Aug 30 2020 daviddavid <daviddavid> 0.12.4-2.mga8
+ Revision: 1619754
- new version: 0.12.4

* Fri Feb 14 2020 umeabot <umeabot> 0.12.3-2.mga8
+ Revision: 1520251
- Mageia 8 Mass Rebuild
+ wally <wally>
- build with new cmake macros

* Sat Nov 17 2018 daviddavid <daviddavid> 0.12.3-1.mga7
+ Revision: 1330296
- new version: 0.12.3

* Sun Sep 23 2018 umeabot <umeabot> 0.12.2-2.mga7
+ Revision: 1297569
- Mageia 7 Mass Rebuild

* Sun Mar 25 2018 daviddavid <daviddavid> 0.12.2-1.mga7
+ Revision: 1212375
- new version: 0.12.2

* Wed Oct 04 2017 daviddavid <daviddavid> 0.12.1-1.mga7
+ Revision: 1168183
- initial package editorconfig-core-c