source: projects/specs/branches/6/l/lcms2/lcms2-vl.spec @ 3258

Revision 3258, 3.2 KB checked in by inagaki, 13 years ago (diff)

NEW: lcms2

Line 
1Name:           lcms2
2Summary:        Color Management Engine
3Summary(ja):    カラーマネージメントエンジン
4Version:        2.1
5Release:        3%{?_dist_release}
6
7Group:          System Environment/Libraries
8License:        MIT
9URL:            http://www.littlecms.com/
10
11Source0:        http://www.littlecms.com/lcms2-2.1.tar.gz
12
13BuildRoot:      %{_tmppath}/%{name}-%{version}-root
14BuildRequires:  libjpeg-devel
15BuildRequires:  libtiff-devel
16BuildRequires:  zlib-devel
17
18%description
19LittleCMS intends to be a small-footprint, speed optimized color management
20engine in open source form. LCMS2 is the current version of LCMS, and can be
21parallel installed with the original (deprecated) lcms.
22
23%package        utils
24Summary:        Utility applications for %{name}
25Group:          Applications/Productivity
26
27%description    utils
28The %{name}-utils package contains utility applications for %{name}.
29
30%package        devel
31Summary:        Development files for LittleCMS
32Summary(ja):    LittleCMS の開発用ファイル
33Group:          Development/Libraries
34Requires:       %{name} = %{version}-%{release}
35Provides:       littlecms-devel = %{version}-%{release}
36
37%description    devel
38Development files for LittleCMS.
39
40%prep
41%setup -q
42
43%build
44%configure --disable-static --program-suffix=2
45
46# remove rpath from libtool
47sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
48sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
49
50make %{?_smp_mflags}
51
52%install
53rm -rf ${RPM_BUILD_ROOT}
54make install DESTDIR=${RPM_BUILD_ROOT} INSTALL="install -p"
55find ${RPM_BUILD_ROOT} -type f -name "*.la" -exec rm -f {} ';'
56install -D -m 644 include/lcms2.h $RPM_BUILD_ROOT/usr/include/lcms2.h
57install -D -m 644 include/lcms2_plugin.h $RPM_BUILD_ROOT/usr/include/lcms2_plugin.h
58
59# install docs as this is all we've got
60install -D -m 644 doc/LittleCMS2.1\ tutorial.pdf $RPM_BUILD_ROOT/usr/share/doc/lcms2-devel-2.1/tutorial.pdf
61install -D -m 644 doc/LittleCMS2.1\ API.pdf $RPM_BUILD_ROOT/usr/share/doc/lcms2-devel-2.1/api.pdf
62install -D -m 644 doc/LittleCMS2.1\ Plugin\ API.pdf $RPM_BUILD_ROOT/usr/share/doc/lcms2-devel-2.1/plugin-api.pdf
63
64%clean
65rm -rf ${RPM_BUILD_ROOT}
66
67%post -p /sbin/ldconfig
68
69%postun -p /sbin/ldconfig
70
71%files
72%defattr(-,root,root,-)
73%doc AUTHORS COPYING
74%{_libdir}/*.so.*
75
76%files utils
77%defattr(-,root,root,-)
78%{_bindir}/*
79%{_mandir}/man1/*
80
81%files devel
82%defattr(-,root,root,-)
83%{_datadir}/doc/lcms2-devel-2.1/*.pdf
84%{_includedir}/*
85%{_libdir}/*.so
86%{_libdir}/pkgconfig/%{name}.pc
87
88%changelog
89* Sat Mar 19 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.1-3
90- Initial build for Vine Linux
91
92* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-2
93- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
94
95* Wed Dec 01 2010 Richard Hughes <richard@hughsie.com> 2.1-1
96- Update to new upstream version.
97
98* Fri Jun 18 2010 Richard Hughes <richard@hughsie.com> 2.0a-3
99- Address some more review comments.
100- Resolves #590387
101
102* Fri Jun 18 2010 Richard Hughes <richard@hughsie.com> 2.0a-2
103- Address some review comments.
104- Resolves #590387
105
106* Fri Jun 18 2010 Richard Hughes <richard@hughsie.com> 2.0a-1
107- Initial package for Fedora review
Note: See TracBrowser for help on using the repository browser.