Aligning with WRF
[WPS.git] / external / jasper-1.900.29 / jasper.spec.in
blob9c8f642d843e35542be47032a7c6537c0596e4e9
1 # Note that this is NOT a relocatable package
2 %define package_name jasper
3 %define ver @JAS_VERSION@
4 %define prefix /usr
5 %define datadir %{prefix}/share
6 %define release @JAS_RPM_RELEASE@
8 Summary: JasPer
9 Name: %{package_name}
10 Version: %{ver}
11 Release: %{release}
12 Copyright: Modified BSD
13 Group: Development/Libraries
15 # FIXME:
16 Source: http://www.ece.uvic.ca/~mdadams/jasper/software/jasper-@JAS_VERSION@.tar.gz
18 BuildRoot: /var/tmp/%{package_name}-%{version}-root
19 Requires: libjpeg
20 BuildRequires: libjpeg-devel
21 URL: http://www.ece.uvic.ca/~mdadams/jasper/
23 %description
24 JasPer is a collection
25 of software (i.e., a library and application programs) for the coding
26 and manipulation of images. This software can handle image data in a
27 variety of formats. One such format supported by JasPer is the JPEG-2000
28 format defined in ISO/IEC 15444-1:2000.
30 %package devel
31 Summary: Include Files and Documentation
32 Group: Development/Libraries
33 Requires: %{package_name} = %{ver}
35 %description devel
36 JasPer is a collection
37 of software (i.e., a library and application programs) for the coding
38 and manipulation of images. This software can handle image data in a
39 variety of formats. One such format supported by JasPer is the JPEG-2000
40 code stream format defined in ISO/IEC 15444-1:2000.
42 %prep
43 %setup
45 ./configure --prefix=/usr --enable-shared
48 # build
49 %build
51 #if [ "$SMP" != "" ]; then
52 # (make "MAKE=make -k -j $SMP"; exit 0)
53 # make
54 #else
55 make
56 #fi
59 # install
60 %install
61 rm -rf $RPM_BUILD_ROOT
63 make prefix=$RPM_BUILD_ROOT%{prefix} install
66 # clean
67 %clean
68 rm -rf $RPM_BUILD_ROOT
71 %post -p /sbin/ldconfig
73 %postun -p /sbin/ldconfig
76 # files main package
77 %files
78 %defattr(-, root, root)
80 %doc README LICENSE ChangeLog
82 %{prefix}/bin/*
83 %{prefix}/lib/lib*.so.*
85 # files devel package
86 %files devel
87 %defattr(-, root, root)
89 # no API docs yet :(
90 # %doc doc/html/*
92 %{prefix}/include/jasper/*
93 %{prefix}/lib/lib*.so
94 %{prefix}/lib/lib*.a
95 %{prefix}/lib/lib*.la
97 %changelog
99 * Fri Oct 25 2002 Alexander D. Karaivanov <adk@medical-insight.com>
101 - spec file created