Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Linux Tools Project/SpecfileEditor/User Guide

< Linux Tools Project
Revision as of 22:57, 15 June 2009 by Unnamed Poltroon (Talk) (Installing)

Overview

The Specfile Editor Plug-in for Eclipse provides useful features to help developers manage .spec files. This plug-in allows users to leverage several Eclipse GUI features in editing .spec files, including outline/quick outline view in the editor, auto-completion, highlighting, file hyperlinks, and folding.

In addition, the Specfile Editor Plug-in also integrates the rpmlint tool into the Eclipse interface. rpmlint is a command-line tool that helps developers detect common RPM package errors. The richer visualization offered by the Eclipse interface helps developers quickly detect, view, and correct mistakes reported by rpmlint.

Installing

In order for the Specfile Editor Plug-in for Eclipse to work, you should have the rpmlint package installed.

Once the rpmlint package is installed, the easiest way to install the Valgrind plug-in for Eclipse is through the Software Updates and Add-ons menu. For information on how to use this menu, refer to [1].

Customizing Editor Settings

Spec file editor should be completely working without any tweaking of the settings but doing it you should be able to save even more time.

Changelog settings

Simple properties allowing customizing the generated ChangeLog entries (Ctrl+Alt+C).

Specfile settings changelog.png

Note: Be sure to set the Author name and Author email in ChangeLog plugin preferences so they get properly generated.

Rpmlint settings

This page is really useful when you have rpmlint installed in place different from the default (/usr/bin). The ability to set custom rpmlint is especially useful during development of quick-fixes or rpmlint itself. Another option on this page is whether warnings should be shown for space usage or for tabs usage, when they are used in a mixed mode in the spec file.

Specfile settings rpmlint.png

Tasks settings

This page provides the ability to select the task tags to be used when searching for tasks. Task tags are looked only in comments. When a task tag is found it is added to the Tasks view and a marker in the editor is created. Task tags used by default are TODO and FIXME. Users have the power to define their own Task tags by just pressing the New button and entering the new tag (e.g. REMOVE).

Specfile settings tasks.png

Templates settings

A list of predefined/generic templates to speed up creation various fragments of the specfile in the editor. Provided features match the templates functionality provided by Java editor.

Specfile settings templates.png

The user can manipulate the list by:

   * Adding new template
   * Editing existing template
   * Deleting existing template
   * Import a list of templates
   * Export the list of templates for future usage on another machine or for providing default templates for your team

Macros settings

Properly setting up macros locations is a crucial part for the editor to work properly. Having all the macros path configures enables the editor to properly highlight, autocomplete and showing hover for all the available macros.

Macros location

The path used for looking for macros can be formed by either single files or a directory. When a directory is added to the path all files in it are read and macros from them added to the list of available macros.

Specfile settings macros.png

Macros preview

This setting controls how to present macros value in hovers in case they contain another macros in their value. To distinguish the options look at the following hovers:

Specfile macros description.pngSpecfile macros content.png

Packages settings

Generic Packages Settings

Using distribution specific tools enhances auto-completion for packages with not only installed rpm files but also with the packages available in the online repositories. Support is there for YUM and URPMI tools. Users of other tools should contact us to find a way for adding support for them. If none of the distribution tools is selected packages auto completion will contains only the installed packages.

Specfile settings rpms generic.png

Additional settings are the frequency of refreshing packages list and the file to store the package list.

Package details

These are just visualization tweaking options like the number of packages to show details for and what RPM tags should the hover contains.

Specfile settings rpms details.png

Back to the top