Blame elementary-code.spec

d0f5a20
%global srcname code
d0f5a20
%global appname io.elementary.code
d0f5a20
d0f5a20
%global __provides_exclude_from ^%{_libdir}/%{appname}/.*\\.so$
d0f5a20
d0f5a20
%global commit      df6691cb74d2a96fb58f25601aa59d6b84057c59
d0f5a20
%global shortcommit %(c=%{commit}; echo ${c:0:7})
d0f5a20
%global commitdate  20180825
d0f5a20
d0f5a20
Name:           elementary-code
d0f5a20
Summary:        Code editor from elementary
d0f5a20
Version:        2.4.1
d0f5a20
Release:        13.%{commitdate}.git%{shortcommit}%{?dist}
d0f5a20
License:        GPLv3
d0f5a20
d0f5a20
URL:            https://github.com/elementary/%{srcname}
d0f5a20
Source0:        %{url}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
d0f5a20
d0f5a20
BuildRequires:  desktop-file-utils
d0f5a20
BuildRequires:  gettext
d0f5a20
BuildRequires:  libappstream-glib
d0f5a20
BuildRequires:  meson
d0f5a20
BuildRequires:  vala
d0f5a20
BuildRequires:  vala-devel
d0f5a20
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
d0f5a20
BuildRequires:  pkgconfig(granite)
d0f5a20
BuildRequires:  pkgconfig(gtksourceview-3.0) >= 3.24
d0f5a20
BuildRequires:  pkgconfig(gtkspell3-3.0)
d0f5a20
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.6.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
BuildRequires:  pkgconfig(webkit2gtk-4.0)
d0f5a20
BuildRequires:  pkgconfig(zeitgeist-2.0)
d0f5a20
d0f5a20
Requires:       hicolor-icon-theme
d0f5a20
d0f5a20
Provides:       scratch-text-editor = %{version}-%{release}
d0f5a20
Obsoletes:      scratch-text-editor < 2.4.1-13.20180825.gitdf6691c
d0f5a20
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
d0f5a20
%autosetup -n %{srcname}-%{commit} -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
d0f5a20
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
d0f5a20
* Tue Aug 28 2018 Fabio Valentini <decathorpe@gmail.com> - 2.4.1-13.20180825.gitdf6691c
d0f5a20
- Initial package renamed from scratch-text-editor.
d0f5a20