Skip to content

Instantly share code, notes, and snippets.

@shawn-sterling
Created January 20, 2013 00:12
Show Gist options
  • Save shawn-sterling/4575943 to your computer and use it in GitHub Desktop.
Save shawn-sterling/4575943 to your computer and use it in GitHub Desktop.
mate-terminal spec fix
Summary: Terminal emulator for MATE
Name: mate-terminal
Version: 1.5.0
Release: 2%{?dist}
License: GPLv3+
Group: User Interface/Desktops
URL: http://mate-desktop.org
Source0: http://pub.mate-desktop.org/releases/1.5/%{name}-%{version}.tar.xz
BuildRequires: dconf-devel
BuildRequires: glib2-devel
BuildRequires: gtk2-devel
#BuildRequires: mate-conf-devel
#BuildRequires: libglade2-devel
#BuildRequires: libmateui-devel
BuildRequires: vte-devel
BuildRequires: desktop-file-utils
BuildRequires: rarian-compat
BuildRequires: mate-doc-utils
BuildRequires: mate-common
BuildRequires: libSM-devel
%description
Mate-terminal is a terminal emulator for MATE. It supports translucent
backgrounds, opening multiple terminals in a single window (tabs) and
clickable URLs.
%prep
%setup -q
NOCONFIGURE=1 ./autogen.sh
%build
%configure --disable-static \
--with-gtk=2.0 \
--disable-scrollkeeper \
--disable-schemas-compile \
--with-gnu-ld
# --with-omf-dir=%{_datadir}/omf \
make %{?_smp_mflags} V=1
%install
make DESTDIR=%{buildroot} install
#%find_lang --all-name
%find_lang %{name} --all-name
#sed -i -e "s/Icon=mate-terminal.png/Icon=mate-terminal/" \
#$RPM_BUILD_ROOT%{_datadir}/applications/mate-terminal.desktop
desktop-file-install \
--remove-category="MATE" \
--add-category="X-Mate" \
--delete-original \
--dir=%{buildroot}%{_datadir}/applications \
%{buildroot}%{_datadir}/applications/mate-terminal.desktop
%files -f %{name}.lang
# -f #%{po_package}.lang
#%doc AUTHORS COPYING NEWS README
%{_bindir}/mate-terminal
%{_datadir}/mate-terminal/
%{_datadir}/mate/help/mate-terminal/
%{_datadir}/omf/mate-terminal/
%{_datadir}/applications/mate-terminal.desktop
%{_datadir}/glib-2.0/schemas/org.mate.terminal.gschema.xml
#%{_sysconfdir}/mateconf/schemas/mate-terminal.schemas
%changelog
* Sat Jan 19 2013 Shawn Sterling <shawn@systemtemplar.org> 1.5.0-2
- put rarian-compat back in buildrequires
- added org.mate.terminal.gschema.xml
- changed find_lang and files section to %{name}
* Sat Jan 19 2013 Dan Mashal <dan.mashal@fedoraproject.org> - 1.5.0-1
- Update to latest upstream release
* Wed Oct 24 2012 Leigh Scott <leigh123linux@googlemail.com> - 1.4.0-4
- Add requires libmate
* Mon Oct 15 2012 Leigh Scott <leigh123linux@googlemail.com> - 1.4.0-3
- add build requires rarian-compat
* Mon Oct 15 2012 Leigh Scott <leigh123linux@googlemail.com> - 1.4.0-2
- remove surplus build requires
* Sun Oct 14 2012 Leigh Scott <leigh123linux@googlemail.com> - 1.4.0-1
- initial build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment