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