Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0e1749471e |
6 changed files with 107 additions and 3 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
/urbanlightscape-1.3.2.tar.gz
|
||||
/urbanlightscape-1.3.3.tar.gz
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
2016-05-19: Retired orphaned package, because it was orphaned for
|
||||
more than six weeks.
|
||||
|
||||
1
sources
Normal file
1
sources
Normal file
|
|
@ -0,0 +1 @@
|
|||
08e2b3b0c940f35ac8c4f7a3fac3f199 urbanlightscape-1.3.3.tar.gz
|
||||
12
urbanlightscape.desktop
Normal file
12
urbanlightscape.desktop
Normal file
|
|
@ -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;
|
||||
92
urbanlightscape.spec
Normal file
92
urbanlightscape.spec
Normal file
|
|
@ -0,0 +1,92 @@
|
|||
Name: urbanlightscape
|
||||
Version: 1.3.3
|
||||
Release: 1%{?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
|
||||
# src/indii/krig/EdgeDistanceMap.hpp: #include <xmmintrin.h>
|
||||
# But upstream does support useSSE = false in EdgeDistanceMap.cpp
|
||||
# We need to dig into this later on non-x86 platforms.
|
||||
ExclusiveArch: %{ix86} x86_64
|
||||
|
||||
%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
|
||||
CXXFLAGS="%{optflags} -msse2"
|
||||
export CXXFLAGS
|
||||
export CPPFLAGS=${CXXFLAGS}
|
||||
%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}/applications/urbanlightscape.desktop
|
||||
%{_datadir}/icons/hicolor/*x*/apps/urbanlightscape.png
|
||||
%{_datadir}/urbanlightscape/
|
||||
|
||||
%changelog
|
||||
* Mon Feb 02 2015 Christopher Meng <rpm@cicku.me> - 1.3.3-1
|
||||
- Update to 1.3.3
|
||||
- Enable SSE flags again on x86 processors
|
||||
|
||||
* Wed Jun 18 2014 Yaakov Selkowitz <yselkowi@redhat.com> - 1.3.2-5
|
||||
- Mark ExclusiveArch due to xmmintrin.h usage (#1107042)
|
||||
|
||||
* Mon Mar 03 2014 Christopher Meng <rpm@cicku.me> - 1.3.2-3
|
||||
- Disable sse flags.
|
||||
|
||||
* Fri Feb 28 2014 Christopher Meng <rpm@cicku.me> - 1.3.2-2
|
||||
- Add missing hicolor-icon-theme dependency.
|
||||
- Fix scriplets.
|
||||
|
||||
* Wed Feb 26 2014 Christopher Meng <rpm@cicku.me> - 1.3.2-1
|
||||
- Initial Package.
|
||||
BIN
urbanlightscape_128.png
Normal file
BIN
urbanlightscape_128.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
Loading…
Add table
Add a link
Reference in a new issue