source: projects/specs/trunk/o/openjpeg/openjpeg-vl.spec @ 3474

Revision 3474, 3.0 KB checked in by inagaki, 13 years ago (diff)

update: freeimage, koffice, mtpaint, openjpeg, poppler

RevLine 
[3474]1Name: openjpeg
[521]2Summary: JPEG 2000 codec library
3Summary(ja): JPEG 2000 コーデックライブラリ
[3474]4Version: 1.4
[521]5Release: 1%{?_dist_release}
[3474]6Group: System Environment/Libraries
7License: BSD
8URL: http://www.openjpeg.org/
9
10Source0: http://openjpeg.googlecode.com/files/%{name}_v1_4_sources_r697.tgz
11
12## upstreamable patches
13# libopenjpeg has undefined references, http://bugzilla.redhat.com/467661
14# http://groups.google.com/group/openjpeg/browse_thread/thread/fba9ad2a35b12e6a
15Patch50: openjpeg-1.4-no_undefined.patch
16# fix autoconf buildsys (+DESTDIR support mostly)
17# http://groups.google.com/group/openjpeg/browse_thread/thread/6326363ebb969a99
18Patch52: openjpeg-1.4-autoconf.patch
19
[521]20BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
[3474]21BuildRequires: automake libtool
22BuildRequires: libtiff-devel
23BuildRequires: lcms-devel
[521]24
25%description
26The OpenJPEG library is an open-source JPEG 2000 codec written in C language.
27It has been developed in order to promote the use of JPEG 2000, the new
28still-image compression standard from the Joint Photographic Experts Group
29(JPEG).
30
31%package  devel
[3474]32Summary: Development files for openjpeg
33Group: Development/Libraries
34Requires: %{name} = %{version}-%{release}
[521]35
36%description devel
37The openjpeg-devel package contains libraries and header files for
38developing applications that use openjpeg.
39
[3474]40%package tools
41Summary: Command-line tools using the JPEG 2000 library
42Group: Applications/Graphics
43Requires: %{name} = %{version}-%{release}
44
45%description tools
46The openjpeg-tools package provides with command-line tools allowing
47for conversions between several formats.
48
49
[521]50%prep
[3474]51%setup -q -n openjpeg_v1_4_sources_r697 %{?runcheck:-a 1}
52# Make sure we use system libraries
53rm -rf libs
[521]54
[3474]55%patch50 -p1 -b .no_undefined
56%patch52 -p1 -b .autoconf
57autoreconf -i -f
58
[521]59%build
[3474]60%configure \
61    --enable-shared \
62    --disable-static \
63    --enable-lcms2=no \
64    --enable-lcms1=yes
[521]65
[3474]66make
67
[521]68%install
[3474]69rm -rf $RPM_BUILD_ROOT
70make install DESTDIR=$RPM_BUILD_ROOT
[521]71
[3474]72rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
73
74ln -s openjpeg-1.4 $RPM_BUILD_ROOT%{_includedir}/openjpeg
75
76
[521]77%clean
78rm -rf %{buildroot}
79
80%post -p /sbin/ldconfig
81
82%postun -p /sbin/ldconfig
83
84%files
85%defattr(-,root,root,-)
[3474]86%doc CHANGES LICENSE
[521]87%{_libdir}/libopenjpeg.so.*
[3474]88%{_mandir}/man3/*
[521]89
90%files devel
91%defattr(-,root,root,-)
[3474]92%{_includedir}/openjpeg-1.4/
93%{_libdir}/libopenjpeg.so
94%{_libdir}/pkgconfig/lib*.pc
95# legacy/compat header locations
[521]96%{_includedir}/openjpeg.h
[3474]97%{_includedir}/openjpeg/
[521]98
[3474]99%files tools
100%defattr(-,root,root,-)
101%{_bindir}/*
102%{_mandir}/man1/*
103
[521]104%changelog
[3474]105* Thu Apr 14 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.4-1
106- updated to 1.4
107- built with current VineSeed
108- added tools subpackage
109
[521]110* Thu Oct 09 2008 Shu KONNO <owa@bg.wakwak.com> 1.2-1vl5
111- applied new versioning policy, spec in utf-8
112
113* Sun Jul 29 2007 NAKAMURA Kenta <kenta@vinelinux.org> 1.2-0vl2
114- added lib64 patch for x86_64 architecture
115
116* Wed Jun 27 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2-0vl1
117- new upstream release
118
119* Sun Apr 01 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.1-0vl1
120- initial build for Vine Linux
Note: See TracBrowser for help on using the repository browser.