- add libopenjp2.pc (demand introduced by ImageMagick 6.8.8-5)
OBS-URL: https://build.opensuse.org/package/show/graphics/openjpeg2?expand=0&rev=11
This commit is contained in:
parent
6611cb6ce7
commit
97dfcea2be
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 18 07:21:03 UTC 2014 - pgajdos@suse.com
|
||||
|
||||
- add libopenjp2.pc (demand introduced by ImageMagick 6.8.8-5)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 26 09:48:46 UTC 2013 - gber@opensuse.org
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package openjpeg2
|
||||
#
|
||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -15,6 +15,7 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define library_name libopenjp2-6
|
||||
|
||||
Name: openjpeg2
|
||||
@ -27,12 +28,12 @@ Url: http://www.openjpeg.org/
|
||||
Source0: openjpeg-%{version}.tar.gz
|
||||
Source1: baselibs.conf
|
||||
BuildRequires: cmake
|
||||
BuildRequires: doxygen
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc
|
||||
BuildRequires: pkgconfig(libtiff-4)
|
||||
BuildRequires: pkgconfig(lcms2)
|
||||
BuildRequires: pkgconfig(libpng)
|
||||
BuildRequires: doxygen
|
||||
BuildRequires: pkgconfig(libtiff-4)
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
@ -98,11 +99,22 @@ cmake \
|
||||
make %{?_smp_mflags} VERBOSE=1
|
||||
make %{?_smp_mflags} VERBOSE=1 doc
|
||||
|
||||
cat << END > libopenjp2.pc
|
||||
Name: openjpeg
|
||||
Description: Opensource JPEG 2000 Codec Implementation
|
||||
URL: %{url}
|
||||
Version: %{version}
|
||||
Libs: -L%{_libdir} -lopenjp2
|
||||
Libs.private: -lm
|
||||
Cflags: -I%{_includedir}/openjpeg-2.0
|
||||
END
|
||||
|
||||
%fdupes -s doc/html/
|
||||
|
||||
%install
|
||||
%make_install -C build
|
||||
|
||||
mkdir -p %{buildroot}%{_libdir}/pkgconfig/
|
||||
install -m 644 build/libopenjp2.pc %{buildroot}%{_libdir}/pkgconfig/
|
||||
rm -rf %{buildroot}%{_datadir}/doc
|
||||
|
||||
%post -n %{library_name} -p /sbin/ldconfig
|
||||
@ -124,6 +136,7 @@ rm -rf %{buildroot}%{_datadir}/doc
|
||||
%doc build/doc/html/
|
||||
%{_includedir}/openjpeg-2.0/
|
||||
%{_libdir}/libopenjp2.so
|
||||
%{_libdir}/pkgconfig/libopenjp2.pc
|
||||
%{_libdir}/openjpeg-2.0/
|
||||
%{_mandir}/man3/libopenjp2.3%{ext_man}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user