SHA256
1
0
forked from pool/libopenraw

Accepting request 581410 from GNOME:Next

spec-cleaner

OBS-URL: https://build.opensuse.org/request/show/581410
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libopenraw?expand=0&rev=30
This commit is contained in:
Tomáš Chvátal 2018-03-01 07:46:58 +00:00 committed by Git OBS Bridge
parent ca70d63b76
commit 37bb7c3aa3
2 changed files with 19 additions and 18 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Feb 28 16:35:49 UTC 2018 - dimstar@opensuse.org
- Modernize spec-file by calling spec-cleaner
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Feb 1 13:06:41 UTC 2017 - adam.majer@suse.de Wed Feb 1 13:06:41 UTC 2017 - adam.majer@suse.de

View File

@ -1,7 +1,7 @@
# #
# spec file for package libopenraw # spec file for package libopenraw
# #
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -20,9 +20,9 @@ Name: libopenraw
Version: 0.0.9 Version: 0.0.9
Release: 0 Release: 0
Summary: A library to decode digital camera RAW files Summary: A library to decode digital camera RAW files
License: LGPL-2.1+ License: LGPL-2.1-or-later
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Url: http://libopenraw.freedesktop.org/ URL: http://libopenraw.freedesktop.org/
Source0: http://libopenraw.freedesktop.org/download/%{name}-%{version}.tar.bz2 Source0: http://libopenraw.freedesktop.org/download/%{name}-%{version}.tar.bz2
Source1: http://libopenraw.freedesktop.org/download/%{name}-%{version}.tar.bz2.asc Source1: http://libopenraw.freedesktop.org/download/%{name}-%{version}.tar.bz2.asc
Source2: %{name}.keyring Source2: %{name}.keyring
@ -32,19 +32,19 @@ Patch2: libopenraw-orf-thumbnail.patch
Patch3: openraw-noansiflag.patch Patch3: openraw-noansiflag.patch
BuildRequires: autoconf BuildRequires: autoconf
BuildRequires: automake BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: libjpeg-devel
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: pkgconfig(gdk-pixbuf-2.0) >= 2.21
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(libxml-2.0)
%if 0%{?suse_version} > 1325 %if 0%{?suse_version} > 1325
BuildRequires: libboost_test-devel BuildRequires: libboost_test-devel
%else %else
BuildRequires: boost-devel >= 1.31.1 BuildRequires: boost-devel >= 1.31.1
%endif %endif
BuildRequires: gcc-c++
BuildRequires: libjpeg-devel
BuildRequires: libtool
BuildRequires: pkgconfig(gdk-pixbuf-2.0) >= 2.21
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(libxml-2.0)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
libopenraw is a library that aim at decoding digital camera RAW files. libopenraw is a library that aim at decoding digital camera RAW files.
@ -91,16 +91,14 @@ export CXXFLAGS="%{optflags} -fvisibility-inlines-hidden"
make V=1 %{?_smp_mflags} make V=1 %{?_smp_mflags}
%install %install
make DESTDIR=%{buildroot} install %{?_smp_mflags} %make_install
find %{buildroot} -type f -name "*.la" -delete -print find %{buildroot} -type f -name "*.la" -delete -print
%check %check
make %{?_smp_mflags} check make %{?_smp_mflags} check
%post -n libopenraw1 -p /sbin/ldconfig %post -n libopenraw1 -p /sbin/ldconfig
%postun -n libopenraw1 -p /sbin/ldconfig %postun -n libopenraw1 -p /sbin/ldconfig
%post -n gdk-pixbuf-loader-libopenraw %post -n gdk-pixbuf-loader-libopenraw
%{gdk_pixbuf_loader_post} %{gdk_pixbuf_loader_post}
@ -108,16 +106,14 @@ make %{?_smp_mflags} check
%{gdk_pixbuf_loader_postun} %{gdk_pixbuf_loader_postun}
%files -n libopenraw1 %files -n libopenraw1
%defattr(-,root,root) %license COPYING
%doc README TODO COPYING ChangeLog %doc README TODO ChangeLog
%{_libdir}/*.so.* %{_libdir}/*.so.*
%files -n gdk-pixbuf-loader-libopenraw %files -n gdk-pixbuf-loader-libopenraw
%defattr(-,root,root)
%{_libdir}/gdk-pixbuf-2.0/*/loaders/libopenraw_pixbuf.so %{_libdir}/gdk-pixbuf-2.0/*/loaders/libopenraw_pixbuf.so
%files -n libopenraw-devel %files -n libopenraw-devel
%defattr(-,root,root)
%{_libdir}/*.so %{_libdir}/*.so
%dir %{_includedir}/libopenraw-1.0 %dir %{_includedir}/libopenraw-1.0
%{_includedir}/libopenraw-1.0/* %{_includedir}/libopenraw-1.0/*