SFEaaphoto.spec: initial spec file
authorjurikm
Sun, 26 Dec 2010 18:58:36 +0000
changeset 3083 21508b2a0660
parent 3082 7178e54aba05
child 3084 1e2053aa4f77
SFEaaphoto.spec: initial spec file
ChangeLog
SFEaaphoto.spec
patches/aaphoto-01-ccopenmp.diff
--- a/ChangeLog	Sun Dec 26 12:28:12 2010 +0000
+++ b/ChangeLog	Sun Dec 26 18:58:36 2010 +0000
@@ -2,6 +2,7 @@
 
 	* SFEtimidity.spec: from jucr to SFE
 	* SFEwildmidi.spec: bump to 0.2.3.4
+	* SFEaaphoto.spec: initial spec file
 
 2010-12-25 Milan Jurik <[email protected]>
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SFEaaphoto.spec	Sun Dec 26 18:58:36 2010 +0000
@@ -0,0 +1,62 @@
+#
+# spec file for package SFEaaphoto
+#
+# This file and all modifications and additions to the pristine
+# package are under the same license as the package itself.
+#
+
+%include Solaris.inc
+
+Name:		SFEaaphoto
+Summary:	Auto Adjust Photo, automatic color correction of photos
+Version:	0.40
+Group:		Graphics
+URL:		http://log69.com/aaphoto.html
+License:	GPLv3
+Source:		http://log69.com/downloads/aaphoto_sources_v%{version}.tar.gz
+Patch1:		aaphoto-01-ccopenmp.diff
+SUNW_BaseDir:	%{_basedir}
+BuildRoot:	%{_tmppath}/%{name}-%{version}-build
+%include default-depend.inc
+BuildRequires: SFEjasper-devel
+Requires: SFEjasper
+BuildRequires: SUNWzlib
+Requires: SUNWzlib
+BuildRequires: SUNWjpg-devel
+Requires: SUNWjpg
+BuildRequires: SUNWpng-devel
+Requires: SUNWpng
+
+%prep
+%setup -q -n aaphoto-%version
+%patch1 -p1
+
+%build
+CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
+if test "x$CPUS" = "x" -o $CPUS = 0; then
+    CPUS=1
+fi
+export CFLAGS="%optflags"
+export LDFLAGS="%_ldflags"
+
+./configure --prefix=%{_prefix} --mandir=%{_mandir} \
+            --libdir=%{_libdir}              \
+            --libexecdir=%{_libexecdir}      \
+            --sysconfdir=%{_sysconfdir}
+
+make -j $CPUS 
+
+%install
+rm -rf %{buildroot}
+make DESTDIR=%{buildroot} install
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-, root, bin)
+%{_bindir}
+
+%changelog
+* Sun Dec 26 2010 - Milan Jurik
+- Initial spec file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/aaphoto-01-ccopenmp.diff	Sun Dec 26 18:58:36 2010 +0000
@@ -0,0 +1,13 @@
+--- aaphoto-0.40/Makefile.in	2010-12-26 19:55:01.490072328 +0100
++++ aaphoto-0.40-patch/Makefile.in	2010-12-26 19:55:11.440079704 +0100
+@@ -162,8 +162,8 @@
+ top_build_prefix = @top_build_prefix@
+ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
+-AM_CFLAGS = -Wall -O2 -D__OPENMP__ -fopenmp
+-AM_LDFLAGS = -ljasper -ljpeg -lpng -lm -lgomp
++AM_CFLAGS = -D__OPENMP__ -xopenmp
++AM_LDFLAGS = -ljasper -ljpeg -lpng -lm
+ aaphoto_SOURCES = aaphoto.c
+ INCLUDES = 
+ all: config.h