Группа :: Редакторы
Пакет: xed
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define _libexecdir %_prefix/libexec
%define api_ver 3.0
Name: xed
Version: 3.4.3
Release: alt1
Summary: xed is a small and lightweight text editor.
License: GPLv2
Group: Editors
Url: https://github.com/linuxmint/xed
Source: %name-%version.tar
%define pkglibdir %_libdir/%name
%define pkgdatadir %_datadir/%name
%define pluginsdir %_libdir/%name/plugins
Requires: %name-data = %version-%release
Requires: dconf gnome-icon-theme gvfs zenity
%{?_enable_zeitgeist:Requires: zeitgeist}
Requires: xapps-icons
Provides: typelib(Xed)
BuildRequires(pre): rpm-build-gnome
BuildRequires(pre): rpm-build-python3
BuildPreReq: intltool
BuildRequires: yelp-tools xmllint itstool
BuildPreReq: gtk-doc
BuildPreReq: desktop-file-utils
BuildPreReq: libenchant-devel
BuildPreReq: iso-codes-devel
BuildPreReq: libgio-devel
BuildPreReq: libgtk+3-devel
BuildPreReq: libgtksourceview4-devel
BuildRequires: meson
BuildRequires: libattr-devel gnome-common libxml2-devel libsoup-devel gsettings-desktop-schemas-devel
BuildRequires: libSM-devel
BuildRequires: libpeas-devel
BuildRequires: python3-dev
BuildRequires: libgtk+3-gir-devel
BuildRequires: libgtksourceview4-gir-devel
BuildRequires: libgspell-devel
BuildRequires: libxapps-devel
%add_python3_path %pluginsdir
%description
xed is a small and lightweight text editor.
xed supports most standard editing features, plus several not found in your
average text editor (plugins being the most notable of these).
%package data
Summary: Arch independent files for xed
Group: Editors
BuildArch: noarch
%description data
This package provides noarch data needed for xed to work.
%package devel
Group: Development/C
Summary: Libraries needed to develop plugins for xed
Requires: %name = %version-%release
Requires: libgtksourceview-devel
%description devel
Libraries needed to develop plugins for xed.
%prep
%setup
%build
%meson
%meson_build
%install
%meson_install
# additional mime types
desktop-file-install --dir %buildroot%_desktopdir \
--add-mime-type=text/css \
--add-mime-type=text/csv \
--add-mime-type=text/english \
--add-mime-type=text/plain \
--add-mime-type=text/tab-separated-values \
--add-mime-type=text/x-adasrc \
--add-mime-type=text/x-bibtex \
--add-mime-type=text/x-c++ \
--add-mime-type=text/x-chdr \
--add-mime-type=text/x-c++hdr \
--add-mime-type=text/x-csharp \
--add-mime-type=text/x-csrc \
--add-mime-type=text/x-c++src \
--add-mime-type=text/x-dsrc \
--add-mime-type=text/x-fortran \
--add-mime-type=text/x-gle \
--add-mime-type=text/x-java \
--add-mime-type=text/x-javascript \
--add-mime-type=text/x-log \
--add-mime-type=text/x-makefile \
--add-mime-type=text/x-objcsrc \
--add-mime-type=text/x-pascal \
--add-mime-type=text/x-patch \
--add-mime-type=text/x-perl \
--add-mime-type=text/x-php \
--add-mime-type=text/x-python \
--add-mime-type=text/x-sql \
--add-mime-type=text/x-sh \
--add-mime-type=text/x-tcl \
--add-mime-type=text/x-tex \
%buildroot%_desktopdir/%name.desktop
rm -f %buildroot%_libdir/%name/*.la
%find_lang --with-gnome %name
%files
%_bindir/*
%pkglibdir
%files data -f %name.lang
%pkgdatadir/
%_desktopdir/%name.desktop
%_mandir/man?/*
%config %_datadir/glib-2.0/schemas/*
%_datadir/metainfo/%name.appdata.xml
%_datadir/dbus-1/services/org.x.editor.*service
%doc README.md AUTHORS
# All xed python modules are intended for internal usage only
%filter_from_provides /python3/d
%files devel
%_includedir/*
%_pkgconfigdir/*
%changelog
…
Полный changelog можно просмотреть здесь
%define api_ver 3.0
Name: xed
Version: 3.4.3
Release: alt1
Summary: xed is a small and lightweight text editor.
License: GPLv2
Group: Editors
Url: https://github.com/linuxmint/xed
Source: %name-%version.tar
%define pkglibdir %_libdir/%name
%define pkgdatadir %_datadir/%name
%define pluginsdir %_libdir/%name/plugins
Requires: %name-data = %version-%release
Requires: dconf gnome-icon-theme gvfs zenity
%{?_enable_zeitgeist:Requires: zeitgeist}
Requires: xapps-icons
Provides: typelib(Xed)
BuildRequires(pre): rpm-build-gnome
BuildRequires(pre): rpm-build-python3
BuildPreReq: intltool
BuildRequires: yelp-tools xmllint itstool
BuildPreReq: gtk-doc
BuildPreReq: desktop-file-utils
BuildPreReq: libenchant-devel
BuildPreReq: iso-codes-devel
BuildPreReq: libgio-devel
BuildPreReq: libgtk+3-devel
BuildPreReq: libgtksourceview4-devel
BuildRequires: meson
BuildRequires: libattr-devel gnome-common libxml2-devel libsoup-devel gsettings-desktop-schemas-devel
BuildRequires: libSM-devel
BuildRequires: libpeas-devel
BuildRequires: python3-dev
BuildRequires: libgtk+3-gir-devel
BuildRequires: libgtksourceview4-gir-devel
BuildRequires: libgspell-devel
BuildRequires: libxapps-devel
%add_python3_path %pluginsdir
%description
xed is a small and lightweight text editor.
xed supports most standard editing features, plus several not found in your
average text editor (plugins being the most notable of these).
%package data
Summary: Arch independent files for xed
Group: Editors
BuildArch: noarch
%description data
This package provides noarch data needed for xed to work.
%package devel
Group: Development/C
Summary: Libraries needed to develop plugins for xed
Requires: %name = %version-%release
Requires: libgtksourceview-devel
%description devel
Libraries needed to develop plugins for xed.
%prep
%setup
%build
%meson
%meson_build
%install
%meson_install
# additional mime types
desktop-file-install --dir %buildroot%_desktopdir \
--add-mime-type=text/css \
--add-mime-type=text/csv \
--add-mime-type=text/english \
--add-mime-type=text/plain \
--add-mime-type=text/tab-separated-values \
--add-mime-type=text/x-adasrc \
--add-mime-type=text/x-bibtex \
--add-mime-type=text/x-c++ \
--add-mime-type=text/x-chdr \
--add-mime-type=text/x-c++hdr \
--add-mime-type=text/x-csharp \
--add-mime-type=text/x-csrc \
--add-mime-type=text/x-c++src \
--add-mime-type=text/x-dsrc \
--add-mime-type=text/x-fortran \
--add-mime-type=text/x-gle \
--add-mime-type=text/x-java \
--add-mime-type=text/x-javascript \
--add-mime-type=text/x-log \
--add-mime-type=text/x-makefile \
--add-mime-type=text/x-objcsrc \
--add-mime-type=text/x-pascal \
--add-mime-type=text/x-patch \
--add-mime-type=text/x-perl \
--add-mime-type=text/x-php \
--add-mime-type=text/x-python \
--add-mime-type=text/x-sql \
--add-mime-type=text/x-sh \
--add-mime-type=text/x-tcl \
--add-mime-type=text/x-tex \
%buildroot%_desktopdir/%name.desktop
rm -f %buildroot%_libdir/%name/*.la
%find_lang --with-gnome %name
%files
%_bindir/*
%pkglibdir
%files data -f %name.lang
%pkgdatadir/
%_desktopdir/%name.desktop
%_mandir/man?/*
%config %_datadir/glib-2.0/schemas/*
%_datadir/metainfo/%name.appdata.xml
%_datadir/dbus-1/services/org.x.editor.*service
%doc README.md AUTHORS
# All xed python modules are intended for internal usage only
%filter_from_provides /python3/d
%files devel
%_includedir/*
%_pkgconfigdir/*
%changelog
…
Полный changelog можно просмотреть здесь