rpms/OpenEXR_CTL/F-8 openexr_ctl-1.0.1-configure_gcc43.patch, NONE, 1.1 openexr_ctl-1.0.1-gcc43.patch, NONE, 1.1 openexr_ctl-1.0.1-pkgconfig.patch, NONE, 1.1 OpenEXR_CTL.spec, NONE, 1.1 sources, 1.1, 1.2

Chauvet (kwizart) fedora-extras-commits at redhat.com
Sat Feb 2 10:11:08 UTC 2008


Author: kwizart

Update of /cvs/pkgs/rpms/OpenEXR_CTL/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv24330

Modified Files:
	sources 
Added Files:
	openexr_ctl-1.0.1-configure_gcc43.patch 
	openexr_ctl-1.0.1-gcc43.patch 
	openexr_ctl-1.0.1-pkgconfig.patch OpenEXR_CTL.spec 
Log Message:
Import for F-8


openexr_ctl-1.0.1-configure_gcc43.patch:

--- NEW FILE openexr_ctl-1.0.1-configure_gcc43.patch ---
diff -up openexr_ctl-1.0.1/configure.conf_gcc43 openexr_ctl-1.0.1/configure
--- openexr_ctl-1.0.1/configure.conf_gcc43	2008-01-09 17:08:57.000000000 +0100
+++ openexr_ctl-1.0.1/configure	2008-01-09 17:10:25.000000000 +0100
@@ -20851,6 +20851,7 @@ cat >>conftest.$ac_ext <<_ACEOF
 
 #include <CtlSimdInterpreter.h>
 #include <Iex.h>
+#include <cstdlib>
 
 int
 main ()
