Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
X11:Pantheon
elementary-code
elementary-code.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File elementary-code.spec of Package elementary-code
# # spec file for package elementary-code # # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %global __provides_exclude_from ^%{_libdir}/.*/plugins/.*\\.so$ %define soname libcodecore %define sover 0 Name: elementary-code Version: 3.1.1 Release: 0 Summary: Extensible Text Editor for Elementary OS License: GPL-3.0-or-later Group: Productivity/Text/Editors URL: https://elementary.io/ Source: https://github.com/elementary/code/archive/%{version}.tar.gz#/code-%{version}.tar.gz BuildRequires: AppStream BuildRequires: ctags BuildRequires: fdupes BuildRequires: libeditorconfig-devel BuildRequires: libvala-devel >= 0.40.4 BuildRequires: libxml2-tools BuildRequires: meson >= 0.40.0 BuildRequires: pkgconfig BuildRequires: update-desktop-files BuildRequires: pkgconfig(gee-0.8) BuildRequires: pkgconfig(gio-2.0) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gobject-2.0) BuildRequires: pkgconfig(granite) >= 0.3.0 BuildRequires: pkgconfig(gthread-2.0) BuildRequires: pkgconfig(gtk+-3.0) >= 3.10 BuildRequires: pkgconfig(gtksourceview-3.0) >= 3.14 BuildRequires: pkgconfig(gtkspell3-3.0) BuildRequires: pkgconfig(libdevhelp-3.0) BuildRequires: pkgconfig(libgit2-glib-1.0) BuildRequires: pkgconfig(libpeas-1.0) BuildRequires: pkgconfig(libpeas-gtk-1.0) BuildRequires: pkgconfig(libsoup-2.4) BuildRequires: pkgconfig(vapigen) >= 0.40.0 BuildRequires: pkgconfig(webkit2gtk-4.0) >= 2.10 BuildRequires: pkgconfig(zeitgeist-2.0) Requires: %{soname}%{sover} = %{version} Recommends: %{name}-plugins Recommends: %{name}-lang Recommends: contractor Recommends: ctags Recommends: zeitgeist Provides: scratch = %{version} Obsoletes: scratch < %{version} %if 0%{?suse_version} > 1320 || 0%{?sle_version} >= 120000 BuildRequires: pkgconfig(vte-2.91) %else BuildRequires: pkgconfig(vte-2.90) %endif %description Scratch is a GTK+-based text editor designed for Elementary OS. It auto-saves files, and can remembers tabs and cursor positions. You can install extensions to turn Scratch into a full-blown IDE, as well as tweak the behaviour and interface to your liking. It has highlighting for many programming, scripting and markup languages. %package -n %{soname}%{sover} Summary: Scratch Library Group: System/Libraries Provides: libscratchcore%{sover} = %{version} Obsoletes: libscratchcore%{sover} < %{version} %description -n %{soname}%{sover} Extensible Text Editor for Elementary OS. This package contains the shared library. %package plugins Summary: A collection of plugins for %{name} Group: Productivity/Multimedia/Sound/Players Requires: %{name} = %{version} %description plugins Extensible Text Editor for Elementary OS. This package contains a collection of plugins: Contractor, Folder-Manager, Outline, Pastebin and etc. %package devel Summary: Development Files for Scratch Group: Development/Libraries/C and C++ Requires: %{name} = %{version} Requires: %{soname}%{sover} = %{version} Recommends: pkgconfig(vapigen) Provides: scratch-devel = %{version} Obsoletes: scratch-devel < %{version} %description devel Extensible Text Editor for Elementary OS. This package contains development files needed to develop plugins for for Scratch. %lang_package %prep %setup -q -n code-%{version} %build %meson %meson_build %install %meson_install %suse_update_desktop_file io.elementary.code %find_lang io.elementary.code %{name}.lang %fdupes %{buildroot}%{_datadir} # dirlist HiDPI icons (see: hicolor/index.theme) _dirlist=$PWD/dir.lst pushd %{buildroot} find ./ | while read _list; do echo $_list | grep '[0-9]\@[0-9]' || continue _path=$(echo $_list | sed 's/[^/]//') if ! ls ${_path%/*}; then grep -xqs "\%dir\ ${_path%/*}" $_dirlist || echo "%dir ${_path%/*}" >> $_dirlist fi done popd %post -n %{soname}%{sover} -p /sbin/ldconfig %postun -n %{soname}%{sover} -p /sbin/ldconfig %files -f dir.lst %license COPYING %{_bindir}/io.elementary.code %{_datadir}/applications/io.elementary.code.desktop %{_datadir}/glib-2.0/schemas/io.elementary.code.*.xml %{_datadir}/icons/hicolor/*/apps/io.elementary.code.??g %{_datadir}/metainfo/io.elementary.code.appdata.xml %{_datadir}/io.elementary.code/ %dir %{_libdir}/io.elementary.code %files plugins %{_libdir}/io.elementary.code/plugins/ %files -n %{soname}%{sover} %{_libdir}/%{soname}.so.* %files devel %{_includedir}/codecore.h %{_libdir}/%{soname}.so %{_libdir}/pkgconfig/codecore.pc %{_datadir}/vala/vapi/codecore.deps %{_datadir}/vala/vapi/codecore.vapi %files lang -f %{name}.lang %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor