[urbanlightscape/el6] Initial SETUP.

Christopher Meng cicku at fedoraproject.org
Mon Mar 3 03:28:42 UTC 2014


commit ff7c1e6f7c397b7ef3192ed836e6438de4932bc0
Author: Christopher Meng <i at cicku.me>
Date:   Mon Mar 3 11:28:48 2014 +0800

    Initial SETUP.

 .gitignore              |    1 +
 sources                 |    1 +
 urbanlightscape.desktop |   12 +++++++
 urbanlightscape.spec    |   77 +++++++++++++++++++++++++++++++++++++++++++++++
 urbanlightscape_128.png |  Bin 0 -> 27965 bytes
 5 files changed, 91 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..ec9610a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/urbanlightscape-1.3.2.tar.gz
diff --git a/sources b/sources
index e69de29..cbf8f87 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+514db34bda44ad3713ad82c89b4f957f  urbanlightscape-1.3.2.tar.gz
diff --git a/urbanlightscape.desktop b/urbanlightscape.desktop
new file mode 100644
index 0000000..6f08ecb
--- /dev/null
+++ b/urbanlightscape.desktop
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Name=Urban Lightscape
+GenericName=Photo filter for dynamic lighting and exposure correction
+Version=1.0
+Type=Application
+Exec=urbanlightscape %f
+Icon=urbanlightscape
+Categories=Graphics;Photography;
+Comment=Improve lighting, Correct Exposure, Add Synthetic Light to Photos
+StartupNotify=true
+Terminal=false
+MimeType=image/x-bmp;image/gif;image/jpeg;image/x-pcx;image/png;image/x-portable-pixmap;image/x-targa;image/tiff;image/x-xpm;
diff --git a/urbanlightscape.spec b/urbanlightscape.spec
new file mode 100644
index 0000000..55a6b6b
--- /dev/null
+++ b/urbanlightscape.spec
@@ -0,0 +1,77 @@
+Name:           urbanlightscape
+Version:        1.3.2
+Release:        2%{?dist}
+Summary:        Photo filter for dynamic lighting and exposure correction
+License:        GPLv2+
+URL:            http://www.indii.org/software/urbanlightscape
+Source0:        http://www.indii.org/files/urbanlightscape/releases/%{name}-%{version}.tar.gz
+Source1:        %{name}.desktop
+Source2:        http://www.indii.org/images/%{name}_128.png
+BuildRequires:  ImageMagick
+BuildRequires:  boost-devel
+BuildRequires:  desktop-file-utils
+BuildRequires:  wxGTK-devel
+Requires:       hicolor-icon-theme
+
+%description
+Urban Lightscape is a photo filter for exposure correction, localized 
+brightness adjustments, dodging and burning, and the introduction of 
+synthetic lighting to a photo. A simple "double-click-and-drag" paradigm is 
+used to place control points on a photo, and clever edge detection localises 
+and interpolates lightness adjustments around and between these points. 
+Results are rapid, with additional controls for more subtle refinements.
+
+%prep
+%setup -q
+
+%build
+%configure
+make %{?_smp_mflags}
+
+%install
+%make_install
+
+# Desktop file.
+desktop-file-install %{S:1} \
+    %{buildroot}%{_datadir}/applications/%{name}.desktop
+
+# Install source icon.
+install -pDm644 %{S:2} \
+    %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
+
+# Convert to various sizes, via the 128x128 source.
+for size in 96x96 72x72 64x64 48x48 32x32 24x24 22x22 16x16 ; do
+    install -pdm755 \
+        %{buildroot}%{_datadir}/icons/hicolor/${size}/apps
+    convert -resize ${size} %{S:2} \
+        %{buildroot}%{_datadir}/icons/hicolor/${size}/apps/%{name}.png
+done
+
+%post
+update-desktop-database &> /dev/null || :
+touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+
+%postun
+update-desktop-database &> /dev/null || :
+if [ $1 -eq 0 ] ; then
+    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+fi
+
+%posttrans
+gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+
+%files
+%doc COPYING README
+%{_bindir}/urbanlightscape
+%{_datadir}/urbanlightscape/
+%{_datadir}/applications/urbanlightscape.desktop
+%{_datadir}/icons/hicolor/*x*/apps/urbanlightscape.png
+
+%changelog
+* Fri Feb 28 2014 Christopher Meng <rpm at cicku.me> - 1.3.2-2
+- Add missing hicolor-icon-theme dependency.
+- Fix scriplets.
+
+* Wed Feb 26 2014 Christopher Meng <rpm at cicku.me> - 1.3.2-1
+- Initial Package.
diff --git a/urbanlightscape_128.png b/urbanlightscape_128.png
new file mode 100644
index 0000000..3be319c
Binary files /dev/null and b/urbanlightscape_128.png differ


More information about the scm-commits mailing list