Group :: Sistema/Bibliotecas
RPM: gnome-bluetooth
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%def_enable snapshot
%define ver_major 3.34
%define api_ver 1.0
%define sover 13
%define _libexecdir %_prefix/libexec
%def_enable introspection
%def_enable gtk_doc
%def_enable check
%def_enable sendto
Name: gnome-bluetooth
Version: %ver_major.5
Release: alt2
Summary: The GNOME Bluetooth Subsystem
License: GPL-2.0 and LGPL-2.1
Group: System/Libraries
Url: https://wiki.gnome.org/Projects/GnomeBluetooth
Provides: bluez-gnome = %version
Obsoletes: bluez-gnome < %version
Requires: bluez >= 5.51
Requires: lib%name = %version-%release rfkill
%if_disabled snapshot
Source: ftp://ftp.gnome.org/pub/gnome/sources/%name/%ver_major/%name-%version.tar.xz
%else
Source: %name-%version.tar
%endif
%define gtk_ver 3.12.0
%define dbusmock_ver 0.23.0
BuildRequires(pre): meson rpm-macros-alternatives
BuildRequires: gtk-doc yelp-tools
BuildRequires: libgio-devel libgtk+3-devel >= %gtk_ver libudev-devel libnotify-devel
BuildRequires: libcanberra-gtk3-devel
%if_enabled introspection
BuildRequires(pre): rpm-build-gir
BuildRequires: gobject-introspection-devel libgtk+3-gir-devel
%endif
%{?_enable_check:BuildRequires: bluez dbus python3-module-pygobject3 python3-module-dbus
BuildRequires: python3-module-dbusmock >= %dbusmock_ver typelib(Gtk) = 3.0}
%description
The GNOME Bluetooth Subsystem
%package -n lib%name
Summary: The GNOME Bluetooth Subsystem library
Group: System/Libraries
%description -n lib%name
This package provides GNOME Bluetooth Subsystem library
%package -n lib%name-gir
Summary: GObject introspection data for the GNOME Bluetooth library
Group: System/Libraries
Requires: lib%name = %version-%release
%description -n lib%name-gir
GObject introspection data for the GNOME Bluetooth library
%package -n lib%name-devel
Summary: The GNOME Bluetooth Subsystem development package
Group: Development/C
Requires: lib%name = %version-%release
%description -n lib%name-devel
This package provides GNOME Bluetooth Subsystem development files
%package -n lib%name-devel-doc
Summary: The GNOME Bluetooth Subsystem development documentation
Group: Development/C
BuildArch: noarch
Conflicts: lib%name < %version
%description -n lib%name-devel-doc
This package provides GNOME Bluetooth Subsystem development documentation
%package -n lib%name-gir-devel
Summary: GObject introspection devel data for the GNOME Bluetooth library
Group: System/Libraries
BuildArch: noarch
Requires: lib%name = %version-%release
Requires: lib%name-gir = %version-%release
%description -n lib%name-gir-devel
GObject introspection devel data for the GNOME Bluetooth library
%prep
%setup
# fix for build with meson >= 0.61
sed -i '/^[[:space:]]*desktop\,/d' sendto/meson.build
%build
%meson \
-Dicon_update=false \
%{?_enable_gtk_doc:-Dgtk_doc=true} \
%{?_enable_introspection:-Dintrospection=true} \
%{?_disable_sendto:-Dsendto=false}
%nil
%meson_build
%install
%meson_install
%if_enabled sendto
mv %buildroot%_bindir/bluetooth-sendto %buildroot%_bindir/%name-sendto
mkdir -p %buildroot%_altdir
cat > %buildroot%_altdir/%name <<EOF
%_bindir/bluetooth-sendto %_bindir/%name-sendto 10
EOF
%endif
%find_lang --with-gnome --output=global.lang %name gnome-bluetooth2
%check
export LD_LIBRARY_PATH=%buildroot%_libdir
dbus-run-session %meson_test
%files -f global.lang
%{?_enable_sendto:%_altdir/%name
%_bindir/%name-sendto
%_desktopdir/*.desktop}
%_datadir/%name/
%_iconsdir/hicolor/*/*/*
%_man1dir/*.1*
%doc AUTHORS README* NEWS
%files -n lib%name
%_libdir/lib%name.so.%{sover}*
%files -n lib%name-devel
%_includedir/%name/
%_libdir/lib%name.so
%_pkgconfigdir/%name-%api_ver.pc
%files -n lib%name-devel-doc
%_datadir/gtk-doc/html/*
%if_enabled introspection
%files -n lib%name-gir
%_typelibdir/GnomeBluetooth-%api_ver.typelib
%files -n lib%name-gir-devel
%_girdir/GnomeBluetooth-%api_ver.gir
%endif
%changelog
…
Todas as alterações você pod ver aqui
%define ver_major 3.34
%define api_ver 1.0
%define sover 13
%define _libexecdir %_prefix/libexec
%def_enable introspection
%def_enable gtk_doc
%def_enable check
%def_enable sendto
Name: gnome-bluetooth
Version: %ver_major.5
Release: alt2
Summary: The GNOME Bluetooth Subsystem
License: GPL-2.0 and LGPL-2.1
Group: System/Libraries
Url: https://wiki.gnome.org/Projects/GnomeBluetooth
Provides: bluez-gnome = %version
Obsoletes: bluez-gnome < %version
Requires: bluez >= 5.51
Requires: lib%name = %version-%release rfkill
%if_disabled snapshot
Source: ftp://ftp.gnome.org/pub/gnome/sources/%name/%ver_major/%name-%version.tar.xz
%else
Source: %name-%version.tar
%endif
%define gtk_ver 3.12.0
%define dbusmock_ver 0.23.0
BuildRequires(pre): meson rpm-macros-alternatives
BuildRequires: gtk-doc yelp-tools
BuildRequires: libgio-devel libgtk+3-devel >= %gtk_ver libudev-devel libnotify-devel
BuildRequires: libcanberra-gtk3-devel
%if_enabled introspection
BuildRequires(pre): rpm-build-gir
BuildRequires: gobject-introspection-devel libgtk+3-gir-devel
%endif
%{?_enable_check:BuildRequires: bluez dbus python3-module-pygobject3 python3-module-dbus
BuildRequires: python3-module-dbusmock >= %dbusmock_ver typelib(Gtk) = 3.0}
%description
The GNOME Bluetooth Subsystem
%package -n lib%name
Summary: The GNOME Bluetooth Subsystem library
Group: System/Libraries
%description -n lib%name
This package provides GNOME Bluetooth Subsystem library
%package -n lib%name-gir
Summary: GObject introspection data for the GNOME Bluetooth library
Group: System/Libraries
Requires: lib%name = %version-%release
%description -n lib%name-gir
GObject introspection data for the GNOME Bluetooth library
%package -n lib%name-devel
Summary: The GNOME Bluetooth Subsystem development package
Group: Development/C
Requires: lib%name = %version-%release
%description -n lib%name-devel
This package provides GNOME Bluetooth Subsystem development files
%package -n lib%name-devel-doc
Summary: The GNOME Bluetooth Subsystem development documentation
Group: Development/C
BuildArch: noarch
Conflicts: lib%name < %version
%description -n lib%name-devel-doc
This package provides GNOME Bluetooth Subsystem development documentation
%package -n lib%name-gir-devel
Summary: GObject introspection devel data for the GNOME Bluetooth library
Group: System/Libraries
BuildArch: noarch
Requires: lib%name = %version-%release
Requires: lib%name-gir = %version-%release
%description -n lib%name-gir-devel
GObject introspection devel data for the GNOME Bluetooth library
%prep
%setup
# fix for build with meson >= 0.61
sed -i '/^[[:space:]]*desktop\,/d' sendto/meson.build
%build
%meson \
-Dicon_update=false \
%{?_enable_gtk_doc:-Dgtk_doc=true} \
%{?_enable_introspection:-Dintrospection=true} \
%{?_disable_sendto:-Dsendto=false}
%nil
%meson_build
%install
%meson_install
%if_enabled sendto
mv %buildroot%_bindir/bluetooth-sendto %buildroot%_bindir/%name-sendto
mkdir -p %buildroot%_altdir
cat > %buildroot%_altdir/%name <<EOF
%_bindir/bluetooth-sendto %_bindir/%name-sendto 10
EOF
%endif
%find_lang --with-gnome --output=global.lang %name gnome-bluetooth2
%check
export LD_LIBRARY_PATH=%buildroot%_libdir
dbus-run-session %meson_test
%files -f global.lang
%{?_enable_sendto:%_altdir/%name
%_bindir/%name-sendto
%_desktopdir/*.desktop}
%_datadir/%name/
%_iconsdir/hicolor/*/*/*
%_man1dir/*.1*
%doc AUTHORS README* NEWS
%files -n lib%name
%_libdir/lib%name.so.%{sover}*
%files -n lib%name-devel
%_includedir/%name/
%_libdir/lib%name.so
%_pkgconfigdir/%name-%api_ver.pc
%files -n lib%name-devel-doc
%_datadir/gtk-doc/html/*
%if_enabled introspection
%files -n lib%name-gir
%_typelibdir/GnomeBluetooth-%api_ver.typelib
%files -n lib%name-gir-devel
%_girdir/GnomeBluetooth-%api_ver.gir
%endif
%changelog
…
Todas as alterações você pod ver aqui