From 83e984f328884d4fe2db023f864cb9ef0ab4caf9 Mon Sep 17 00:00:00 2001 From: Nicolas Chauvet Date: Nov 17 2007 00:37:47 +0000 Subject: Initial import --- diff --git a/.cvsignore b/.cvsignore index e69de29..271d3df 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +ctl-1.4.1.tar.gz diff --git a/CTL.spec b/CTL.spec new file mode 100644 index 0000000..abd42dc --- /dev/null +++ b/CTL.spec @@ -0,0 +1,109 @@ +Name: CTL +Version: 1.4.1 +Release: 3%{?dist} +Summary: The Color Transformation Language + +Group: System Environment/Libraries +License: AMPAS BSD +URL: http://ampasctl.sourceforge.net/ +Source0: http://downloads.sourceforge.net/ampasctl/ctl-%{version}.tar.gz +#Patch0: ctl-1.4.1-disable_rpath.patch +Patch1: ctl-1.4.1-fix_pkgconfig.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +# http://bugzilla.redhat.com/357461 +# The CTL license is ok, Free but GPL Incompatible. +BuildRequires: ilmbase-devel +#BuildRequires: autoconf, aclocal + +%description +The Color Transformation Language, or CTL, is a programming language +for digital color management. + + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: ilmbase-devel +Requires: pkgconfig + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + +%package docs +Summary: Documentation for %{name} +Group: Documentation + +%description docs +This package contains documentation files for %{name}. + + +%prep +%setup -q -n ctl-%{version} +#patch0 -p1 -b .rpath +%patch1 -p1 -b .fix_pkg-config + +# Was needed to disable rpath from configure -> patch0 +#autoreconf + +# fix perms +chmod 0644 doc/CtlManual.doc +chmod 0644 IlmCtl/{CtlInterpreter.cpp,CtlParser.cpp} + + +%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 + +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 {} ';' + +# Removes docs +rm -rf $RPM_BUILD_ROOT%{_datadir} + + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + + +%files +%defattr(-,root,root,-) +%doc AUTHORS ChangeLog COPYING NEWS README +%{_libdir}/*.so.* + +%files devel +%defattr(-,root,root,-) +%{_includedir}/CTL/ +%{_libdir}/*.so +%{_libdir}/pkgconfig/CTL.pc + +%files docs +%defattr(-,root,root,-) +%doc doc/CtlManual.pdf doc/CtlManual.doc + +%changelog +* Fri Nov 9 2007 kwizart < kwizart at gmail.com > - 1.4.1-3 +- Change package name from ctl to CTL + +* Wed Nov 7 2007 kwizart < kwizart at gmail.com > - 1.4.1-2 +- Improve license URL +- Use IlmBase.pc for pkg-config +- Fix perms in debuginfo + +* Mon Oct 29 2007 kwizart < kwizart at gmail.com > - 1.4.1-1 +- Initial package for Fedora + diff --git a/ctl-1.4.1-fix_pkgconfig.patch b/ctl-1.4.1-fix_pkgconfig.patch new file mode 100644 index 0000000..d49505c --- /dev/null +++ b/ctl-1.4.1-fix_pkgconfig.patch @@ -0,0 +1,12 @@ +diff -up ctl-1.4.1/CTL.pc.in.fix_pkg-config ctl-1.4.1/CTL.pc.in +--- ctl-1.4.1/CTL.pc.in.fix_pkg-config 2007-11-07 16:37:09.000000000 +0100 ++++ ctl-1.4.1/CTL.pc.in 2007-11-07 16:44:39.000000000 +0100 +@@ -7,5 +7,6 @@ CTL_includedir=@includedir@/CTL + Name: CTL + Description: CTL interpreter library + Version: @CTL_VERSION@ +-Libs: -L${libdir} @ILMBASE_LDFLAGS@ -lIlmCtlSimd -lIlmCtlMath -lIlmCtl @ILMBASE_LIBS@ +-Cflags: @ILMBASE_CXXFLAGS@ -I${CTL_includedir} ++Requires: IlmBase ++Libs: -L${libdir} -lIlmCtlSimd -lIlmCtlMath -lIlmCtl ++Cflags: -I${CTL_includedir} diff --git a/sources b/sources index e69de29..e7cccda 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +11e215aea6c6380833ade3b576660638 ctl-1.4.1.tar.gz