[5879] | 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
| 2 | |
---|
[3258] | 3 | Name: lcms2 |
---|
| 4 | Summary: Color Management Engine |
---|
| 5 | Summary(ja): カラーマネージメントエンジン |
---|
[9489] | 6 | Version: 2.7 |
---|
[4616] | 7 | Release: 1%{?_dist_release} |
---|
[3258] | 8 | |
---|
| 9 | Group: System Environment/Libraries |
---|
| 10 | License: MIT |
---|
| 11 | URL: http://www.littlecms.com/ |
---|
| 12 | |
---|
[5879] | 13 | Source0: http://www.littlecms.com/%{name}-%{version}.tar.gz |
---|
[3258] | 14 | |
---|
| 15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 16 | BuildRequires: libjpeg-devel |
---|
| 17 | BuildRequires: libtiff-devel |
---|
| 18 | BuildRequires: zlib-devel |
---|
| 19 | |
---|
[4616] | 20 | Vendor: Project Vine |
---|
| 21 | Distribution: Vine Linux |
---|
| 22 | |
---|
[3258] | 23 | %description |
---|
| 24 | LittleCMS intends to be a small-footprint, speed optimized color management |
---|
| 25 | engine in open source form. LCMS2 is the current version of LCMS, and can be |
---|
| 26 | parallel installed with the original (deprecated) lcms. |
---|
| 27 | |
---|
| 28 | %package utils |
---|
| 29 | Summary: Utility applications for %{name} |
---|
| 30 | Group: Applications/Productivity |
---|
| 31 | |
---|
| 32 | %description utils |
---|
| 33 | The %{name}-utils package contains utility applications for %{name}. |
---|
| 34 | |
---|
| 35 | %package devel |
---|
| 36 | Summary: Development files for LittleCMS |
---|
| 37 | Summary(ja): LittleCMS の開発用ファイル |
---|
| 38 | Group: Development/Libraries |
---|
| 39 | Requires: %{name} = %{version}-%{release} |
---|
| 40 | Provides: littlecms-devel = %{version}-%{release} |
---|
| 41 | |
---|
| 42 | %description devel |
---|
| 43 | Development files for LittleCMS. |
---|
| 44 | |
---|
[5879] | 45 | |
---|
| 46 | # compat32 |
---|
| 47 | %package -n compat32-%{name} |
---|
| 48 | Summary: Color Management Engine |
---|
| 49 | Summary(ja): カラーマネージメントエンジン |
---|
| 50 | Group: System Environment/Libraries |
---|
| 51 | Requires: %{name} = %{version}-%{release} |
---|
| 52 | |
---|
| 53 | %description -n compat32-%{name} |
---|
| 54 | LittleCMS intends to be a small-footprint, speed optimized color management |
---|
| 55 | engine in open source form. LCMS2 is the current version of LCMS, and can be |
---|
| 56 | parallel installed with the original (deprecated) lcms. |
---|
| 57 | |
---|
| 58 | %package -n compat32-%{name}-devel |
---|
| 59 | Summary: Development files for LittleCMS |
---|
| 60 | Summary(ja): LittleCMS の開発用ファイル |
---|
| 61 | Group: Development/Libraries |
---|
| 62 | Requires: compat32-%{name} = %{version}-%{release} |
---|
[9489] | 63 | Requires: %{name}-devel = %{version}-%{release} |
---|
[5879] | 64 | |
---|
| 65 | %description -n compat32-%{name}-devel |
---|
| 66 | Development files for LittleCMS. |
---|
| 67 | |
---|
| 68 | |
---|
| 69 | |
---|
[3258] | 70 | %prep |
---|
| 71 | %setup -q |
---|
| 72 | |
---|
| 73 | %build |
---|
| 74 | %configure --disable-static --program-suffix=2 |
---|
| 75 | |
---|
| 76 | # remove rpath from libtool |
---|
| 77 | sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool |
---|
| 78 | sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool |
---|
| 79 | |
---|
| 80 | make %{?_smp_mflags} |
---|
| 81 | |
---|
| 82 | %install |
---|
| 83 | rm -rf ${RPM_BUILD_ROOT} |
---|
| 84 | make install DESTDIR=${RPM_BUILD_ROOT} INSTALL="install -p" |
---|
| 85 | find ${RPM_BUILD_ROOT} -type f -name "*.la" -exec rm -f {} ';' |
---|
| 86 | install -D -m 644 include/lcms2.h $RPM_BUILD_ROOT/usr/include/lcms2.h |
---|
| 87 | install -D -m 644 include/lcms2_plugin.h $RPM_BUILD_ROOT/usr/include/lcms2_plugin.h |
---|
| 88 | |
---|
| 89 | |
---|
| 90 | %clean |
---|
| 91 | rm -rf ${RPM_BUILD_ROOT} |
---|
| 92 | |
---|
| 93 | %post -p /sbin/ldconfig |
---|
| 94 | |
---|
| 95 | %postun -p /sbin/ldconfig |
---|
| 96 | |
---|
| 97 | %files |
---|
| 98 | %defattr(-,root,root,-) |
---|
| 99 | %doc AUTHORS COPYING |
---|
| 100 | %{_libdir}/*.so.* |
---|
| 101 | |
---|
| 102 | %files utils |
---|
| 103 | %defattr(-,root,root,-) |
---|
| 104 | %{_bindir}/* |
---|
| 105 | %{_mandir}/man1/* |
---|
| 106 | |
---|
| 107 | %files devel |
---|
| 108 | %defattr(-,root,root,-) |
---|
| 109 | %{_includedir}/* |
---|
| 110 | %{_libdir}/*.so |
---|
| 111 | %{_libdir}/pkgconfig/%{name}.pc |
---|
| 112 | |
---|
[5879] | 113 | # compat32 |
---|
| 114 | %if %{build_compat32} |
---|
| 115 | %files -n compat32-%{name} |
---|
| 116 | %defattr(-,root,root,-) |
---|
| 117 | %{_libdir}/*.so.* |
---|
| 118 | |
---|
| 119 | %files -n compat32-%{name}-devel |
---|
| 120 | %defattr(-,root,root,-) |
---|
| 121 | %{_libdir}/*.so |
---|
| 122 | %endif |
---|
| 123 | |
---|
| 124 | |
---|
[3258] | 125 | %changelog |
---|
[9489] | 126 | * Sun Apr 05 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.7-1 |
---|
| 127 | - new upstream release |
---|
| 128 | |
---|
[9073] | 129 | * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.6-1 |
---|
| 130 | - new upstream release |
---|
| 131 | |
---|
[8119] | 132 | * Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.5-1 |
---|
| 133 | - new upstream release |
---|
| 134 | |
---|
[6890] | 135 | * Sat Sep 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.4-1 |
---|
| 136 | - new upstream release |
---|
| 137 | |
---|
[5879] | 138 | * Sat Mar 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.3-1 |
---|
| 139 | - new upstream release |
---|
| 140 | - create compat32 sub packages |
---|
| 141 | |
---|
[4616] | 142 | * Tue Aug 16 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.2-1 |
---|
| 143 | - new upstream release |
---|
| 144 | |
---|
[3258] | 145 | * Sat Mar 19 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.1-3 |
---|
| 146 | - Initial build for Vine Linux |
---|
| 147 | |
---|
| 148 | * Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-2 |
---|
| 149 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
| 150 | |
---|
| 151 | * Wed Dec 01 2010 Richard Hughes <richard@hughsie.com> 2.1-1 |
---|
| 152 | - Update to new upstream version. |
---|
| 153 | |
---|
| 154 | * Fri Jun 18 2010 Richard Hughes <richard@hughsie.com> 2.0a-3 |
---|
| 155 | - Address some more review comments. |
---|
| 156 | - Resolves #590387 |
---|
| 157 | |
---|
| 158 | * Fri Jun 18 2010 Richard Hughes <richard@hughsie.com> 2.0a-2 |
---|
| 159 | - Address some review comments. |
---|
| 160 | - Resolves #590387 |
---|
| 161 | |
---|
| 162 | * Fri Jun 18 2010 Richard Hughes <richard@hughsie.com> 2.0a-1 |
---|
| 163 | - Initial package for Fedora review |
---|