110 lines
2.6 KiB
RPMSpec
110 lines
2.6 KiB
RPMSpec
|
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
|
|||
|
|