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