SHA256
1
0
forked from pool/libopenraw

Accepting request 973236 from multimedia:libs

- Move documentation to where it's used: with the -devel subpackage.
- Update descriptions, RPM groups
- Trim --with-pic (only has effects for static libs)
- Repair a bit more of libopenraw1->9

- Rename libopenraw1 subpackage to libopenraw9, making the package
  name the actual library provided.
- Make libopenraw9 conflict with libopenraw1 >= 0.3 to ease the
  upgrade path from the wrongly named package.

OBS-URL: https://build.opensuse.org/request/show/973236
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libopenraw?expand=0&rev=34
This commit is contained in:
2022-04-27 19:42:01 +00:00
committed by Git OBS Bridge
3 changed files with 36 additions and 20 deletions

View File

@@ -1,6 +1,7 @@
libopenraw1
libopenraw9
conflicts "libopenraw1-<targettype>"
gdk-pixbuf-loader-libopenraw
requires "gdk-pixbuf-query-loaders-<targettype>"
supplements "packageand(libopenraw1-<targettype>:gdk-pixbuf-<targettype>)"
supplements "packageand(libopenraw9-<targettype>:gdk-pixbuf-<targettype>)"
post "%gdk_pixbuf_loader_post"
postun "%gdk_pixbuf_loader_postun"

View File

@@ -1,3 +1,19 @@
-------------------------------------------------------------------
Wed Apr 27 12:41:15 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
- Move documentation to where it's used: with the -devel subpackage.
- Update descriptions, RPM groups
- Trim --with-pic (only has effects for static libs)
- Repair a bit more of libopenraw1->9
-------------------------------------------------------------------
Mon Apr 25 14:48:28 UTC 2022 - Dominique Leuenberger <dimstar@opensuse.org>
- Rename libopenraw1 subpackage to libopenraw9, making the package
name the actual library provided.
- Make libopenraw9 conflict with libopenraw1 >= 0.3 to ease the
upgrade path from the wrongly named package.
-------------------------------------------------------------------
Wed Apr 20 06:42:43 UTC 2022 - Paolo Stivanin <info@paolostivanin.com>

View File

@@ -48,17 +48,19 @@ BuildRequires: boost-devel >= 1.60.0
%description
libopenraw is a library that aim at decoding digital camera RAW files.
%package -n libopenraw1
%package -n libopenraw9
Summary: A library to decode digital camera RAW files
Group: Development/Libraries/C and C++
Group: System/Libraries
# libopenraw.so.0, version 0.3.1, was wrongly packaged in libopenraw1
Conflicts: libopenraw1 >= 0.3
%description -n libopenraw1
%description -n libopenraw9
libopenraw is a library that aim at decoding digital camera RAW files.
%package -n gdk-pixbuf-loader-libopenraw
Summary: A library to decode digital camera RAW files -- gdk-pixbuf loader
Group: Development/Libraries/C and C++
Supplements: packageand(libopenraw1:gdk-pixbuf)
Summary: gdk-pixbuf loader for libopenraw
Group: System/Libraries
Supplements: packageand(libopenraw9:gdk-pixbuf)
%{gdk_pixbuf_loader_requires}
%description -n gdk-pixbuf-loader-libopenraw
@@ -71,14 +73,13 @@ Summary: A library to decode digital camera RAW files
Group: Development/Libraries/C and C++
#include gdk-pixbuf/gdk-pixbuf.h
Requires: gdk-pixbuf-devel
Requires: libopenraw1 = %{version}
Requires: libopenraw9 = %{version}-%{release}
%description -n libopenraw-devel
libopenraw is a library that aim at decoding digital camera RAW files.
%prep
%setup -q
%setup -q -T -D -a3
%autosetup -a3
mv vendor lib/mp4/
cd lib/mp4
sed -i 's/byteorder = "1.2.1"/byteorder = "1.2.2"/' mp4parse/Cargo.toml
@@ -92,20 +93,18 @@ directory = "vendor"
EOF
%build
%configure \
--disable-static \
--with-pic
make V=1 %{?_smp_mflags}
%configure --disable-static
%make_build
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%check
make %{?_smp_mflags} check
%make_build check
%post -n libopenraw1 -p /sbin/ldconfig
%postun -n libopenraw1 -p /sbin/ldconfig
%post -n libopenraw9 -p /sbin/ldconfig
%postun -n libopenraw9 -p /sbin/ldconfig
%post -n gdk-pixbuf-loader-libopenraw
%{gdk_pixbuf_loader_post}
@@ -113,15 +112,15 @@ make %{?_smp_mflags} check
%postun -n gdk-pixbuf-loader-libopenraw
%{gdk_pixbuf_loader_postun}
%files -n libopenraw1
%files -n libopenraw9
%license COPYING
%doc README TODO ChangeLog
%{_libdir}/*.so.*
%files -n gdk-pixbuf-loader-libopenraw
%{_libdir}/gdk-pixbuf-2.0/*/loaders/libopenraw_pixbuf.so
%files -n libopenraw-devel
%doc README TODO ChangeLog
%{_libdir}/*.so
%dir %{_includedir}/libopenraw-0.3
%{_includedir}/libopenraw-0.3/*