2023-01-04 17:52:22 +08:00
|
|
|
%global minorversion 4.18
|
|
|
|
|
%global xfceversion 4.18
|
2021-06-15 19:40:09 +08:00
|
|
|
%global namespc Garcon
|
|
|
|
|
|
2020-07-29 15:49:07 +08:00
|
|
|
Name: garcon
|
2023-01-04 17:52:22 +08:00
|
|
|
Version: 4.18.0
|
|
|
|
|
Release: 1
|
2020-07-29 15:49:07 +08:00
|
|
|
Summary: Implementation of the freedesktop.org menu specification
|
2021-06-15 19:40:09 +08:00
|
|
|
|
|
|
|
|
# garcon's source code is licensed under the LGPLv2+,
|
|
|
|
|
# while its documentation is licensed under the GFDL 1.1
|
2022-04-18 10:40:01 +08:00
|
|
|
License: LGPLv2+ and GFDL-1.1-or-later
|
2020-07-29 15:49:07 +08:00
|
|
|
URL: http://xfce.org/
|
2021-06-15 19:40:09 +08:00
|
|
|
Source0: http://archive.xfce.org/src/xfce/%{name}/0.8/%{name}-%{version}.tar.bz2
|
|
|
|
|
Source1: xfce-documentation.directory
|
|
|
|
|
Patch0: garcon-%{xfceversion}-menus.patch
|
|
|
|
|
|
2020-07-29 15:49:07 +08:00
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.30.0
|
2021-06-15 19:40:09 +08:00
|
|
|
BuildRequires: pkgconfig(libxfce4util-1.0) >= %{xfceversion}
|
|
|
|
|
BuildRequires: pkgconfig(libxfce4ui-2) >= %{xfceversion}
|
2020-07-29 15:49:07 +08:00
|
|
|
BuildRequires: pkgconfig(gio-2.0) >= 2.30.0
|
|
|
|
|
BuildRequires: pkgconfig(gobject-2.0) >= 2.30.0
|
|
|
|
|
BuildRequires: pkgconfig(gthread-2.0) >= 2.30.0
|
|
|
|
|
BuildRequires: pkgconfig(gtk+-3.0) >= 3.14.0
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
BuildRequires: gtk-doc
|
|
|
|
|
BuildRequires: gettext
|
|
|
|
|
BuildRequires: intltool
|
2021-06-15 19:40:09 +08:00
|
|
|
BuildRequires: gobject-introspection-devel
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
|
|
|
|
|
Obsoletes: libxfce4menu < 4.6.3
|
|
|
|
|
# because of %%{_datadir}/desktop-directories/xfce-*
|
|
|
|
|
Conflicts: xfdesktop <= 4.6.2
|
2020-07-29 15:49:07 +08:00
|
|
|
|
|
|
|
|
%description
|
2021-06-15 19:40:09 +08:00
|
|
|
Garcon is an implementation of the freedesktop.org menu specification replacing
|
|
|
|
|
the former Xfce menu library libxfce4menu. It is based on GLib/GIO only and
|
|
|
|
|
aims at covering the entire specification except for legacy menus.
|
2020-07-29 15:49:07 +08:00
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
Requires: gtk2-devel
|
|
|
|
|
Requires: pkgconfig
|
2021-06-15 19:40:09 +08:00
|
|
|
Obsoletes: libxfce4menu-devel < 4.6.2
|
2020-07-29 15:49:07 +08:00
|
|
|
|
|
|
|
|
%description devel
|
2021-06-15 19:40:09 +08:00
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
2020-07-29 15:49:07 +08:00
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
2021-06-15 19:40:09 +08:00
|
|
|
%patch0 -p1 -b.menus
|
|
|
|
|
|
2020-07-29 15:49:07 +08:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%configure --disable-static --enable-gtk-doc
|
|
|
|
|
|
|
|
|
|
%make_build
|
|
|
|
|
|
2021-06-15 19:40:09 +08:00
|
|
|
|
2020-07-29 15:49:07 +08:00
|
|
|
%install
|
|
|
|
|
%make_install
|
|
|
|
|
|
2021-06-15 19:40:09 +08:00
|
|
|
# fix permissions for libraries
|
|
|
|
|
chmod 755 %{buildroot}/%{_libdir}/*.so
|
|
|
|
|
|
|
|
|
|
find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
2020-07-29 15:49:07 +08:00
|
|
|
|
|
|
|
|
%find_lang %{name}
|
2021-06-15 19:40:09 +08:00
|
|
|
install -pm 644 %{SOURCE1} %{buildroot}%{_datadir}/desktop-directories
|
2020-07-29 15:49:07 +08:00
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
|
%license COPYING
|
2021-06-15 19:40:09 +08:00
|
|
|
%doc AUTHORS ChangeLog NEWS
|
2020-07-29 15:49:07 +08:00
|
|
|
%config(noreplace) %{_sysconfdir}/xdg/menus/xfce-applications.menu
|
|
|
|
|
%{_libdir}/*.so.*
|
2021-06-15 19:40:09 +08:00
|
|
|
%{_libdir}/girepository-1.0/%{namespc}*
|
|
|
|
|
%{_datadir}/icons/hicolor/32x32/apps/org.xfce.garcon.png
|
|
|
|
|
%{_datadir}/gir-1.0/%{namespc}*
|
2020-07-29 15:49:07 +08:00
|
|
|
%{_datadir}/desktop-directories/*.directory
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%{_includedir}/*
|
|
|
|
|
%{_libdir}/*.so
|
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2021-06-15 19:40:09 +08:00
|
|
|
%doc %{_datadir}/gtk-doc/
|
2020-07-29 15:49:07 +08:00
|
|
|
|
|
|
|
|
%changelog
|
2023-01-04 17:52:22 +08:00
|
|
|
* Wed Jan 04 2023 misaka00251 <liuxin@iscas.ac.cn> - 4.18.0-1
|
|
|
|
|
- Update to 4.18.0
|
|
|
|
|
|
2022-04-18 10:40:01 +08:00
|
|
|
* Mon Apr 18 2022 zhanglin <lin.zhang@turbolinux.com.cn> - 0.8.0-2
|
|
|
|
|
- Add GFDL Version GFDL-1.1-or-later
|
|
|
|
|
|
2021-06-15 19:40:09 +08:00
|
|
|
* Fri Jun 18 2021 zhanglin <lin.zhang@turbolinux.com.cn> - 0.8.0-1
|
|
|
|
|
- Update to 0.8.0
|
|
|
|
|
|
2020-07-29 15:49:07 +08:00
|
|
|
* Tue Jul 7 2020 Dillon Chen <dillon.chen@turbolinux.com.cn> - 0.7.0-1
|
|
|
|
|
- Init Package
|