]>
Commit | Line | Data |
---|---|---|
d05bfa31 ER |
1 | # TODO |
2 | # - use xdg paths (~/.config/fontconfig/fonts.conf instead of ~/fonts.conf) and (~/.config/fontik instead of ~/.fontik) | |
970f7251 ER |
3 | %define subver 5dbbc513 |
4 | %define rel 1 | |
5 | Summary: A Configuration Tool for Font-wise, User-set Fontconfig Rules | |
6 | Name: fontik | |
7 | Version: 0.6.1 | |
8 | Release: 0.%{rel}.%{subver} | |
9 | License: GPL v3 | |
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 | |
14 | # cd fontik | |
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 | |
29 | BuildRequires: vala | |
30 | BuildRequires: vala-libgee | |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
32 | ||
33 | %description | |
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 | |
37 | user. | |
38 | ||
39 | %prep | |
40 | %setup -q -n %{name}-%{subver} | |
41 | %patch0 -p1 | |
42 | %patch1 -p1 | |
43 | ||
44 | %build | |
45 | %{__make} | |
46 | ||
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | %{__make} install \ | |
50 | PREFIX=%{_prefix} \ | |
51 | PROGRAM_LIBEXEC_DIR=%{_libexecdir} \ | |
52 | DESTDIR=$RPM_BUILD_ROOT | |
53 | ||
54 | # drop pointless wrapper, use bin directly | |
55 | mv $RPM_BUILD_ROOT{%{_libdir},%{_bindir}}/fontik | |
56 | ||
57 | desktop-file-install --dir=$RPM_BUILD_ROOT%{_desktopdir} %{SOURCE1} | |
58 | ||
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
64 | %doc COPYING README | |
65 | %attr(755,root,root) %{_bindir}/fontik | |
66 | %{_datadir}/%{name} | |
67 | %{_desktopdir}/%{name}.desktop |