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

Revision 12394, 4.7 KB checked in by tomop, 4 years ago (diff)

updated 4 packages

geeqie-1.5.1-1

lcms2-2.9-2

sane-1.0.29-1

xsane-0.999-3

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