Bug 784608 - Review Request: kdevelop-custom-buildsystem - Support for custom buildsystem in KDevelop
Summary: Review Request: kdevelop-custom-buildsystem - Support for custom buildsystem ...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Gregor Tätzner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: kde-reviews
TreeView+ depends on / blocked
 
Reported: 2012-01-25 14:55 UTC by Radek Novacek
Modified: 2016-12-01 00:30 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-07-26 12:22:59 UTC
Type: ---
Embargoed:
gregor: fedora-review+
gwync: fedora-cvs+


Attachments (Terms of Use)

Description Radek Novacek 2012-01-25 14:55:57 UTC
Spec URL: http://rnovacek.fedorapeople.org/kdevelop-custom-buildsystem.spec
SRPM URL: http://rnovacek.fedorapeople.org/kdevelop-custom-buildsystem-1.2.1-1.fc16.src.rpm
Description: 
This plugin allows to handle arbitrary custom buildsystems with KDevelop.

It supports setting up commands and arguments to build, configure, clean,
'dist-clean' and install the project, so that KDevelop's actions work as
expected.

Comment 1 Volker Fröhlich 2012-02-13 22:36:49 UTC
rm -rf $RPM_BUILD_ROOT is no longer necessary.

This package will only build on F17 and up, looking at the version requirements. You don't need to state a version for kdelibs-devel, since it is newer than 4.5 for any version of Fedora.

Can you make use of the tests?

Desktop files must be validated, please see:

http://fedoraproject.org/wiki/Packaging:Guidelines#desktop-file-install_usage

And for the sake of beauty, there's an empty line at the very bottom. ;)

Comment 2 Kevin Kofler 2012-02-13 23:00:39 UTC
Given the path they're installed to, those .desktop files will only ever be read by kdelibs, so they need to be valid only for kdelibs.

Comment 3 Radek Novacek 2012-02-22 13:09:40 UTC
Spec URL: http://rnovacek.fedorapeople.org/kdevelop-custom-buildsystem.spec
SRPM URL: http://rnovacek.fedorapeople.org/kdevelop-custom-buildsystem-1.2.1-2.fc16.src.rpm

* Wed Feb 15 2012 Radek Novacek <rnovacek> 1.2.1-2
- Remove unnecessary buildroot clean
- Remove dep version on kdelibs
- Validate desktop files

Both desktop files are valid, so I added the checking even if it's not necessary.

The tests can't be ran during the build of the package, because they require X server to be running (they creates QApplication).

Comment 4 nucleo 2012-03-08 03:09:17 UTC
.desktop files have Type=Service, no Categories there but link to desktop-entry-spec in guidelines points to Type=Application,Link and Directory
http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html

So, running desktop-file-validate not required. It is needed for .desktop files installed in %{_datadir}/applications.

Comment 5 Gregor Tätzner 2012-04-07 11:22:41 UTC
The source url is not valid any more. Can you update it?

Comment 6 Radek Novacek 2012-04-13 11:27:19 UTC
Spec URL: http://rnovacek.fedorapeople.org/kdevelop-custom-buildsystem.spec
SRPM URL: http://rnovacek.fedorapeople.org/kdevelop-custom-buildsystem-1.2.1-3.fc17.src.rpm


* Fri Apr 13 2012 Radek Novacek <rnovacek> 1.2.1-3
- Update source url to match stable release
- Require stable version kdevelop 4.3.0

Scratch build: http://koji.fedoraproject.org/koji/taskinfo?taskID=3987507

Comment 7 Gregor Tätzner 2012-04-13 20:33:17 UTC
 - please use global instead of define at the top
http://fedoraproject.org/wiki/Packaging/Guidelines#.25global_preferred_over_.25define

and more important: How does this plugin work, actually? I can't see anything (besides cmake, make) in the project configuration. I'm on f16 kdevelop 4.3 kde 4.8.2

Comment 8 Gregor Tätzner 2012-07-21 08:09:54 UTC
@Radek Are you still interested in this package?

Comment 9 Radek Novacek 2012-07-23 06:57:12 UTC
Sorry, I forgot about this review completely. Yes, I'm interested, let's finish it.

Spec URL: http://rnovacek.fedorapeople.org/kdevelop-custom-buildsystem.spec
SRPM URL: http://rnovacek.fedorapeople.org/kdevelop-custom-buildsystem-1.2.1-4.fc17.src.rpm

How does this plugin work:

When you are opening directory as a project, you can choose "Custom BuildSystem" as a build system. Then in project configuration you can specify which command will be executed in which phase (build, configure, install, clean, prune) and manually specify includes/imports.

Comment 10 Gregor Tätzner 2012-07-26 07:23:35 UTC
Package Review
==============

Key:
- = N/A
x = Pass
! = Fail
? = Not evaluated



