File etoile-FontManager.spec of Package etoile-FontManager
#
# spec file for package etoile-FontManager
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define _name FontManager
Name: etoile-FontManager
Version: 0.1
Release: 0
License: BSD-3-Clause
Summary: A Font Previewer and Installer
Url: https://github.com/etoile/FontManager
Group: Productivity/Office/Other
Source: %{_name}-%{version}.tar.gz
BuildRequires: gnustep-make
BuildRequires: gnustep-base-devel
BuildRequires: gnustep-gui-devel
BuildRequires: pkgconfig(avahi-client)
BuildRequires: pkgconfig(libffi)
BuildRequires: libgcrypt-devel
BuildRequires: pkgconfig(gnutls)
BuildRequires: libicu-devel
BuildRequires: pkgconfig(libxslt)
BuildRequires: pkgconfig(zlib)
BuildRequires: gmp-devel
BuildRequires: gcc-objc
BuildRequires: fdupes
Requires: gnustep-back
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Font Manager is an app for the purpose of (guess what) managing fonts. It can
currently show you your installed fonts and show samples of them. Planned
features are disabling/enabling fonts and easy installation of fonts (including
previewing of uninstalled fonts).
%prep
%setup -q -n %{_name}-%{version}
%build
. %{_datadir}/GNUstep/Makefiles/GNUstep.sh
make %{?_smp_mflags}
%install
. %{_datadir}/GNUstep/Makefiles/GNUstep.sh
%make_install GNUSTEP_INSTALLATION_DOMAIN=SYSTEM
chmod a-x %{buildroot}%{_libdir}/GNUstep/Applications/%{_name}.app/Resources/%{_name}.desktop
chmod a-x %{buildroot}%{_libdir}/GNUstep/Applications/%{_name}.app/Resources/UnicodeBlock*.plist
chmod a-x %{buildroot}%{_libdir}/GNUstep/Applications/%{_name}.app/Resources/English.lproj/FontDocument.gorm/data.classes
%fdupes -s %{buildroot}%{_libdir}/GNUstep/Applications/%{_name}.app/Resources/
%files
%defattr(-,root,root)
%doc ChangeLog README COPYING
%{_bindir}/*
%{_libdir}/GNUstep
%changelog