[aces_container] Initial import for aces_container
Nicolas Chauvet
kwizart at fedoraproject.org
Mon Aug 25 19:59:22 UTC 2014
commit 430ac4b0a9b2ec64d8144e69cd81ad91816eca20
Author: Nicolas Chauvet <kwizart at gmail.com>
Date: Mon Aug 25 21:59:16 2014 +0200
Initial import for aces_container
.gitignore | 1 +
Aces_container-fixup.patch | 73 ++++++++++++++++++++++++++++++++++++++++
aces_container.spec | 79 ++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 154 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..2948295 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/v1.0.tar.gz
diff --git a/Aces_container-fixup.patch b/Aces_container-fixup.patch
new file mode 100644
index 0000000..4ea3356
--- /dev/null
+++ b/Aces_container-fixup.patch
@@ -0,0 +1,73 @@
+diff -up aces_container-1.0/CMakeLists.txt.fixup aces_container-1.0/CMakeLists.txt
+--- aces_container-1.0/CMakeLists.txt.fixup 2013-07-27 01:07:55.000000000 +0200
++++ aces_container-1.0/CMakeLists.txt 2014-07-29 16:14:03.818875063 +0200
+@@ -58,7 +58,7 @@ set( INSTALL_INCLUDE_DIR include CACHE P
+ if( WIN32 AND NOT CYGWIN )
+ set(DEF_INSTALL_CMAKE_DIR CMake)
+ else()
+- set(DEF_INSTALL_CMAKE_DIR lib/CMake/AcesContainer)
++ set(DEF_INSTALL_CMAKE_DIR lib${LIB_SUFFIX}/CMake/AcesContainer)
+ endif()
+ set(INSTALL_CMAKE_DIR ${DEF_INSTALL_CMAKE_DIR} CACHE PATH "Install directory for project CMake files" )
+
+@@ -82,7 +82,13 @@ add_library( AcesContainer SHARED
+ aces_md5.cc
+ )
+
+-install (TARGETS AcesContainer EXPORT AcesContainerTargets DESTINATION ${INSTALL_LIB_DIR})
++# Set the build version (VERSION) and the API version (SOVERSION)
++SET_TARGET_PROPERTIES(AcesContainer
++ PROPERTIES
++ VERSION ${AcesContainer_VERSION}
++ SOVERSION ${AcesContainer_MAJOR_VERSION})
++
++install (TARGETS AcesContainer EXPORT AcesContainerTargets DESTINATION ${LIB_INSTALL_DIR})
+ install (FILES
+ aces_errors.h
+ aces_genericWriter.h
+@@ -97,14 +103,14 @@ install (FILES
+ aces_types.h
+ aces_writeattributes.h
+ DESTINATION
+- ${INSTALL_INCLUDE_DIR}/aces
++ ${INCLUDE_INSTALL_DIR}/aces
+ )
+
+
+ find_package( PkgConfig )
+ if ( PKG_CONFIG_FOUND )
+ configure_file(config/AcesContainer.pc.in "${PROJECT_BINARY_DIR}/AcesContainer.pc" @ONLY)
+-install( FILES "${PROJECT_BINARY_DIR}/AcesContainer.pc" DESTINATION lib/pkgconfig COMPONENT dev )
++install( FILES "${PROJECT_BINARY_DIR}/AcesContainer.pc" DESTINATION lib${LIB_SUFFIX}/pkgconfig COMPONENT dev )
+ endif()
+
+ include_directories(
+diff -up aces_container-1.0/config/AcesContainerConfig.cmake.in.fixup aces_container-1.0/config/AcesContainerConfig.cmake.in
+--- aces_container-1.0/config/AcesContainerConfig.cmake.in.fixup 2013-07-27 01:07:55.000000000 +0200
++++ aces_container-1.0/config/AcesContainerConfig.cmake.in 2014-07-29 16:17:38.264924248 +0200
+@@ -53,10 +53,10 @@
+ # find paths
+ get_filename_component( AcesContainer_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH )
+
+-set(AcesContainer_INCLUDE_DIRS "@CONF_INCLUDE_DIRS@")
++set(AcesContainer_INCLUDE_DIRS "@INCLUDE_INSTALL_DIR@")
+
+ set(AcesContainer_LIBRARIES AcesContainer )
+-set(AcesContainer_LIBRARY_DIRS "@CONF_LIB_DIRS@" )
++set(AcesContainer_LIBRARY_DIRS "@LIB_INSTALL_DIR@" )
+ set(AcesContainer_VERSION "@AcesContainer_VERSION@" )
+
+ set(AcesContainer_FOUND 1 )
+diff -up aces_container-1.0/config/AcesContainerConfigVersion.cmake.in.fixup aces_container-1.0/config/AcesContainerConfigVersion.cmake.in
+diff -up aces_container-1.0/config/AcesContainer.pc.in.fixup aces_container-1.0/config/AcesContainer.pc.in
+--- aces_container-1.0/config/AcesContainer.pc.in.fixup 2013-07-27 01:07:55.000000000 +0200
++++ aces_container-1.0/config/AcesContainer.pc.in 2014-07-29 16:14:03.820875036 +0200
+@@ -45,7 +45,7 @@
+ # A.M.P.A.S., WHETHER DISCLOSED OR UNDISCLOSED.
+
+ prefix=@CMAKE_INSTALL_PREFIX@
+-libdir=@INSTALL_LIB_DIR@
++libdir=@LIB_INSTALL_DIR@
+ includedir=@INSTALL_INCLUDE_DIR@
+ AcesContainer_includedir=@INSTALL_INCLUDE_DIR@/aces
+
diff --git a/aces_container.spec b/aces_container.spec
new file mode 100644
index 0000000..e82a0ff
--- /dev/null
+++ b/aces_container.spec
@@ -0,0 +1,79 @@
+Name: aces_container
+Version: 1.0
+Release: 1%{?dist}
+Summary: ACES Container Reference
+
+License: AMPAS BSD
+URL: https://github.com/ampas/aces_container
+Source0: https://github.com/ampas/aces_container/archive/v%{version}.tar.gz
+Patch0: Aces_container-fixup.patch
+
+BuildRequires: cmake
+
+%description
+This folder contains a reference implementation for an ACES container
+file writer intended to be used with the Academy Color Encoding
+System (ACES). The resulting file is compliant with the ACES container
+specification (SMPTE S2065-4). However, there are a few things that are
+not demonstrated by this reference implementation.
+
+ Stereo channels
+ EndOfFileFiller
+ Arbitrary attributes and naming validations
+ half type attributes
+ keycode value validations
+
+%package devel
+Summary: Development files for %{name}
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+
+
+%prep
+%setup -q
+%patch0 -p1 -b .fixup
+
+
+%build
+mkdir build ; cd build
+%{cmake} \
+ ..
+
+make %{?_smp_mflags}
+
+
+%install
+cd build
+%make_install
+
+
+# remote noinstall style cmake file
+rm %{buildroot}/%{_libdir}/CMake/AcesContainer/AcesContainerTargets-noconfig.cmake
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+
+%files
+%doc README.md LICENSE
+%{_libdir}/libAcesContainer.so.*
+
+%files devel
+%dir %{_includedir}/aces/
+%{_includedir}/aces/*.h
+%dir %{_libdir}/CMake/AcesContainer
+%{_libdir}/CMake/AcesContainer/*.cmake
+%{_libdir}/libAcesContainer.so
+%{_libdir}/pkgconfig/AcesContainer.pc
+
+
+%changelog
+* Sun Apr 13 2014 Nicolas Chauvet <kwizart at gmail.com> - 1.0-1
+- Initial spec file
+
diff --git a/sources b/sources
index e69de29..e145720 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+49f967ef6ecf1ed1162c22b4312f4103 v1.0.tar.gz
More information about the scm-commits
mailing list