[redshift] Initial import (#604331).

kmilos kmilos at fedoraproject.org
Sun Sep 5 20:46:19 UTC 2010


commit 15c87b4a2071961e28db4e6a340015f2cc7c2fed
Author: Miloš Komarčević <kmilos at gmail.com>
Date:   Sun Sep 5 21:36:07 2010 +0100

    Initial import (#604331).

 .gitignore    |    1 +
 redshift.spec |  104 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources       |    1 +
 3 files changed, 106 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..905057c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/redshift-1.5.tar.bz2
diff --git a/redshift.spec b/redshift.spec
new file mode 100644
index 0000000..9041f5a
--- /dev/null
+++ b/redshift.spec
@@ -0,0 +1,104 @@
+%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+%endif
+
+Name: redshift
+Version: 1.5
+Release: 1%{dist}
+Summary: Adjusts the color temperature of your screen according to time of day
+Group: Applications/System
+License: GPLv3+
+URL: http://jonls.dk/redshift/
+Source0: http://launchpad.net/redshift/trunk/%{version}/+download/%{name}-%{version}.tar.bz2
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires: gettext
+BuildRequires: libXrandr-devel
+BuildRequires: libXxf86vm-devel
+BuildRequires: GConf2-devel
+
+%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 package provides the base program.
+
+%package -n gtk-%{name}
+Summary: GTK integration for Redshift
+Group: Applications/System
+BuildRequires: python2
+BuildRequires: desktop-file-utils
+Requires: pygtk2
+Requires: %{name} = %{version}-%{release}
+
+%description -n gtk-%{name}
+This package provides GTK integration for Redshift, a screen color 
+temperature adjustment program.
+
+%prep
+%setup -q
+
+%build
+%configure
+make %{?_smp_mflags} V=1
+
+%install
+rm -rf %{buildroot}
+make DESTDIR=%{buildroot} install INSTALL="install -p"
+make DESTDIR=%{buildroot} uninstall-ubuntu_mono_dark_iconDATA
+make DESTDIR=%{buildroot} uninstall-ubuntu_mono_light_iconDATA
+%find_lang %{name}
+desktop-file-validate %{buildroot}%{_datadir}/applications/gtk-redshift.desktop
+
+%post -n gtk-%{name}
+touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+
+%postun -n gtk-%{name}
+if [ $1 -eq 0 ] ; then
+    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+fi
+
+%posttrans -n gtk-%{name}
+gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+
+%clean
+rm -rf %{buildroot}
+
+%files -f %{name}.lang
+%defattr(-,root,root,-)
+%doc AUTHORS ChangeLog COPYING NEWS README
+%{_bindir}/redshift
+
+%files -n gtk-%{name}
+%defattr(-,root,root,-)
+%{_bindir}/gtk-redshift
+%{python_sitelib}/*
+%{_datadir}/icons/hicolor/scalable/apps/redshift*.svg
+%{_datadir}/applications/gtk-redshift.desktop
+
+%changelog
+* Thu Aug 26 2010 Milos Komarcevic <kmilos at gmail.com> - 1.5-1
+- Update to 1.5
+- Install desktop file
+
+* Mon Jul 26 2010 Milos Komarcevic <kmilos at gmail.com> - 1.4.1-2
+- License updated to GPLv3+
+- Added python macros to enable building on F12 and EPEL5
+- Specific python version BR
+- Subpackage requires full base package version
+- Increased build log verbosity
+- Preserve timestamps on install
+
+* Thu Jun 17 2010 Milos Komarcevic <kmilos at gmail.com> - 1.4.1-1
+- Update to 1.4.1
+
+* Thu Jun 10 2010 Milos Komarcevic <kmilos at gmail.com> - 1.3-1
+- Initial packaging
diff --git a/sources b/sources
index e69de29..3c84fea 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+b6023a7d64fa9e4fe76a1bfc99ef3a85  redshift-1.5.tar.bz2


More information about the scm-commits mailing list