]> git.pld-linux.org Git - packages/fontik.git/blob - fontik.spec
db1b64149b2a1bb51cdf74f24a8490ac1d89a677
[packages/fontik.git] / fontik.spec
1 %define subver  5dbbc513
2 %define rel             1
3 Summary:        A Configuration Tool for Font-wise, User-set Fontconfig Rules
4 Name:           fontik
5 Version:        0.6.1
6 Release:        0.%{rel}.%{subver}
7 License:        GPL v3
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
12 #  cd fontik
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
27 BuildRequires:  vala
28 BuildRequires:  vala-libgee
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %description
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
35 user.
36
37 %prep
38 %setup -q -n %{name}-%{subver}
39 %patch0 -p1
40 %patch1 -p1
41
42 %build
43 %{__make}
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47 %{__make} install \
48         PREFIX=%{_prefix} \
49         PROGRAM_LIBEXEC_DIR=%{_libexecdir} \
50         DESTDIR=$RPM_BUILD_ROOT
51
52 # drop pointless wrapper, use bin directly
53 mv $RPM_BUILD_ROOT{%{_libdir},%{_bindir}}/fontik
54
55 desktop-file-install --dir=$RPM_BUILD_ROOT%{_desktopdir} %{SOURCE1}
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files
61 %defattr(644,root,root,755)
62 %doc COPYING README
63 %attr(755,root,root) %{_bindir}/fontik
64 %{_datadir}/%{name}
65 %{_desktopdir}/%{name}.desktop
This page took 0.08011 seconds and 2 git commands to generate.