add packaging
[platform/upstream/mkfontdir.git] / packaging / mkfontdir.spec
1 #
2 # spec file for package mkfontdir
3 #
4 # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
5 #
6 # All modifications and additions to the file contributed by third parties
7 # remain the property of their copyright owners, unless otherwise agreed
8 # upon. The license for this file, and modifications and additions to the
9 # file, is the same license as for the pristine package itself (unless the
10 # license for the pristine package is not an Open Source License, in which
11 # case the license is the MIT License). An "Open Source License" is a
12 # license that conforms to the Open Source Definition (Version 1.9)
13 # published by the Open Source Initiative.
14
15 # Please submit bugfixes or comments via http://bugs.opensuse.org/
16 #
17
18 Name:           mkfontdir
19 Version:        1.0.7
20 Release:        1
21 License:        MIT
22 Summary:        Utility to create index of X font files
23 Url:            http://xorg.freedesktop.org/
24 Group:          System/X11/Utilities
25 Source0:        http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
26 BuildRequires:  pkg-config
27 BuildRequires:  pkgconfig(xorg-macros) >= 1.8
28 # mkfontdir is just a wrapper around mkfontscale and won't do anything on it's own.
29 Requires:       mkfontscale
30 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
31 # This was part of the xorg-x11 package up to version 7.6
32 Conflicts:      xorg-x11 <= 7.6
33
34 %description
35 mkfontdir creates the fonts.dir files needed by the legacy X server
36 core font system. The current implementation is a simple wrapper script
37 around the mkfontscale program, which must be built and installed first.
38
39 %prep
40 %setup -q
41
42 %build
43 %configure
44 make %{?_smp_mflags}
45
46 %install
47 %make_install
48
49 %files
50 %defattr(-,root,root)
51 %doc ChangeLog COPYING README
52 %{_bindir}/mkfontdir
53 %{_mandir}/man1/mkfontdir.1%{?ext_man}
54
55 %changelog