1 %define subver 5dbbc513
3 Summary: A Configuration Tool for Font-wise, User-set Fontconfig Rules
6 Release: 0.%{rel}.%{subver}
8 Group: X11/Applications
9 # The source for this package was pulled from upstream's vcs. Use the
10 # following commands to generate the tarball:
11 # git clone git://gitorious.org/fontik/fontik.git
13 # export subver=5dbbc513
14 # git archive --format tar --prefix fontik-${subver}/ ${subver} |\
15 # gzip -c > ../fontik-${subver}.tar.gz
16 Source0: http://pkgs.fedoraproject.org/repo/pkgs/fontik/%{name}-%{subver}.tar.gz/3ffed0689ff0a5c81bb53135aac38074/fontik-%{subver}.tar.gz
17 # Source0-md5: 3ffed0689ff0a5c81bb53135aac38074
18 Source1: %{name}.desktop
19 Patch0: %{name}-valac-save-temps.patch
20 Patch1: %{name}-gee-0.8.patch
21 URL: http://suruma.freeflux.net/blog/archive/2009/10/14/fontik-a-font-configuration-gui.html
22 BuildRequires: desktop-file-utils
23 BuildRequires: fontconfig-devel
24 BuildRequires: gtk+2-devel
25 BuildRequires: libgee-devel
26 BuildRequires: libxml2-devel
28 BuildRequires: vala-libgee
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 Fontik is basically intended to tweak and configure some properties of
33 fonts. These settings are usually set system-wide while installing the
34 fonts. The power of fontconfig is thus limited when it comes to the
38 %setup -q -n %{name}-%{subver}
46 rm -rf $RPM_BUILD_ROOT
49 PROGRAM_LIBEXEC_DIR=%{_libexecdir} \
50 DESTDIR=$RPM_BUILD_ROOT
52 # drop pointless wrapper, use bin directly
53 mv $RPM_BUILD_ROOT{%{_libdir},%{_bindir}}/fontik
55 desktop-file-install --dir=$RPM_BUILD_ROOT%{_desktopdir} %{SOURCE1}
58 rm -rf $RPM_BUILD_ROOT
61 %defattr(644,root,root,755)
63 %attr(755,root,root) %{_bindir}/fontik
65 %{_desktopdir}/%{name}.desktop