1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
2 | |
---|
3 | Name: lcms2 |
---|
4 | Summary: Color Management Engine |
---|
5 | Summary(ja): カラーマネージメントエンジン |
---|
6 | Version: 2.9 |
---|
7 | Release: 1%{?_dist_release} |
---|
8 | |
---|
9 | Group: System Environment/Libraries |
---|
10 | License: MIT |
---|
11 | URL: http://www.littlecms.com/ |
---|
12 | |
---|
13 | Source0: http://www.littlecms.com/%{name}-%{version}.tar.gz |
---|
14 | |
---|
15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
16 | BuildRequires: libjpeg-devel |
---|
17 | BuildRequires: libtiff-devel |
---|
18 | BuildRequires: zlib-devel |
---|
19 | |
---|
20 | Vendor: Project Vine |
---|
21 | Distribution: Vine Linux |
---|
22 | |
---|
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 | |
---|
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} |
---|
63 | Requires: %{name}-devel = %{version}-%{release} |
---|
64 | |
---|
65 | %description -n compat32-%{name}-devel |
---|
66 | Development files for LittleCMS. |
---|
67 | |
---|
68 | |
---|
69 | |
---|
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 | |
---|
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 | |
---|
125 | %changelog |
---|
126 | * Fri Dec 15 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.9-1 |
---|
127 | - new upstream release. |
---|
128 | |
---|
129 | * Sun Apr 05 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.7-1 |
---|
130 | - new upstream release |
---|
131 | |
---|
132 | * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.6-1 |
---|
133 | - new upstream release |
---|
134 | |
---|
135 | * Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.5-1 |
---|
136 | - new upstream release |
---|
137 | |
---|
138 | * Sat Sep 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.4-1 |
---|
139 | - new upstream release |
---|
140 | |
---|
141 | * Sat Mar 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.3-1 |
---|
142 | - new upstream release |
---|
143 | - create compat32 sub packages |
---|
144 | |
---|
145 | * Tue Aug 16 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.2-1 |
---|
146 | - new upstream release |
---|
147 | |
---|
148 | * Sat Mar 19 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.1-3 |
---|
149 | - Initial build for Vine Linux |
---|
150 | |
---|
151 | * Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-2 |
---|
152 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
153 | |
---|
154 | * Wed Dec 01 2010 Richard Hughes <richard@hughsie.com> 2.1-1 |
---|
155 | - Update to new upstream version. |
---|
156 | |
---|
157 | * Fri Jun 18 2010 Richard Hughes <richard@hughsie.com> 2.0a-3 |
---|
158 | - Address some more review comments. |
---|
159 | - Resolves #590387 |
---|
160 | |
---|
161 | * Fri Jun 18 2010 Richard Hughes <richard@hughsie.com> 2.0a-2 |
---|
162 | - Address some review comments. |
---|
163 | - Resolves #590387 |
---|
164 | |
---|
165 | * Fri Jun 18 2010 Richard Hughes <richard@hughsie.com> 2.0a-1 |
---|
166 | - Initial package for Fedora review |
---|