237 lines
7.1 KiB
RPMSpec
237 lines
7.1 KiB
RPMSpec
# Conditional for release and snapshot builds. Uncomment for release-builds.
|
|
%global rel_build 1
|
|
|
|
# This is needed, because src-url contains branched part of versioning-scheme.
|
|
%global branch 1.22
|
|
|
|
# Settings used for build from snapshots.
|
|
%{!?rel_build:%global commit a6a0a5879533b0915901ab69703eaf327bbca846 }
|
|
%{!?rel_build:%global commit_date 20141215}
|
|
%{!?rel_build:%global shortcommit %(c=%{commit};echo ${c:0:7})}
|
|
%{!?rel_build:%global git_ver git%{commit_date}-%{shortcommit}}
|
|
%{!?rel_build:%global git_rel .git%{commit_date}.%{shortcommit}}
|
|
%{!?rel_build:%global git_tar %{name}-%{version}-%{git_ver}.tar.xz}
|
|
|
|
Summary: Shared code for mate-panel, mate-session, mate-file-manager, etc
|
|
Name: mate-desktop
|
|
License: GPLv2+ and LGPLv2+ and MIT
|
|
Version: %{branch}.2
|
|
%if 0%{?rel_build}
|
|
Release: 1
|
|
%else
|
|
Release: 0.8%{?git_rel}%{?dist}
|
|
%endif
|
|
URL: http://mate-desktop.org
|
|
|
|
# for downloading the tarball use 'spectool -g -R mate-desktop.spec'
|
|
# Source for release-builds.
|
|
%{?rel_build:Source0: http://pub.mate-desktop.org/releases/%{branch}/%{name}-%{version}.tar.xz}
|
|
# Source for snapshot-builds.
|
|
%{!?rel_build:Source0: http://git.mate-desktop.org/%{name}/snapshot/%{name}-%{commit}.tar.xz#/%{git_tar}}
|
|
|
|
# fedora specific settings
|
|
Source1: mate-fedora-f28.gschema.override
|
|
Source2: mate-fedora-f29.gschema.override
|
|
Source3: mate-fedora-f30.gschema.override
|
|
Source4: mate-rhel.gschema.override
|
|
Source5: mate-mimeapps.list
|
|
|
|
BuildRequires: dconf-devel
|
|
BuildRequires: desktop-file-utils
|
|
BuildRequires: gobject-introspection-devel
|
|
BuildRequires: mate-common
|
|
BuildRequires: startup-notification-devel
|
|
BuildRequires: gtk3-devel
|
|
BuildRequires: itstool
|
|
BuildRequires: iso-codes-devel
|
|
BuildRequires: gobject-introspection-devel
|
|
BuildRequires: cairo-gobject-devel
|
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|
Requires: redhat-menus
|
|
Requires: xdg-user-dirs-gtk
|
|
Requires: mate-control-center-filesystem
|
|
Requires: mate-panel
|
|
Requires: mate-notification-daemon
|
|
Requires: mate-user-guide
|
|
%if 0%{?fedora} && 0%{?fedora} >= 30
|
|
Requires: f30-backgrounds-mate
|
|
%endif
|
|
%if 0%{?fedora} && 0%{?fedora} == 29
|
|
Requires: f29-backgrounds-mate
|
|
%endif
|
|
%if 0%{?fedora} && 0%{?fedora} == 28
|
|
Requires: f28-backgrounds-mate
|
|
%endif
|
|
|
|
%if 0%{?fedora}
|
|
# Need this to pull in the right imsettings in groupinstalls
|
|
# See https://bugzilla.redhat.com/show_bug.cgi?id=1349743
|
|
Suggests: imsettings-mate
|
|
%endif
|
|
|
|
%if 0%{?fedora}
|
|
Obsoletes: libmate
|
|
Obsoletes: libmate-devel
|
|
Obsoletes: libmatecanvas
|
|
Obsoletes: libmatecanvas-devel
|
|
Obsoletes: libmatecomponent
|
|
Obsoletes: libmatecomponent-devel
|
|
Obsoletes: libmatecomponentui
|
|
Obsoletes: libmatecomponentui-devel
|
|
Obsoletes: libmateui
|
|
Obsoletes: libmateui-devel
|
|
Obsoletes: mate-conf
|
|
Obsoletes: mate-conf-devel
|
|
Obsoletes: mate-conf-editor
|
|
Obsoletes: mate-conf-gtk
|
|
Obsoletes: mate-mime-data
|
|
Obsoletes: mate-mime-data-devel
|
|
Obsoletes: mate-vfs
|
|
Obsoletes: mate-vfs-devel
|
|
Obsoletes: mate-vfs-smb
|
|
Obsoletes: libmatekeyring
|
|
Obsoletes: libmatekeyring-devel
|
|
Obsoletes: mate-keyring
|
|
Obsoletes: mate-keyring-pam
|
|
Obsoletes: mate-keyring-devel
|
|
Obsoletes: mate-bluetooth < 1:1.6.0-6
|
|
Obsoletes: mate-bluetooth-libs < 1:1.6.0-6
|
|
Obsoletes: mate-bluetooth-devel < 1:1.6.0-6
|
|
Obsoletes: mate-doc-utils
|
|
Obsoletes: mate-character-map
|
|
Obsoletes: mate-character-map-devel
|
|
Obsoletes: libmatewnck
|
|
Obsoletes: libmatewnck-devel
|
|
Obsoletes: mate-user-share
|
|
%endif
|
|
|
|
%if 0%{?fedora} || 0%{?rhel}
|
|
Obsoletes: mate-dialogs
|
|
%endif
|
|
|
|
%description
|
|
The mate-desktop package contains an internal library
|
|
(libmatedesktop) used to implement some portions of the MATE
|
|
desktop, and also some data files and other shared components of the
|
|
MATE user environment.
|
|
|
|
%package libs
|
|
Summary: Shared libraries for libmate-desktop
|
|
License: LGPLv2+
|
|
|
|
%description libs
|
|
Shared libraries for libmate-desktop
|
|
|
|
%package devel
|
|
Summary: Libraries and headers for libmate-desktop
|
|
License: LGPLv2+
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|
|
|
%description devel
|
|
Libraries and header files for the MATE-internal private library
|
|
libmatedesktop.
|
|
|
|
|
|
%prep
|
|
%if 0%{?rel_build}
|
|
%autosetup -p1
|
|
%else
|
|
%autosetup -n %{name}-%{commit} -p1
|
|
%endif
|
|
|
|
%if 0%{?rel_build}
|
|
# for releases
|
|
#NOCONFIGURE=1 ./autogen.sh
|
|
%else
|
|
# needed for git snapshots
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
%endif
|
|
|
|
%build
|
|
%configure \
|
|
--enable-gtk-doc \
|
|
--disable-schemas-compile \
|
|
--with-x \
|
|
--disable-static \
|
|
--with-pnp-ids-path="%{_datadir}/hwdata/pnp.ids" \
|
|
--enable-gtk-doc-html \
|
|
--enable-introspection=yes
|
|
|
|
make %{?_smp_mflags} V=1
|
|
|
|
|
|
%install
|
|
%{make_install}
|
|
find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
|
find %{buildroot} -name '*.a' -exec rm -f {} ';'
|
|
|
|
|
|
desktop-file-install \
|
|
--delete-original \
|
|
--dir=%{buildroot}%{_datadir}/applications \
|
|
%{buildroot}%{_datadir}/applications/mate-about.desktop
|
|
|
|
desktop-file-install \
|
|
--delete-original \
|
|
--dir=%{buildroot}%{_datadir}/applications \
|
|
%{buildroot}%{_datadir}/applications/mate-color-select.desktop
|
|
|
|
%if 0%{?fedora} == 28
|
|
install -D -m 0644 %SOURCE1 %{buildroot}%{_datadir}/glib-2.0/schemas/10_mate-fedora.gschema.override
|
|
%endif
|
|
|
|
%if 0%{?fedora} == 29
|
|
install -D -m 0644 %SOURCE2 %{buildroot}%{_datadir}/glib-2.0/schemas/10_mate-fedora.gschema.override
|
|
%endif
|
|
|
|
%if 0%{?fedora} >= 30
|
|
install -D -m 0644 %SOURCE3 %{buildroot}%{_datadir}/glib-2.0/schemas/10_mate-fedora.gschema.override
|
|
%endif
|
|
|
|
%if 0%{?rhel}
|
|
install -D -m 0644 %SOURCE4 %{buildroot}%{_datadir}/glib-2.0/schemas/10_mate-rhel.gschema.override
|
|
%endif
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/applications
|
|
install -m 644 %SOURCE5 %{buildroot}/%{_datadir}/applications/mate-mimeapps.list
|
|
|
|
%find_lang %{name} --with-gnome --all-name
|
|
|
|
|
|
%files
|
|
%doc AUTHORS COPYING COPYING.LIB NEWS README
|
|
%{_bindir}/mate-about
|
|
%{_bindir}/mate-color-select
|
|
%{_datadir}/applications/mate-about.desktop
|
|
%{_datadir}/applications/mate-color-select.desktop
|
|
%{_datadir}/applications/mate-mimeapps.list
|
|
%{_datadir}/mate-about
|
|
%if 0%{?fedora}
|
|
%{_datadir}/glib-2.0/schemas/10_mate-fedora.gschema.override
|
|
%endif
|
|
%if 0%{?rhel}
|
|
%{_datadir}/glib-2.0/schemas/10_mate-rhel.gschema.override
|
|
%endif
|
|
%{_datadir}/icons/hicolor/*/apps/*.png
|
|
%{_datadir}/icons/hicolor/scalable/apps/mate-desktop-symbolic.svg
|
|
%{_datadir}/icons/hicolor/scalable/apps/mate-desktop.svg
|
|
%{_mandir}/man1/*
|
|
|
|
%files libs -f %{name}.lang
|
|
%{_libdir}/libmate-desktop-2.so.*
|
|
%{_datadir}/glib-2.0/schemas/org.mate.*.gschema.xml
|
|
%{_libdir}/girepository-1.0/MateDesktop-2.0.typelib
|
|
|
|
%files devel
|
|
%{_libdir}/libmate-desktop-2.so
|
|
%{_libdir}/pkgconfig/mate-desktop-2.0.pc
|
|
%{_includedir}/mate-desktop-2.0
|
|
%doc %{_datadir}/gtk-doc/html/mate-desktop
|
|
%{_datadir}/gir-1.0/MateDesktop-2.0.gir
|
|
|
|
|
|
%changelog
|
|
* Thu Jul 9 2020 douyan <douyan@kylinos.cn> - 1.22.2-1
|
|
- Init package for openEuler
|