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
|
|
|
|
editors.
|
|
|
|
}
|
|
|
|
|
|
|
|
Name: editorconfig
|
|
|
|
Summary: Parser for EditorConfig files written in C
|
|
|
|
Version: 0.12.2
|
2018-05-03 14:00:03 +00:00
|
|
|
Release: 3%{?dist}
|
2018-05-03 13:02:50 +00:00
|
|
|
License: BSD
|
|
|
|
|
|
|
|
URL: https://github.com/%{name}/%{srcname}
|
|
|
|
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: pcre-devel
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%common_description
|
|
|
|
|
|
|
|
|
|
|
|
%package libs
|
|
|
|
Summary: Parser library for EditorConfig files (shared library)
|
|
|
|
%description libs
|
|
|
|
%common_description
|
|
|
|
|
|
|
|
This package contains the shared library.
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Parser library for EditorConfig files (development files)
|
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|
|
|
%description devel
|
|
|
|
%common_description
|
|
|
|
|
|
|
|
This package contains the files needed for development.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{srcname}-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
mkdir build && pushd build
|
|
|
|
%cmake ..
|
|
|
|
make
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
pushd build
|
|
|
|
%make_install
|
|
|
|
popd
|
|
|
|
|
|
|
|
# Remove static library
|
|
|
|
rm %{buildroot}/%{_libdir}/libeditorconfig_static.a
|
|
|
|
|
|
|
|
|
2018-05-03 14:00:03 +00:00
|
|
|
%ldconfig_scriptlets libs
|
2018-05-03 13:02:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%{_bindir}/editorconfig
|
|
|
|
%{_bindir}/editorconfig-%{version}
|
|
|
|
|
|
|
|
%{_mandir}/man1/editorconfig.1.*
|
|
|
|
|
|
|
|
%files libs
|
|
|
|
%doc README.md
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
%{_libdir}/libeditorconfig.so.0
|
|
|
|
%{_libdir}/libeditorconfig.so.0.12.2
|
|
|
|
|
|
|
|
%{_mandir}/man3/editorconfig*
|
|
|
|
%{_mandir}/man5/editorconfig*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/editorconfig/
|
|
|
|
|
|
|
|
%{_libdir}/libeditorconfig.so
|
|
|
|
%{_libdir}/pkgconfig/editorconfig.pc
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
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.
|
|
|
|
|