From 6ff96eb18ea81b28beb7a31fd351bd5540db137c Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Sun, 12 Jul 2015 10:28:14 +0000 Subject: [PATCH] - from PLD --- lxappearance.spec | 78 ++++++++++++++++++++++++++++++++++++++++++++++ mate-desktop.patch | 10 ++++++ 2 files changed, 88 insertions(+) create mode 100644 lxappearance.spec create mode 100644 mate-desktop.patch diff --git a/lxappearance.spec b/lxappearance.spec new file mode 100644 index 0000000..0e57d00 --- /dev/null +++ b/lxappearance.spec @@ -0,0 +1,78 @@ +# +# Conditional build: +%bcond_with gtk3 # build GTK+3 disables GTK+2 +%bcond_without gtk2 # build with GTK+2 + +%if %{with gtk3} +%undefine with_gtk2 +%endif + +Summary: Desktop-independent theme switcher for GTK+ +Name: lxappearance +Version: 0.5.5 +Release: 2 +License: GPL v3 +Group: X11/Applications +Source0: http://downloads.sourceforge.net/lxde/%{name}-%{version}.tar.xz +# Source0-md5: a67113681d9d0a6d936289909aed5782 +Patch0: mate-desktop.patch +URL: http://wiki.lxde.org/en/LXAppearance +BuildRequires: gettext-tools +%{?with_gtk2:BuildRequires: gtk+2-devel >= 2:2.12.0} +%{?with_gtk3:BuildRequires: gtk+3-devel} +BuildRequires: intltool +BuildRequires: pkgconfig +BuildRequires: tar >= 1:1.22 +BuildRequires: xz +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +LXAppearance is part of LXDE project. It's a desktop-independent theme +switcher for GTK+. + +%package devel +Summary: Header files for lxappearance +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +Header files for lxappearance. + +%prep +%setup -q +%patch0 -p1 + +%build +%configure \ + %{?with_gtk3:--enable-gtk3} +%{__make} V=1 + +%install +rm -rf $RPM_BUILD_ROOT +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +install -d $RPM_BUILD_ROOT%{_libdir}/lxappearance/plugins + +%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/tt_RU + +%find_lang %{name} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f %{name}.lang +%defattr(644,root,root,755) +%doc AUTHORS README +%attr(755,root,root) %{_bindir}/lxappearance +%dir %{_libdir}/lxappearance +%dir %{_libdir}/lxappearance/plugins +%{_mandir}/man1/lxappearance.1* +%{_desktopdir}/lxappearance.desktop +%{_datadir}/lxappearance + +%files devel +%defattr(644,root,root,755) +%dir %{_includedir}/lxappearance +%{_includedir}/lxappearance/lxappearance.h +%{_pkgconfigdir}/lxappearance.pc diff --git a/mate-desktop.patch b/mate-desktop.patch new file mode 100644 index 0000000..47c2b76 --- /dev/null +++ b/mate-desktop.patch @@ -0,0 +1,10 @@ +--- lxappearance-0.5.4/data/lxappearance.desktop.orig 2014-01-02 17:43:53.883082195 +0100 ++++ lxappearance-0.5.4/data/lxappearance.desktop 2014-01-02 17:44:08.656643940 +0100 +@@ -140,6 +140,6 @@ Comment[zh_CN]=自定义您桌面和应ç + Comment[zh_TW]=自訂桌面和應用程式的外觀風格 + Icon=preferences-desktop-theme + Exec=lxappearance +-NotShowIn=GNOME;KDE;XFCE; ++NotShowIn=GNOME;KDE;MATE;XFCE; + StartupNotify=true + Categories=GTK;Settings;DesktopSettings;X-LXDE-Settings; -- 2.37.3