- use %{?dist}
- BR: Mesa-GL
This commit is contained in:
parent
71e660f417
commit
9c08482aa7
33
jasper.spec
33
jasper.spec
@ -8,17 +8,20 @@
|
|||||||
|
|
||||||
Summary: Implementation of the JPEG-2000 standard, Part 1
|
Summary: Implementation of the JPEG-2000 standard, Part 1
|
||||||
Name: jasper
|
Name: jasper
|
||||||
License: JasPer License Version 2.0
|
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
Version: 1.701.0
|
Version: 1.701.0
|
||||||
Release: 4%{?dist_tag}
|
Release: 5%{?dist}
|
||||||
|
|
||||||
|
License: JasPer License Version 2.0
|
||||||
URL: http://www.ece.uvic.ca/~mdadams/jasper/
|
URL: http://www.ece.uvic.ca/~mdadams/jasper/
|
||||||
Source: http://www.ece.uvic.ca/~mdadams/jasper/software/jasper-1.701.0.zip
|
Source: http://www.ece.uvic.ca/~mdadams/jasper/software/jasper-1.701.0.zip
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
BuildRequires: libjpeg-devel
|
BuildRequires: XFree86-devel
|
||||||
|
%define x_pkg %{expand:%%(basename `rpm -q --qf "%%{NAME}" --whatprovides XFree86-devel` -devel)}
|
||||||
|
BuildRequires: %{x_pkg}-Mesa-libGL
|
||||||
BuildRequires: freeglut-devel
|
BuildRequires: freeglut-devel
|
||||||
|
BuildRequires: libjpeg-devel
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package contains an implementation of the image compression
|
This package contains an implementation of the image compression
|
||||||
@ -28,11 +31,10 @@ from the JP2 and JPC formats.
|
|||||||
%package devel
|
%package devel
|
||||||
Summary: JPEG-2000 library developer files
|
Summary: JPEG-2000 library developer files
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: %{name} = %{version}
|
Requires: %{name} = %{version}-%{release}
|
||||||
Requires: libjpeg-devel
|
Requires: libjpeg-devel
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
JPEG-2000 library developer files.
|
%{summary}.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
@ -41,26 +43,23 @@ JPEG-2000 library developer files.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%configure \
|
%configure \
|
||||||
--program-prefix="%{?_program_prefix}" \
|
--disable-static
|
||||||
--disable-dependency-tracking \
|
|
||||||
--enable-shared --disable-static
|
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
# Unpackaged files
|
# Unpackaged files
|
||||||
rm -f doc/README
|
rm -f doc/README
|
||||||
rm -f $RPM_BUILD_ROOT%{_bindir}/%{_target_platform}*
|
rm -f $RPM_BUILD_ROOT%{_bindir}/%{_target_platform}*
|
||||||
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
|
||||||
|
|
||||||
# avoid conflict(s) with tomcat
|
# avoid conflict(s) with tomcat
|
||||||
pushd $RPM_BUILD_ROOT%{_bindir}
|
mv $RPM_BUILD_ROOT%{_bindir}/jasper $RPM_BUILD_ROOT%{_bindir}/jaspertool
|
||||||
mv jasper jaspertool
|
|
||||||
popd
|
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
@ -73,11 +72,11 @@ popd
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc doc/*
|
%doc doc/*
|
||||||
%{_includedir}/*
|
%{_includedir}/*
|
||||||
#{_libdir}/lib*.la
|
|
||||||
%{_libdir}/lib*.so
|
%{_libdir}/lib*.so
|
||||||
|
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
|
|
||||||
@ -86,6 +85,10 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Oct 17 2005 Rex Dieter <rexdieter[AT]users.sf.net> 1.701.0-5
|
||||||
|
- use %%{?dist}
|
||||||
|
- BR: Mesa-GL
|
||||||
|
|
||||||
* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
|
* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
|
||||||
- rebuilt
|
- rebuilt
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user