source: projects/specs/trunk/l/lcms2/lcms2-vl.spec @ 11262

Revision 11262, 4.5 KB checked in by tomop, 6 years ago (diff)

lcms2-2.9-1

Line 
1%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
2
3Name:           lcms2
4Summary:        Color Management Engine
5Summary(ja):    カラーマネージメントエンジン
6Version:        2.9
7Release:        1%{?_dist_release}
8
9Group:          System Environment/Libraries
10License:        MIT
11URL:            http://www.littlecms.com/
12
13Source0:        http://www.littlecms.com/%{name}-%{version}.tar.gz
14
15BuildRoot:      %{_tmppath}/%{name}-%{version}-root
16BuildRequires:  libjpeg-devel
17BuildRequires:  libtiff-devel
18BuildRequires:  zlib-devel
19
20Vendor: Project Vine
21Distribution: Vine Linux
22
23%description
24LittleCMS intends to be a small-footprint, speed optimized color management
25engine in open source form. LCMS2 is the current version of LCMS, and can be
26parallel installed with the original (deprecated) lcms.
27
28%package        utils
29Summary:        Utility applications for %{name}
30Group:          Applications/Productivity
31
32%description    utils
33The %{name}-utils package contains utility applications for %{name}.
34
35%package        devel
36Summary:        Development files for LittleCMS
37Summary(ja):    LittleCMS の開発用ファイル
38Group:          Development/Libraries
39Requires:       %{name} = %{version}-%{release}
40Provides:       littlecms-devel = %{version}-%{release}
41
42%description    devel
43Development files for LittleCMS.
44
45
46# compat32
47%package -n     compat32-%{name}
48Summary:        Color Management Engine
49Summary(ja):    カラーマネージメントエンジン
50Group:          System Environment/Libraries
51Requires:       %{name} = %{version}-%{release}
52
53%description -n compat32-%{name}
54LittleCMS intends to be a small-footprint, speed optimized color management
55engine in open source form. LCMS2 is the current version of LCMS, and can be
56parallel installed with the original (deprecated) lcms.
57
58%package -n     compat32-%{name}-devel
59Summary:        Development files for LittleCMS
60Summary(ja):    LittleCMS の開発用ファイル
61Group:          Development/Libraries
62Requires:       compat32-%{name} = %{version}-%{release}
63Requires:       %{name}-devel = %{version}-%{release}
64
65%description -n compat32-%{name}-devel
66Development 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
77sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
78sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
79
80make %{?_smp_mflags}
81
82%install
83rm -rf ${RPM_BUILD_ROOT}
84make install DESTDIR=${RPM_BUILD_ROOT} INSTALL="install -p"
85find ${RPM_BUILD_ROOT} -type f -name "*.la" -exec rm -f {} ';'
86install -D -m 644 include/lcms2.h $RPM_BUILD_ROOT/usr/include/lcms2.h
87install -D -m 644 include/lcms2_plugin.h $RPM_BUILD_ROOT/usr/include/lcms2_plugin.h
88
89
90%clean
91rm -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
Note: See TracBrowser for help on using the repository browser.