Bug 604331 - Review Request: redshift - Adjusts the color temperature of your screen according to time of day
Summary: Review Request: redshift - Adjusts the color temperature of your screen accor...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Mamoru TASAKA
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-06-15 20:43 UTC by Miloš Komarčević
Modified: 2010-12-07 21:20 UTC (History)
8 users (show)

Fixed In Version: redshift-1.5-1.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-09-09 01:11:43 UTC
Type: ---
Embargoed:
mtasaka: fedora-review+


Attachments (Terms of Use)

Description Miloš Komarčević 2010-06-15 20:43:30 UTC
Spec URL: http://kmilos.fedorapeople.org/redshift.spec
SRPM URL: http://kmilos.fedorapeople.org/redshift-1.3-1.fc13.src.rpm

Description:
Redshift adjusts the color temperature of your screen according to your
surroundings. This may help your eyes hurt less if you are working in
front of the screen at night.

The color temperature is set according to the position of the sun. A
different color temperature is set during night and daytime. During
twilight and early morning, the color temperature transitions smoothly
from night to daytime temperature to allow your eyes to slowly
adapt.

This produces both a console base program package and GTK status icon integration package.

This is my first Fedora package, so I will need a sponsor.

Comment 1 Miloš Komarčević 2010-06-17 00:12:27 UTC
Spec URL: http://kmilos.fedorapeople.org/redshift.spec
SRPM URL: http://kmilos.fedorapeople.org/redshift-1.4.1-1.fc13.src.rpm

Source already updated in the meantime.

Comment 2 Rahul Sundaram 2010-06-21 16:38:18 UTC
Welcome to Fedora.  Please follow the steps outlined at 

http://fedoraproject.org/wiki/How_to_get_sponsored_into_the_packager_group

In short,  submit more packages for review or do unofficial reviews of packages waiting in the queue like yours.  This will help demonstrate understanding of the packaging guidelines and the ability to maintain packages within Fedora. Thank you.

Comment 3 Mamoru TASAKA 2010-07-12 17:43:13 UTC
Some notes:

* License
  - As far as I checked the whole source code, the license tag should
    be "GPLv3+".

* BuildRoot
  - BuildRoot tag is no longer needed on Fedora:
    https://fedoraproject.org/wiki/Packaging/Guidelines#BuildRoot_tag
    ! Note that on EPEL5 and below BuildRoot tag is still needed.

* Naming of gtk subpackage
  - Normally Fedora names gui related subpackage as "%{name}-gui" or
    "%{name}-gtk", and the former (-gui) is more general if no other
    gui backend (such as qt or so) is provided.

* Python related (Build)Requires
  - Currently your srpm won't build on Fedora 12 because of lacking
    %python_sitelib definition. Please refer to:
    https://fedoraproject.org/wiki/Packaging/Python#Macros

  - Please use "python2" or "python3" for (Build)Requires, c.f.
    https://fedoraproject.org/wiki/Packaging/Python#BuildRequires

* Dependencies between subpackages
  - Usually dependencies between binary rpms rebuilt from the same
    srpm must be EVR(Epoch-Version-Release) specific:
    https://fedoraproject.org/wiki/Packaging/Guidelines#Requiring_Base_Package

* Make build.log more verbose
  - Currently build.log does not show how linkage on the created binary
    is done:
------------------------------------------------------
   183    CCLD   redshift
   184  make[3]: Leaving directory `/builddir/build/BUILD/redshift-1.4.1/src'
   185  make[2]: Leaving directory `/builddir/build/BUILD/redshift-1.4.1/src'
------------------------------------------------------
    Please add "V=1" to "make %{?_smp_mflags}".

* Timestamp
  - Please consider to use
------------------------------------------------------
make DESTDIR=%{buildroot} install INSTALL="install -p"
------------------------------------------------------
    to keep timestamps on the installed files as much as possible.
    This method usually works for Makefiles generated by recent
    autotools.

* Desktop file
  - When gui program is installed, the corresponding desktop file must be
    properly installed:
    https://fedoraproject.org/wiki/Packaging/Guidelines#Desktop_files

Comment 4 Mamoru TASAKA 2010-07-22 16:50:35 UTC
ping?

