Репозиторий Sisyphus
Последнее обновление: 4 декабря 2020 | Пакетов: 17763 | Посещений: 19756655
en ru br
Репозитории ALT

Группа :: Редакторы
Пакет: xed

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define _libexecdir %_prefix/libexec

%define api_ver 3.0

Name: xed
Version: 2.2.0
Release: alt2

Summary: xed is a small and lightweight text editor.
License: GPLv2
Group: Editors
Url: https://github.com/linuxmint/xed

Source: %name-%version.tar
Patch: %name-%version-%release.patch

%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}

Provides: typelib(Xed)

BuildPreReq: rpm-build-gnome
BuildPreReq: 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: libgtksourceview3-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: libgtksourceview3-gir-devel
BuildRequires: libgspell-devel
BuildRequires: libxapps-devel

%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
%patch -p1

%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/*
%dir %pkglibdir
%dir %pluginsdir
%pluginsdir/*
%_libdir/%name

%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 AUTHORS NEWS

%files devel
%_includedir/*
%_pkgconfigdir/*

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin