122 lines
2.9 KiB
RPMSpec
122 lines
2.9 KiB
RPMSpec
Name: CTL
|
||
Version: 1.4.1
|
||
Release: 6%{?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-gcc43.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 .gcc43
|
||
%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
|
||
|
||
# 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 {} ';'
|
||
|
||
# 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
|
||
* Sat Feb 9 2008 kwizart < kwizart at gmail.com > - 1.4.1-6
|
||
- Rebuild for gcc43
|
||
|
||
* Wed Jan 9 2008 kwizart < kwizart at gmail.com > - 1.4.1-5
|
||
- clean unused-direct-shlib-dependencies
|
||
|
||
* Tue Jan 8 2008 kwizart < kwizart at gmail.com > - 1.4.1-4
|
||
- Fix gcc43
|
||
|
||
* 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
|
||
|