==== C/C++ ====
[x]: MUST Header files in -devel subpackage, if present.
[x]: MUST Package does not contain any libtool archives (.la)
[x]: MUST Package does not contain kernel modules.
[x]: MUST Package contains no static executables.
[x]: MUST Rpath absent or only used for internal libs.
[x]: MUST Development (unversioned) .so files in -devel subpackage, if
     present.
     Note: Unversioned so-files in non-devel package (fix or explain
     ):kdevelop-custom-buildsystem-1.2.1-4.fc17.x86_64.rpm :
     /usr/lib64/kde4/kcm_kdevcustombuildsystem.so kdevelop-custom-
     buildsystem-1.2.1-4.fc17.x86_64.rpm :
     /usr/lib64/kde4/kdevcustombuildsystem.so


==== Generic ====
[x]: EXTRA Rpmlint is run on all installed packages.
     Note: No rpmlint messages.
[x]: EXTRA Spec file according to URL is the same as in SRPM.
[x]: MUST Package is licensed with an open-source compatible license and meets
     other legal requirements as defined in the legal section of Packaging
     Guidelines.
[x]: MUST Package successfully compiles and builds into binary rpms on at
     least one supported primary architecture.
[x]: MUST %build honors applicable compiler flags or justifies otherwise.
[x]: MUST All build dependencies are listed in BuildRequires, except for any
     that are listed in the exceptions section of Packaging Guidelines.
[x]: MUST Buildroot is not present
     Note: Unless packager wants to package for EPEL5 this is fine
[x]: MUST Package contains no bundled libraries.
[x]: MUST Changelog in prescribed format.
[x]: MUST Package has no %clean section with rm -rf %{buildroot} (or
     $RPM_BUILD_ROOT)
     Note: Clean would be needed if support for EPEL is required
[x]: MUST Sources contain only permissible code or content.
[x]: MUST Each %files section contains %defattr if rpm < 4.4
     Note: Note: defattr macros not found. They would be needed for EPEL5
[x]: MUST Macros in Summary, %description expandable at SRPM build time.
[x]: MUST Package contains desktop file if it is a GUI application.
[x]: MUST Package installs a %{name}.desktop using desktop-file-install if
     there is such a file.
[-]: MUST Development files must be in a -devel package
[x]: MUST Package requires other packages for directories it uses.
[x]: MUST Package uses nothing in %doc for runtime.
[x]: MUST Package is not known to require ExcludeArch.
[x]: MUST Permissions on files are set properly.
[x]: MUST Package does not contain duplicates in %files.
[x]: MUST Package complies to the Packaging Guidelines
[x]: MUST Spec file lacks Packager, Vendor, PreReq tags.
[x]: MUST Package does not run rm -rf %{buildroot} (or $RPM_BUILD_ROOT) at the
     beginning of %install.
     Note: rm -rf would be needed if support for EPEL5 is required
[-]: MUST Large documentation files are in a -doc subpackage, if required.
[x]: MUST If (and only if) the source package includes the text of the
     license(s) in its own file, then that file, containing the text of the
     license(s) for the package is included in %doc.
[x]: MUST License field in the package spec file matches the actual license.
[x]: MUST Package consistently uses macro is (instead of hard-coded directory
     names).
[x]: MUST Package is named using only allowed ascii characters.
[x]: MUST Package is named according to the Package Naming Guidelines.
[x]: MUST Package does not generate any conflict.
     Note: Package contains no Conflicts: tag(s)
[x]: MUST Package obeys FHS, except libexecdir and /usr/target.
[x]: MUST Package must own all directories that it creates.
[x]: MUST Package does not own files or directories owned by other packages.
[x]: MUST Package installs properly.
[x]: MUST Package is not relocatable.
[x]: MUST Requires correct, justified where necessary.
[x]: MUST Rpmlint is run on all rpms the build produces.
     Note: There are rpmlint messages (see attachment).
[x]: MUST Sources used to build the package match the upstream source, as
     provided in the spec URL.
[x]: MUST Spec file is legible and written in American English.
[x]: MUST Spec file name must match the spec package %{name}, in the format
     %{name}.spec.
[-]: MUST Package contains systemd file(s) if in need.
[x]: MUST File names are valid UTF-8.
[x]: MUST Useful -debuginfo package or justification otherwise.

== Approved ==

Note: upstream just released 1.2.2, but it's only suitable for kdevelop 4.4+

Comment 11 Radek Novacek 2012-07-26 07:40:29 UTC
New Package SCM Request
=======================
Package Name: kdevelop-custom-buildsystem
Short Description: Support for custom buildsystem in KDevelop
Owners: rnovacek
Branches: f17 f16
InitialCC:

Comment 12 Gwyn Ciesla 2012-07-26 10:29:01 UTC
Git done (by process-git-requests).

Comment 13 Radek Novacek 2012-07-26 12:22:59 UTC
Package is imported and built. Thanks everyone.


Note You need to log in before you can comment on or make changes to this bug.