d0f5a20
%global srcname code
d0f5a20
%global appname io.elementary.code
d0f5a20
d0f5a20
%global __provides_exclude_from ^%{_libdir}/%{appname}/.*\\.so$
d0f5a20
d0f5a20
Name:           elementary-code
d0f5a20
Summary:        Code editor from elementary
a502ba4
Version:        6.2.0
cea7ae0
Release:        %autorelease
d0f5a20
License:        GPLv3
d0f5a20
d0f5a20
URL:            https://github.com/elementary/%{srcname}
cea7ae0
Source0:        %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz
d0f5a20
d0f5a20
BuildRequires:  desktop-file-utils
d0f5a20
BuildRequires:  gettext
d0f5a20
BuildRequires:  libappstream-glib
d0f5a20
BuildRequires:  meson
d0f5a20
BuildRequires:  vala
d0f5a20
cea7ae0
BuildRequires:  polkit-devel
d49c7f9
# keep in sync with the available version of vala
d49c7f9
BuildRequires:  pkgconfig(libvala-0.48)
cea7ae0
d0f5a20
BuildRequires:  pkgconfig(editorconfig)
d0f5a20
BuildRequires:  pkgconfig(fontconfig)
d0f5a20
BuildRequires:  pkgconfig(gee-0.8) >= 0.8.5
d0f5a20
BuildRequires:  pkgconfig(gio-unix-2.0) >= 2.20
d0f5a20
BuildRequires:  pkgconfig(glib-2.0) >= 2.30.0
ef9dfc9
BuildRequires:  pkgconfig(granite) >= 6.0.0
ef9dfc9
BuildRequires:  pkgconfig(gtksourceview-4)
d0f5a20
BuildRequires:  pkgconfig(gtkspell3-3.0)
d0f5a20
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.6.0
28ed2a6
BuildRequires:  pkgconfig(libgit2-glib-1.0)
cea7ae0
BuildRequires:  pkgconfig(libhandy-1) >= 0.90.0
d0f5a20
BuildRequires:  pkgconfig(libpeas-1.0)
d0f5a20
BuildRequires:  pkgconfig(libpeas-gtk-1.0)
d0f5a20
BuildRequires:  pkgconfig(libsoup-2.4)
d0f5a20
BuildRequires:  pkgconfig(pangoft2)
d0f5a20
BuildRequires:  pkgconfig(vte-2.91)
d0f5a20
d0f5a20
Requires:       hicolor-icon-theme
d0f5a20
d0f5a20
%description
d0f5a20
%{summary}.
d0f5a20
d0f5a20
d0f5a20
%package        devel
d0f5a20
Summary:        The text editor that works (development files)
d0f5a20
Requires:       %{name}%{?_isa} = %{version}-%{release}
d0f5a20
%description    devel
d0f5a20
%{summary}.
d0f5a20
d0f5a20
This package contains the development headers.
d0f5a20
d0f5a20
d0f5a20
%prep
cea7ae0
%autosetup -n %{srcname}-%{version} -p1
d0f5a20
d0f5a20
d0f5a20
%build
d0f5a20
%meson
d0f5a20
%meson_build
d0f5a20
d0f5a20
d0f5a20
%install
d0f5a20
%meson_install
d0f5a20
d0f5a20
%find_lang %{appname}
d0f5a20
d0f5a20
d0f5a20
%check
d0f5a20
desktop-file-validate \
d0f5a20
    %{buildroot}/%{_datadir}/applications/%{appname}.desktop
d0f5a20
d0f5a20
appstream-util validate-relax --nonet \
d0f5a20
    %{buildroot}/%{_datadir}/metainfo/%{appname}.appdata.xml
d0f5a20
d0f5a20
d0f5a20
%files -f %{appname}.lang
d0f5a20
%doc README.md
d0f5a20
%license COPYING
d0f5a20
d0f5a20
%{_bindir}/%{appname}
d0f5a20
d0f5a20
%{_libdir}/%{appname}/
d0f5a20
%{_libdir}/libcodecore.so.0
d0f5a20
%{_libdir}/libcodecore.so.0.0
d0f5a20
d0f5a20
%{_datadir}/applications/%{appname}.desktop
d0f5a20
%{_datadir}/glib-2.0/schemas/%{appname}*.gschema.xml
d0f5a20
%{_datadir}/icons/hicolor/*/apps/%{appname}.svg
d0f5a20
%{_datadir}/%{appname}/
d0f5a20
%{_datadir}/metainfo/%{appname}.appdata.xml
cea7ae0
%{_datadir}/polkit-1/actions/%{appname}.policy
d0f5a20
d0f5a20
%files devel
d0f5a20
%{_includedir}/codecore.h
d0f5a20
d0f5a20
%{_libdir}/libcodecore.so
d0f5a20
%{_libdir}/pkgconfig/codecore.pc
d0f5a20
d0f5a20
%{_datadir}/vala/vapi/codecore.deps
d0f5a20
%{_datadir}/vala/vapi/codecore.vapi
d0f5a20
d0f5a20
d0f5a20
%changelog
34e83cf
%autochangelog