- (main) drop Requires: %name-libs

- -devel: Provides: libjasper-devel
- drop (unused) geojasper bits
This commit is contained in:
Rex Dieter 2007-09-17 18:15:53 +00:00
parent 2971918144
commit c5cba16587

View File

@ -4,25 +4,15 @@
# kdelibs
# netpbm
# define to use GeoJasper
#define geo 1
Summary: Implementation of the JPEG-2000 standard, Part 1
Name: jasper
Group: System Environment/Libraries
Version: 1.900.1
Release: 4%{?dist}
Release: 5%{?dist}
License: JasPer
%if "%{?geo:1}" == "1"
%define geojasper_ver 1.2.9
URL: http://www.dimin.net/software/utils.html
Source: http://dimin.m6.net/software/utils/geojasper_src.zip
Provides: geojasper = %{geojasper_ver}
%else
URL: http://www.ece.uvic.ca/~mdadams/jasper/
Source0: http://www.ece.uvic.ca/~mdadams/jasper/software/jasper-%{version}.zip
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Patch1: jasper-1.701.0-GL.patch
@ -37,8 +27,6 @@ BuildRequires: libjpeg-devel
# "freeglut-devel: Requires: libGL-devel libGLU-devel" (#179464)
BuildRequires: freeglut-devel libGL-devel libGLU-devel
Requires: %{name}-libs = %{version}-%{release}
%description
This package contains an implementation of the image compression
standard JPEG-2000, Part 1. It consists of tools for conversion to and
@ -47,6 +35,7 @@ from the JP2 and JPC formats.
%package devel
Summary: JasPer header files, libraries and developer documentation.
Group: Development/Libraries
Provides: libjasper-devel = %{version}-%{release}
Requires: %{name}-libs = %{version}-%{release}
Requires: libjpeg-devel
%description devel
@ -69,22 +58,11 @@ Requires: %{name} = %{version}-%{release}
%prep
%setup -q -n %{name}-%{version}%{?geo:.GEO}
%setup -q -n %{name}-%{version}
%patch1 -p1 -b .GL
%patch3 -p1 -b .CVE-2007-2721
%if "%{?geo:1}" == "1"
chmod +x configure configure.ac
%patch2 -p1 -b .GL-ac
libtoolize --force
aclocal
autoconf
autoheader
automake -a
%endif
%build
@ -120,7 +98,6 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc COPYRIGHT LICENSE NEWS README
%{_bindir}/imgcmp
%{_bindir}/imginfo
%{_bindir}/jasper
@ -135,6 +112,7 @@ rm -rf $RPM_BUILD_ROOT
%files libs
%defattr(-,root,root,-)
%doc COPYRIGHT LICENSE NEWS README
%{_libdir}/lib*.so.*
%files utils
@ -145,6 +123,11 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Mon Sep 17 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.900.1-5
- (main) drop Requires: %%name-libs
- -devel: Provides: libjasper-devel
- drop (unused) geojasper bits
* Wed Aug 22 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 1.900.1-4
- -libs subpkg to be multilib friendlier
- -utils subpkg for non-essential binaries jiv, tmrdemo (#244153)