diff -up openexr_ctl-1.0.1/configure.ac.conf_gcc43 openexr_ctl-1.0.1/configure.ac
--- openexr_ctl-1.0.1/configure.ac.conf_gcc43	2008-01-09 17:11:25.000000000 +0100
+++ openexr_ctl-1.0.1/configure.ac	2008-01-09 17:12:17.000000000 +0100
@@ -108,6 +108,7 @@ AM_COMPILELINKRUN(
    [$CTL_LIBS],[[
 #include <CtlSimdInterpreter.h>
 #include <Iex.h>
+#include <cstdlib>
 ]],
    [[Ctl::SimdInterpreter interp; interp.setMaxInstCount(10);]],
    AC_MSG_RESULT([The ctl test program succeeded.]), 

openexr_ctl-1.0.1-gcc43.patch:

--- NEW FILE openexr_ctl-1.0.1-gcc43.patch ---
diff -up openexr_ctl-1.0.1/exrdpx/main.cpp.gcc43 openexr_ctl-1.0.1/exrdpx/main.cpp
--- openexr_ctl-1.0.1/exrdpx/main.cpp.gcc43	2007-07-25 08:28:17.000000000 +0200
+++ openexr_ctl-1.0.1/exrdpx/main.cpp	2008-01-08 20:27:14.000000000 +0100
@@ -60,6 +60,8 @@
 #include <iostream>
 #include <string>
 #include <exception>
+#include <cstdlib>
+#include <cstring>
 
 using namespace std;
 using namespace Imf;
diff -up openexr_ctl-1.0.1/exr_ctl_exr/applyCtl.cpp.gcc43 openexr_ctl-1.0.1/exr_ctl_exr/applyCtl.cpp
--- openexr_ctl-1.0.1/exr_ctl_exr/applyCtl.cpp.gcc43	2008-01-08 20:30:30.000000000 +0100
+++ openexr_ctl-1.0.1/exr_ctl_exr/applyCtl.cpp	2008-01-08 20:33:02.000000000 +0100
@@ -64,6 +64,7 @@
 #include <iostream>
 #include <vector>
 #include <string>
+#include <cstdlib>
 
 using namespace std;
 using namespace Ctl;
diff -up openexr_ctl-1.0.1/exr_ctl_exr/main.cpp.gcc43 openexr_ctl-1.0.1/exr_ctl_exr/main.cpp
--- openexr_ctl-1.0.1/exr_ctl_exr/main.cpp.gcc43	2008-01-08 20:34:32.000000000 +0100
+++ openexr_ctl-1.0.1/exr_ctl_exr/main.cpp	2008-01-08 20:35:10.000000000 +0100
@@ -59,6 +59,7 @@
 #include <iostream>
 #include <string>
 #include <exception>
+#include <cstdlib>
 #include <ImfFloatAttribute.h>
 #include <ImfVecAttribute.h>
 

openexr_ctl-1.0.1-pkgconfig.patch:

--- NEW FILE openexr_ctl-1.0.1-pkgconfig.patch ---
diff -up openexr_ctl-1.0.1/OpenEXR_CTL.pc.in.pkgconfig openexr_ctl-1.0.1/OpenEXR_CTL.pc.in
--- openexr_ctl-1.0.1/OpenEXR_CTL.pc.in.pkgconfig	2008-01-09 15:17:58.000000000 +0100
+++ openexr_ctl-1.0.1/OpenEXR_CTL.pc.in	2008-01-09 15:24:52.000000000 +0100
@@ -7,5 +7,6 @@ OpenEXR_includedir=@includedir@/OpenEXR
 Name: OpenEXR_CTL
 Description: Simplified OpenEXR interface to CTL
 Version: @OPENEXR_CTL_VERSION@
-Libs: -L${libdir} -lIlmImfCtl @OPENEXR_LDFLAGS@ @CTL_LDFLAGS@
-Cflags: @CTL_CXXFLAGS_PC@ @OPENEXR_CXXFLAGS@ -I${OpenEXR_includedir}
+Requires: CTL , OpenEXR
+Libs: -L${libdir} -lIlmImfCtl
+Cflags: -I${OpenEXR_includedir}


--- NEW FILE OpenEXR_CTL.spec ---
Name:           OpenEXR_CTL
Version:        1.0.1
Release:        3%{?dist}
Summary:        A simplified OpenEXR interface to CTL

Group:          System Environment/Libraries
License:        AMPAS BSD
URL:            http://sourceforge.net/projects/ampasctl/
Source0:        http://downloads.sourceforge.net/ampasctl/openexr_ctl-%{version}.tar.gz
Patch0:         openexr_ctl-1.0.1-gcc43.patch
Patch1:         openexr_ctl-1.0.1-pkgconfig.patch
Patch2:         openexr_ctl-1.0.1-configure_gcc43.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

#BuildRequires:  libtool
BuildRequires:  CTL-devel
BuildRequires:  OpenEXR-devel



%description
IlmImfCtl provides a simplified OpenEXR interface to CTL

exrdpx is an initial version of a CTL-driven file converter
that translates DPX files into OpenEXR files and vice versa.
The conversion between the DPX and OpenEXR color spaces is
handled by CTL transforms.

exr_ctl_exr is an initial version of a program that can bake
the effect of a series of CTL transforms into the pixels of
an OpenEXR file.


%package        libs
Summary:        Library for %{name}
Group:          System Environment/Libraries

%description    libs
The %{name}-libs package contains library for %{name}.

%package        devel
Summary:        Development files for %{name}
Group:          Development/Libraries
Requires:       %{name}-libs = %{version}-%{release}
Requires:       OpenEXR-devel
Requires:       CTL-devel

%description    devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.



%prep
%setup -q -n openexr_ctl-%{version}
%patch0 -p1 -b .gcc43
%patch1 -p1 -b .pkgconfig
%patch2 -p1 -b .conf_gcc43
# Needed to disable rpath from configure
#autoreconf

%build
%configure --disable-static

# Remove rpath from libtool
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool

# clean unused-direct-shlib-dependencies
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool

make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'


%clean
rm -rf $RPM_BUILD_ROOT


%post libs -p /sbin/ldconfig

%postun libs -p /sbin/ldconfig


%files
%defattr(-,root,root,-)
%{_bindir}/exr_ctl_exr
%{_bindir}/exrdpx

%files libs
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README
%{_libdir}/libIlmImfCtl.so.*
%{_libdir}/CTL/*.ctl

%files devel
%defattr(-,root,root,-)
%{_includedir}/OpenEXR/ImfCtlApplyTransforms.h
%{_libdir}/libIlmImfCtl.so
%{_libdir}/pkgconfig/OpenEXR_CTL.pc


%changelog
* Wed Jan 16 2008 kwizart < kwizart at gmail.com > - 1.0.1-3
- Remove BR/R OpenEXR

* Tue Jan  8 2008 kwizart < kwizart at gmail.com > - 1.0.1-2
- Fix rpath
- Fix gcc43
- Fix pkgconfig
- Fix unused-direct-shlib-dependencies

* Mon Nov 26 2007 kwizart < kwizart at gmail.com > - 1.0.1-1
- Initial package for Fedora



Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/OpenEXR_CTL/F-8/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	16 Jan 2008 17:29:36 -0000	1.1
+++ sources	2 Feb 2008 10:10:28 -0000	1.2
@@ -0,0 +1 @@
+035a68db3b1cc40fe99a7c4012d7f024  openexr_ctl-1.0.1.tar.gz




More information about the fedora-extras-commits mailing list