CTL/CTL.spec

131 lines
3.3 KiB
RPMSpec
Raw Normal View History

2007-11-17 00:37:47 +00:00
Name: CTL
Version: 1.4.1
Release: 9%{?dist}
2007-11-17 00:37:47 +00:00
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
2008-01-08 18:34:23 +00:00
Patch0: ctl-1.4.1-gcc43.patch
2007-11-17 00:37:47 +00:00
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}
2008-01-08 18:34:23 +00:00
%patch0 -p1 -b .gcc43
2007-11-17 00:37:47 +00:00
%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
2008-02-09 14:25:41 +00:00
# clean unused-direct-shlib-dependencies
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
2007-11-17 00:37:47 +00:00
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
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.1-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2009-02-03 19:27:44 +00:00
* Tue Feb 3 2009 kwizart < kwizart at gmail.com > - 1.4.1-8
- Rebuild for pkgconfig(CTL)
2008-10-03 13:42:54 +00:00
* Fri Oct 3 2008 kwizart < kwizart at gmail.com > - 1.4.1-7
- Rebuild for F-10
2008-02-09 14:25:41 +00:00
* 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
2008-01-08 18:34:23 +00:00
* Tue Jan 8 2008 kwizart < kwizart at gmail.com > - 1.4.1-4
- Fix gcc43
2007-11-17 00:37:47 +00:00
* 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