Name: editorconfig Version: 0.12.0 Release: 4%{?dist} Summary: Tools for Text Editors Group: Development/Tools License: BSD URL: http://editorconfig.org Source0: https://github.com/editorconfig/editorconfig-core-c/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: pcre-devel BuildRequires: cmake BuildRequires: doxygen Patch0: editorconfig-install.patch Patch1: editorconfig-shared-lib.patch %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 %{name}-devel Summary: C development headers for EditorConfig Group: Development/Libraries %description -n %{name}-devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %package -n %{name}-doc Summary: C development documentation for EditorConfig Group: Documentation BuildArch: noarch %description -n %{name}-doc The %{name}-doc package contains documentation for developing applications that use %{name}. %package -n %{name}-libs Summary: Shared libraries for EditorConfig Group: Development/Libraries %description -n %{name}-libs The %{name}-libs package contains libraries for developing and running applications that use %{name}. %prep %setup -q -n %{name}-core-c-%{version} %patch0 -p1 %patch1 -p1 %build %cmake -DINSTALL_HTML_DOC=ON . make %{?_smp_mflags} %install %make_install unlink $RPM_BUILD_ROOT%{_bindir}/%{name} mv $RPM_BUILD_ROOT%{_bindir}/%{name}-%{version} $RPM_BUILD_ROOT%{_bindir}/%{name} rm $RPM_BUILD_ROOT%{_libdir}/*.a %post -p /sbin/ldconfig -n %{name}-libs %postun -p /sbin/ldconfig -n %{name}-libs %files -n %{name}-devel %license LICENSE %doc README.md %{_includedir}/* %{_libdir}/*.so %files -n %{name}-doc %license LICENSE %{_defaultdocdir}/%{name}/* %files -n %{name}-libs %license LICENSE %{_libdir}/*.so.* %files %doc README.md %license LICENSE %{_bindir}/* %{_mandir}/man1/*.gz %{_mandir}/man3/*.gz %changelog * Fri Mar 25 2016 Dennis Chen 0.12.0-4 - Binary now depends on shared library. - License included with lib and docs packages - Fixed inter-dependencies * Mon Mar 14 2016 Dennis Chen 0.12.0-3 - Fix some simple packaging issues. - Make Docs build as noarch package. * Tue Jan 26 2016 Dennis Chen 0.12.0-2 - Seperate libs from core applications. * Sat Jan 16 2016 Dennis Chen 0.12.0-1 - First Fedora packaging.