summaryrefslogtreecommitdiffstats
path: root/debian/jasper/jasper-1.900.1-debian1/jasper.spec.in
blob: 9c8f642d843e35542be47032a7c6537c0596e4e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# Note that this is NOT a relocatable package
%define package_name  jasper
%define ver           @JAS_VERSION@
%define prefix        /usr
%define datadir       %{prefix}/share
%define release       @JAS_RPM_RELEASE@

Summary: JasPer
Name: %{package_name}
Version: %{ver}
Release: %{release}
Copyright: Modified BSD
Group: Development/Libraries

# FIXME: 
Source: http://www.ece.uvic.ca/~mdadams/jasper/software/jasper-@JAS_VERSION@.tar.gz

BuildRoot: /var/tmp/%{package_name}-%{version}-root
Requires: libjpeg
BuildRequires: libjpeg-devel
URL: http://www.ece.uvic.ca/~mdadams/jasper/

%description 
JasPer is a collection        
of software (i.e., a library and application programs) for the coding 
and manipulation of images.  This software can handle image data in a 
variety of formats.  One such format supported by JasPer is the JPEG-2000 
format defined in ISO/IEC 15444-1:2000.

%package devel
Summary: Include Files and Documentation
Group: Development/Libraries
Requires: %{package_name} = %{ver}

%description devel
JasPer is a collection        
of software (i.e., a library and application programs) for the coding 
and manipulation of images.  This software can handle image data in a 
variety of formats.  One such format supported by JasPer is the JPEG-2000 
code stream format defined in ISO/IEC 15444-1:2000.

%prep
%setup

./configure --prefix=/usr --enable-shared


# build
%build

#if [ "$SMP" != "" ]; then
#  (make "MAKE=make -k -j $SMP"; exit 0)
#  make
#else
  make
#fi


# install
%install
rm -rf $RPM_BUILD_ROOT

make prefix=$RPM_BUILD_ROOT%{prefix} install


# clean
%clean
rm -rf $RPM_BUILD_ROOT


%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig


# files main package
%files
%defattr(-, root, root)

%doc README LICENSE ChangeLog

%{prefix}/bin/*
%{prefix}/lib/lib*.so.*

# files devel package
%files devel
%defattr(-, root, root)

# no API docs yet :(
# %doc doc/html/*

%{prefix}/include/jasper/*
%{prefix}/lib/lib*.so
%{prefix}/lib/lib*.a
%{prefix}/lib/lib*.la

%changelog

* Fri Oct 25 2002 Alexander D. Karaivanov <adk@medical-insight.com>

  - spec file created