Comment 5 Miloš Komarčević 2010-07-26 21:31:13 UTC
Thanks a lot for the feedback Mamoru, and sorry for the brief absence.

(In reply to comment #3)
> * License
>   - As far as I checked the whole source code, the license tag should
>     be "GPLv3+".

Done

> * BuildRoot
>   - BuildRoot tag is no longer needed on Fedora:
>     https://fedoraproject.org/wiki/Packaging/Guidelines#BuildRoot_tag
>     ! Note that on EPEL5 and below BuildRoot tag is still needed.

Will leave it in then in case this ever makes it into EPEL5

> * Naming of gtk subpackage
>   - Normally Fedora names gui related subpackage as "%{name}-gui" or
>     "%{name}-gtk", and the former (-gui) is more general if no other
>     gui backend (such as qt or so) is provided.

I thought about this already and, unless this is a hard requirement, decided it was better to have it the same as the name of the binary to avoid confusion.

> * Python related (Build)Requires
>   - Currently your srpm won't build on Fedora 12 because of lacking
>     %python_sitelib definition. Please refer to:
>     https://fedoraproject.org/wiki/Packaging/Python#Macros

Done

>   - Please use "python2" or "python3" for (Build)Requires, c.f.
>     https://fedoraproject.org/wiki/Packaging/Python#BuildRequires

Done

> * Dependencies between subpackages
>   - Usually dependencies between binary rpms rebuilt from the same
>     srpm must be EVR(Epoch-Version-Release) specific:
>     https://fedoraproject.org/wiki/Packaging/Guidelines#Requiring_Base_Package

Done

> * Make build.log more verbose
>   - Currently build.log does not show how linkage on the created binary
>     is done:
> ------------------------------------------------------
>    183    CCLD   redshift
>    184  make[3]: Leaving directory `/builddir/build/BUILD/redshift-1.4.1/src'
>    185  make[2]: Leaving directory `/builddir/build/BUILD/redshift-1.4.1/src'
> ------------------------------------------------------
>     Please add "V=1" to "make %{?_smp_mflags}".

Done

> * Timestamp
>   - Please consider to use
> ------------------------------------------------------
> make DESTDIR=%{buildroot} install INSTALL="install -p"
> ------------------------------------------------------
>     to keep timestamps on the installed files as much as possible.
>     This method usually works for Makefiles generated by recent
>     autotools.

Done

> * Desktop file
>   - When gui program is installed, the corresponding desktop file must be
>     properly installed:
>     https://fedoraproject.org/wiki/Packaging/Guidelines#Desktop_files    

gtk-redshift is not an app, but a widget, so there should be no need for a desktop file


http://kmilos.fedorapeople.org/redshift.spec
http://kmilos.fedorapeople.org/redshift-1.4.1-2.fc13.src.rpm

Comment 6 Mamoru TASAKA 2010-07-29 15:32:54 UTC
Okay.

For -2:

* rpmlint issue
---------------------------------------------------
gtk-redshift.i686: E: non-executable-script /usr/lib/python2.7/site-packages/gtk_redshift/statusicon.py 0644L /usr/bin/env
gtk-redshift.i686: E: non-executable-script /usr/lib/python2.7/site-packages/gtk_redshift/defs.py 0644L /usr/bin/env
gtk-redshift.i686: E: non-executable-script /usr/lib/python2.7/site-packages/gtk_redshift/__init__.py 0644L /usr/bin/env
---------------------------------------------------
  - These scripts need not have shebangs so please remove
    them.

Comment 7 Mamoru TASAKA 2010-07-29 15:35:05 UTC
(Sorry if the following messages are the re-post)

Now:
-------------------------------------------------------------
NOTE: Before being sponsored:

This package will be accepted with another few (or no) work. 
But before I accept this package, someone (I am a candidate) 
must sponsor you.

Once you are sponsored, you have the right to review other 
submitters' review requests and approve the packages formally. 
For this reason, the person who want to be sponsored (like you) 
are required to "show that you have an understanding 
of the process and of the packaging guidelines" as is described
on :
http://fedoraproject.org/wiki/PackageMaintainers/HowToGetSponsored

Usually there are two ways to show this.
A. submit other review requests with enough quality.
B. Do a "pre-review" of other person's review request
   (at the time you are not sponsored, you cannot do
   a formal review)

When you have submitted a new review request or have pre-reviewed other 
person's review request, please write the bug number on this bug report 
so that I can check your comments or review request.

Fedora package collection review requests which are waiting for someone to
review can be checked on my wiki page:
http://fedoraproject.org/wiki/User:Mtasaka#B._Review_request_tickets
(Check "No one is reviewing")

Review guidelines are described mainly on:
http://fedoraproject.org/wiki/Packaging/ReviewGuidelines
http://fedoraproject.org/wiki/Packaging/Guidelines
http://fedoraproject.org/wiki/Packaging/ScriptletSnippets
------------------------------------------------------------

Comment 8 Miloš Komarčević 2010-07-31 14:49:41 UTC
Thanks, shebangs reported upstream:

https://bugs.launchpad.net/redshift/+bug/611424

Will probably wait for 1.5 (around the corner supposedly) instead of patching right now.

In the meantime, I'll try to get an unofficial pre-review under my belt.

Comment 9 Mamoru TASAKA 2010-08-13 17:19:57 UTC
ping?

Comment 10 Miloš Komarčević 2010-08-26 20:14:34 UTC
Updated to 1.5, now also including a desktop file.

http://kmilos.fedorapeople.org/redshift.spec
http://kmilos.fedorapeople.org/redshift-1.5-1.fc13.src.rpm

Sorry for still owing you an informal review of another package, time is scarce :(

Comment 11 Mamoru TASAKA 2010-08-27 18:14:58 UTC
Okay, this package itself is good. Now waiting for pre-review.

Comment 12 Ankur Sinha (FranciscoD) 2010-08-27 18:41:46 UTC
(In reply to comment #10)
> Updated to 1.5, now also including a desktop file.
> 
> http://kmilos.fedorapeople.org/redshift.spec
> http://kmilos.fedorapeople.org/redshift-1.5-1.fc13.src.rpm
> 
> Sorry for still owing you an informal review of another package, time is scarce
> :(

Here's a convenient list that you can look at:

http://fedoraproject.org/PackageReviewStatus/

Comment 13 Miloš Komarčević 2010-08-29 13:02:25 UTC
Left some informal feedback in bug 598315, left the actual review checklist for after these issues are fixed.

Comment 14 Mamoru TASAKA 2010-08-29 19:28:14 UTC
Well, the URL of the srpm on bug 598315 returned 404, so I downloaded
Source0 by myself and your initial comments seem good.

---------------------------------------------------------
    This package (redshift) is APPROVED by mtasaka
---------------------------------------------------------

I am going to sponsor you. However as far as I checked your FAS
account, the mail address you use on FAS and the one you are using
on this bugzilla differ, which must coincide. Please change the mail
address on your FAS, or create another account on bugzilla with the
same mail address on your FAS.

Comment 15 Miloš Komarčević 2010-09-02 18:34:37 UTC
Thanks Mamoru. Turns out one can also change the address in Bugzilla.

Comment 16 Mamoru TASAKA 2010-09-02 19:12:37 UTC
Okay.

Please follow the procedure written on:
http://fedoraproject.org/wiki/PackageMaintainers/Join
from "Install the Client Tools (Koji)".

Now I am sponsoring you.

If you want to import this package into Fedora 12/13/14, you also have
to look at
http://fedoraproject.org/wiki/Infrastructure/UpdatesSystem/Bodhi-info-DRAFT
(after once you rebuilt this package on koji Fedora rebuilding system).

When using Fedora SCM system, please check below for reference:
http://fedoraproject.org/wiki/Using_Fedora_GIT

If you have questions, please ask me.

Removing NEEDSPONSOR.

Comment 17 Miloš Komarčević 2010-09-04 11:46:31 UTC
New Package SCM Request
=======================
Package Name: redshift
Short Description: Adjusts the color temperature of your screen according to time of day
Owners: kmilos
Branches: f12 f13 f14 el6
InitialCC: kmilos

Comment 18 Kevin Fenzi 2010-09-05 17:42:43 UTC
Git done (by process-git-requests).

Comment 19 Mamoru TASAKA 2010-09-06 15:07:47 UTC
Please rebuild this package also for F-14/13/12/EL6 and submit
push requests on bodhi.

Comment 20 Miloš Komarčević 2010-09-06 15:54:01 UTC
Thank you Mamoru and Kevin for getting this into Fedora packages SCM.

Is there a way to replicate the master branch to other branches easily, or do I need to again do "fedpkg import ..." followed by "fedpkg commit ..." for every branch individually? (The wiki is a bit unclear on how to proceed after getting a rawhide package in.)

Comment 21 Mamoru TASAKA 2010-09-06 16:45:31 UTC
(In reply to comment #20)
> Is there a way to replicate the master branch to other branches easily, 

Well, now Fedora uses git for SCM and git has some command to do so,
however I am not familiar with git options, so currently I use
"fedpkg foo" for each branch...

Comment 22 Thomas Spura 2010-09-06 17:08:27 UTC
(In reply to comment #20)
> Is there a way to replicate the master branch to other branches easily, or do I
> need to again do "fedpkg import ..." followed by "fedpkg commit ..." for every
> branch individually?

= Initial commit =
Usually, I do "fedpkg new-source ..." and "git add *.patch *.spec" in the master branch and commit that with "fedpkg commit -p".

= cherry-picking to other branches =
After that I switch to another branch and do "git cherry-pick master". Because there is only one commit in the master branch at that time, it will get this only commit to the branch.
To commit that, I do "fedpkg push" in each branch and build & update.

Hope, that makes sense.

Comment 23 Fedora Update System 2010-09-06 19:56:36 UTC
redshift-1.5-1.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/redshift-1.5-1.fc14

Comment 24 Fedora Update System 2010-09-06 19:58:36 UTC
redshift-1.5-1.fc13 has been submitted as an update for Fedora 13.
https://admin.fedoraproject.org/updates/redshift-1.5-1.fc13

Comment 25 Fedora Update System 2010-09-06 20:01:41 UTC
redshift-1.5-1.fc12 has been submitted as an update for Fedora 12.
https://admin.fedoraproject.org/updates/redshift-1.5-1.fc12

Comment 26 Miloš Komarčević 2010-09-06 20:14:27 UTC
Ok, kinda figured out how to do a merge from the "Using Fedora GIT" wiki page, thanks.

Builds done and updates submitted (apart from EPEL6, Bodhi doesn't seem to be accepting those yet?)

Comment 27 Fedora Update System 2010-09-07 06:45:26 UTC
redshift-1.5-1.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update redshift'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/redshift-1.5-1.fc14

Comment 28 Fedora Update System 2010-09-09 01:11:37 UTC
redshift-1.5-1.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 29 Fedora Update System 2010-09-15 07:05:16 UTC
redshift-1.5-1.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 30 Fedora Update System 2010-09-15 22:26:22 UTC
redshift-1.5-1.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 31 Miloš Komarčević 2010-11-23 21:50:56 UTC
Package Change Request
======================
Package Name: redshift
New Branches: f15
Owners: kmilos

Comment 32 Jason Tibbitts 2010-11-24 00:01:51 UTC
It is too early to requrest f15 branches.

Comment 33 Alexander Hunt 2010-12-07 06:40:39 UTC
redshift-1.5-1.fc14 - (on x86_64 platform) Accessories/Redshift command menu property has to use "sudo gtk-redshift" in order for it to work from the menu, or sudo redshift to work from terminal; without sudo it does not find the clock applet, and not being able to find another provider, errors out.

Comment 34 Mamoru TASAKA 2010-12-07 07:31:01 UTC
Alexander, please file a bug report against redshift and not
write such comment here (on review request) any longer.
This review request finished about 3 months before.

Comment 35 Alexander Hunt 2010-12-07 21:20:59 UTC
As per:

Comment 29 Fedora Update System 2010-09-15 03:05:16 EDT

redshift-1.5-1.fc14 has been pushed to the Fedora 14 stable repository.  If
problems still persist, please make note of it in this bug report.

Mamoru, do you think regular users know how bugzilla works in it's entirety? No, we don't; we rely on what is said in the comments to know what to do. Take out comments 28, 29 and 30, and put in one telling users to file new bug reports if that is what is expected, or lock it against changes by regular users, and don't be mean to people.
I will file a new bug report now.
Have a Happy Holidays


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