File rawstudio.spec of Package rawstudio

# spec file for package rawstudio
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

%define sover 2_1
Name:           rawstudio
Version:        2.0+git20170413.003dd4f3
Release:        0
Summary:        Converter for RAW image files
License:        GPL-2.0
Group:          Productivity/Graphics/Other
Source0:        %{name}-%{version}.tar.xz
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  gcc-c++
BuildRequires:  git
BuildRequires:  intltool
BuildRequires:  libjpeg-devel
BuildRequires:  libtiff-devel
BuildRequires:  libtool
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(dbus-1)
BuildRequires:  pkgconfig(exiv2)
BuildRequires:  pkgconfig(fftw3f)
BuildRequires:  pkgconfig(flickcurl)
BuildRequires:  pkgconfig(gconf-2.0)
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(lcms2)
BuildRequires:  pkgconfig(lensfun)
BuildRequires:  pkgconfig(libcurl)
BuildRequires:  pkgconfig(libgphoto2)
BuildRequires:  pkgconfig(libssl)
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(sqlite3)
Requires(post): update-desktop-files
Requires(postun): update-desktop-files

RawStudio is a digital camera RAW files processing software.

%package -n 	lib%{name}-%{sover}
Summary:        RawStudio library
Group:          System/Libraries

%description -n lib%{name}-%{sover}
This package contain the library needed to run a programs compiled
using lib%{name}.

%package -n 	lib%{name}-devel
Summary:        Development files for %{name}
Group:          Development/Libraries/C and C++
Requires:       lib%{name}-%{sover} = %{version}

%description -n lib%{name}-devel
This package contains, header files, and libraries needed to develop
application that use lib%{name}.


%setup -q

./ --no-configure
%configure --disable-static
make %{?_smp_mflags}

install -Dm0644 {pixmaps/,%{buildroot}%{_datadir}/pixmaps/}%{name}.png
find %{buildroot}{%{_libdir},%{_datadir}/icons} \
-maxdepth 1 -type f \( -name \*.la -o -name \*.png \) -delete -print
%find_lang %{name}



%post -n lib%{name}-%{sover} -p /sbin/ldconfig
%postun -n lib%{name}-%{sover} -p /sbin/ldconfig

%dir %{_datadir}/appdata

%files -n lib%{name}-%{sover}

%files -n lib%{name}-devel

%files lang -f %{name}.lang

openSUSE Build Service is sponsored by