colord-gtk/colord-gtk.spec
Dominique Leuenberger 36ca2f43f1 Accepting request 927044 from GNOME:Next
- Update to version 0.2.0:
  + New Features:
    - Migrate to gettext
    - Port to DocBook 5
    - Port to the Meson build system
  + Bugfixes:
    - Do not leak plug_name
    - Fix gtk-doc build when srcdir != builddir
- Add meson BuildRequires and macros following upstreams port to
  meson buildsystem.
- Add gtk-doc and docbook5-xsl-stylesheets BuildRequires, build
  gtk-doc development documentation and manpages. Following this
  split out new -doc sub-package.
- Drop intltool, no longer needed.
- Package COPYING as license, as this was somehow missed in the
  past.
- Modernize spec/cleanup.

OBS-URL: https://build.opensuse.org/request/show/927044
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/colord-gtk?expand=0&rev=18
2021-10-26 10:03:08 +00:00

140 lines
4.2 KiB
RPMSpec

#
# spec file for package colord-gtk
#
# Copyright (c) 2021 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: colord-gtk
Version: 0.2.0
Release: 0
Summary: System Daemon for Managing Color Devices -- GTK Integration
License: LGPL-2.1-or-later
Group: System/Daemons
URL: https://www.freedesktop.org/software/colord
Source0: %{url}/releases/%{name}-%{version}.tar.xz
Source99: baselibs.conf
BuildRequires: docbook5-xsl-stylesheets
BuildRequires: gtk-doc
BuildRequires: meson
BuildRequires: pkgconfig
BuildRequires: vala
BuildRequires: xsltproc
BuildRequires: pkgconfig(colord) >= 0.1.27
BuildRequires: pkgconfig(gio-2.0) >= 2.25.9
BuildRequires: pkgconfig(gio-unix-2.0)
BuildRequires: pkgconfig(glib-2.0) >= 2.28.0
BuildRequires: pkgconfig(gmodule-2.0)
BuildRequires: pkgconfig(gobject-2.0)
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(gthread-2.0)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(lcms2) >= 2.2
%description
colord is a system activated daemon that maps devices to color profiles.
It is used by gnome-color-manager for system integration and use when
there are no users logged in.
%package -n libcolord-gtk1
Summary: System Daemon for Managing Color Devices -- GTK Integration Library
Group: System/Libraries
Suggests: colord
# for the -lang package to be installable
Provides: %{name} = %{version}
%description -n libcolord-gtk1
colord is a system activated daemon that maps devices to color profiles.
It is used by gnome-color-manager for system integration and use when
there are no users logged in.
%package -n typelib-1_0-ColordGtk-1_0
Summary: GTK Integration Introspection bindings for colord-gtk
Group: System/Libraries
%description -n typelib-1_0-ColordGtk-1_0
colord is a system activated daemon that maps devices to color profiles.
It is used by gnome-color-manager for system integration and use when
there are no users logged in.
This package provides the GObject Introspection bindings for the
libcolord-gtk library.
%package -n libcolord-gtk-devel
Summary: System Daemon for Managing Color Devices -- GTK Integration Development Files
Group: Development/Languages/C and C++
Requires: libcolord-gtk1 = %{version}
Requires: typelib-1_0-ColordGtk-1_0 = %{version}
%description -n libcolord-gtk-devel
colord is a system activated daemon that maps devices to color profiles.
It is used by gnome-color-manager for system integration and use when
there are no users logged in.
%package doc
Summary: Development Documentation for colord-gtk
Group: Documentation/HTML
BuildArch: noarch
%description doc
This package contains development documentation for the colord-gtk packages.
%lang_package
%prep
%autosetup -p1
%build
%meson \
-Dvapi=true \
%{nil}
%meson_build
%install
%meson_install
%find_lang %{name} %{?no_lang_C}
%post -n libcolord-gtk1 -p /sbin/ldconfig
%postun -n libcolord-gtk1 -p /sbin/ldconfig
%files lang -f %{name}.lang
%files
%{_bindir}/cd-convert
%{_mandir}/man1/cd-convert.1%{ext_man}
%files -n libcolord-gtk1
%license COPYING
%{_libdir}/libcolord-gtk.so.*
%files -n typelib-1_0-ColordGtk-1_0
%{_libdir}/girepository-1.0/ColordGtk-1.0.typelib
%files -n libcolord-gtk-devel
%{_includedir}/colord-1/colord-gtk.h
%{_includedir}/colord-1/colord-gtk/
%{_libdir}/libcolord-gtk.so
%{_libdir}/pkgconfig/colord-gtk.pc
%{_datadir}/gir-1.0/ColordGtk-1.0.gir
%{_datadir}/vala/vapi/colord-gtk.vapi
%{_datadir}/vala/vapi/colord-gtk.deps
%files doc
%doc AUTHORS NEWS README
%{_datadir}/gtk-doc/html/%{name}
%changelog