]>
Commit | Line | Data |
---|---|---|
6551856a JB |
1 | # |
2 | # Conditional build: | |
fa841a3b | 3 | %bcond_without gnome # without capplet subpackage (which require GNOME libs to build) |
6551856a | 4 | # |
34675a83 | 5 | Summary: Adapt GTK-1.2 to support xft fonts |
55c44389 ER |
6 | Summary(pl.UTF-8): Wsparcie dla fontów xft dla GTK-1.2 |
7 | Summary(pt_BR.UTF-8): Adapta o GTK-1.2 para suportar fontes xft | |
34675a83 | 8 | Name: gdkxft |
1d574a24 | 9 | Version: 1.5 |
83905993 | 10 | Release: 12 |
34675a83 MP |
11 | License: LGPL |
12 | Group: X11/Libraries | |
60e13c27 | 13 | Source0: http://dl.sourceforge.net/gdkxft/%{name}-%{version}.tar.gz |
43b8cf6b | 14 | # Source0-md5: ed594e24cf2aefe7a71f96425c1922e8 |
1e74d40d | 15 | URL: http://gdkxft.sourceforge.net/ |
a7353727 | 16 | BuildRequires: autoconf |
17 | BuildRequires: automake | |
2c260c3e | 18 | %{?with_gnome:BuildRequires: control-center1-devel} |
af645214 | 19 | BuildRequires: freetype-devel |
0db37aab | 20 | BuildRequires: gtk+-devel >= 1.2.0 |
af645214 | 21 | BuildRequires: help2man |
fa841a3b | 22 | %{?with_gnome:BuildRequires: libglade-gnome-devel} |
a7353727 | 23 | BuildRequires: libtool |
6a97c1f2 JB |
24 | BuildRequires: rpm-perlprov |
25 | Requires(post): /sbin/ldconfig | |
ad1e90b1 | 26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
f69d8055 | 27 | |
3cdc5fc7 | 28 | %description |
69eb9a05 | 29 | A library that adds transparent support for anti-aliased fonts to the |
f2cd2245 | 30 | libgdk component of gtk+-1.2.x. GTK+ widgets will automagically use |
69eb9a05 | 31 | the fonts. |
32 | ||
fe7a8422 JR |
33 | %description -l pl.UTF-8 |
34 | Biblioteka dodająca przezroczystą obsługę dla wygładzanych fontów w | |
f2cd2245 | 35 | komponencie libgdk biblioteki gtk+-1.2.x. Widgety GTK+ automatycznie |
fe7a8422 | 36 | będą używały tych fontów. |
f69d8055 | 37 | |
fe7a8422 JR |
38 | %description -l pt_BR.UTF-8 |
39 | Este pacote contém bibliotecas para adicionar suporte transparente a | |
ad1e90b1 | 40 | fontes anti-aliased para o componente libgdk do gtk+-1.2. Os widgets |
fe7a8422 | 41 | GTK+ vão automaticamente usar essas fontes. |
ad1e90b1 | 42 | |
43 | %package devel | |
6551856a | 44 | Summary: Header files for developing apps |
55c44389 ER |
45 | Summary(es.UTF-8): Bibliotecas y archivos de inclusión para desarrollo |
46 | Summary(pl.UTF-8): Pliki nagłowkowe gdkxft | |
47 | Summary(pt_BR.UTF-8): Bibliotecas e arquivos de inclusão para desenvolvimento | |
ad1e90b1 | 48 | Group: Development/Libraries |
94fccc22 | 49 | Requires: %{name} = %{version}-%{release} |
ad1e90b1 | 50 | |
51 | %description devel | |
6551856a | 52 | Header files for developing apps with will use libgdkxft. |
ad1e90b1 | 53 | |
fe7a8422 JR |
54 | %description devel -l pl.UTF-8 |
55 | Pliki nagłówkowe do tworzenia aplikacji używających libgdkxft. | |
6551856a | 56 | |
fe7a8422 JR |
57 | %description devel -l pt_BR.UTF-8 |
58 | Bibliotecas e arquivos de inclusão necessários para desenvolvimento | |
ad1e90b1 | 59 | baseado na libgdkxft. |
60 | ||
61 | %package static | |
62 | Summary: Static libraries for libgdkxft development | |
55c44389 ER |
63 | Summary(pl.UTF-8): Statyczna biblioteka libgdkxft |
64 | Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com a libgdkxft | |
ad1e90b1 | 65 | Group: Development/Libraries |
ad1e90b1 | 66 | Requires: %{name}-devel = %{version}-%{release} |
67 | ||
68 | %description static | |
69 | Static libraries for libgdkxft development. | |
70 | ||
fe7a8422 | 71 | %description static -l pl.UTF-8 |
6551856a JB |
72 | Statyczna biblioteka libgdkxft. |
73 | ||
fe7a8422 JR |
74 | %description static -l pt_BR.UTF-8 |
75 | Bibliotecas estáticas para desenvolvimento com a libgdkxft. | |
ad1e90b1 | 76 | |
4e68b534 | 77 | %package capplet |
78 | Summary: Capplet to configure gdkxft in GNOME | |
55c44389 | 79 | Summary(pl.UTF-8): Narzędzie do konfiguracji gdkxft w GNOME |
4e68b534 | 80 | Group: X11/Applications |
d90808b7 | 81 | Requires: %{name} = %{version}-%{release} |
4e68b534 | 82 | |
83 | %description capplet | |
ad1e90b1 | 84 | Capplet to configure gdkxft in GNOME. |
4e68b534 | 85 | |
fe7a8422 JR |
86 | %description capplet -l pl.UTF-8 |
87 | Narzędzie do konfiguracji gdkxft w GNOME. | |
4e68b534 | 88 | |
69eb9a05 | 89 | %prep |
34675a83 | 90 | %setup -q |
69eb9a05 | 91 | |
92 | %build | |
e3d42da0 | 93 | %if !%{with gnome} |
6a97c1f2 JB |
94 | cat >> acinclude.m4 <<EOF |
95 | AC_DEFUN([AM_PATH_LIBGLADE],[ | |
96 | AM_CONDITIONAL([HAVE_ORBIT],false) | |
97 | AM_CONDITIONAL([HAVE_GNORBA],false)]) | |
98 | EOF | |
99 | %endif | |
a7353727 | 100 | rm -f missing |
6a97c1f2 | 101 | %{__libtoolize} |
580e5f37 | 102 | %{__aclocal} |
15b0e811 | 103 | %{__autoconf} |
104 | %{__automake} | |
1d574a24 | 105 | %configure \ |
a2fc77df | 106 | CFLAGS="%{rpmcflags} -I/usr/include/freetype2" \ |
1d574a24 | 107 | --enable-static \ |
108 | --enable-shared | |
109 | ||
c9479375 MW |
110 | sed -e s:capplet-widget.h:libcapplet1/capplet-widget.h: capplet/gdkxft-capplet.c > capplet/gdkxft-capplet.tmp |
111 | mv -f capplet/gdkxft-capplet.tmp capplet/gdkxft-capplet.c | |
112 | ||
34675a83 | 113 | %{__make} |
69eb9a05 | 114 | |
115 | %install | |
116 | rm -rf $RPM_BUILD_ROOT | |
711cf0ce | 117 | install -d $RPM_BUILD_ROOT{/etc/X11/xinit/xinitrc.d,%{_datadir}/themes/Gdkxft/gtk} |
f69d8055 AM |
118 | |
119 | %{__make} install \ | |
120 | DESTDIR=$RPM_BUILD_ROOT | |
711cf0ce | 121 | |
af645214 | 122 | %{__perl} -pi -e "s@\\\`gtk-config --prefix\\\` \\|\\| \"/usr\"@\"`gtk-config --prefix`\"@g" \ |
6a97c1f2 JB |
123 | $RPM_BUILD_ROOT%{_sbindir}/gdkxft_sysinstall |
124 | ||
711cf0ce JB |
125 | > $RPM_BUILD_ROOT/etc/X11/xinit/xinitrc.d/gdkxft |
126 | > $RPM_BUILD_ROOT%{_datadir}/themes/Gdkxft/gtk/gtkrc | |
127 | ||
fa841a3b | 128 | %if %{with gnome} |
bb04adf9 | 129 | install -d $RPM_BUILD_ROOT%{_applnkdir}/Settings/GNOME |
af645214 | 130 | mv -f $RPM_BUILD_ROOT%{_datadir}/gnome/apps/Settings/UIOptions \ |
131 | $RPM_BUILD_ROOT%{_applnkdir}/Settings/GNOME | |
132 | %endif | |
f8a000ef | 133 | |
69eb9a05 | 134 | %clean |
135 | rm -rf $RPM_BUILD_ROOT | |
136 | ||
137 | %post | |
af5f571e | 138 | %{_sbindir}/gdkxft_sysinstall |
7c799f69 | 139 | /sbin/ldconfig |
69eb9a05 | 140 | |
141 | %preun | |
6472d6e2 JB |
142 | if [ "$1" = "0" ]; then |
143 | %{_sbindir}/gdkxft_sysinstall -u | |
144 | fi | |
4e68b534 | 145 | |
7c799f69 | 146 | %postun -p /sbin/ldconfig |
69eb9a05 | 147 | |
148 | %files | |
34675a83 | 149 | %defattr(644,root,root,755) |
6a97c1f2 | 150 | %doc AUTHORS ChangeLog NEWS README |
711cf0ce JB |
151 | %dir %{_datadir}/themes/Gdkxft |
152 | %dir %{_datadir}/themes/Gdkxft/gtk | |
153 | %ghost %{_datadir}/themes/Gdkxft/gtk/gtkrc | |
8af4392b | 154 | %attr(755,root,root) %ghost /etc/X11/xinit/xinitrc.d/gdkxft |
94fccc22 | 155 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gdkxft.conf |
7c799f69 | 156 | %attr(755,root,root) %{_sbindir}/gdkxft_sysinstall |
ad1e90b1 | 157 | %attr(755,root,root) %{_libdir}/libgdkxft.so.*.* |
158 | ||
159 | %files devel | |
160 | %defattr(644,root,root,755) | |
a54d0d16 | 161 | %{_libdir}/libgdkxft.la |
ad1e90b1 | 162 | %attr(755,root,root) %{_libdir}/libgdkxft.so |
163 | ||
164 | %files static | |
165 | %defattr(644,root,root,755) | |
166 | %{_libdir}/libgdkxft.a | |
4e68b534 | 167 | |
fa841a3b | 168 | %if %{with gnome} |
4e68b534 | 169 | %files capplet |
170 | %defattr(644,root,root,755) | |
171 | %attr(755,root,root) %{_bindir}/*-capplet | |
c9479375 | 172 | %{_datadir}/gdkxft-capplet.glade |
c9479375 | 173 | %{_datadir}/control-center/UIOptions/gdkxft.desktop |
442d3483 | 174 | %{_pixmapsdir}/gdkxft.png |
bb04adf9 | 175 | %{_applnkdir}/Settings/GNOME/UIOptions/gdkxft.desktop |
6551856a | 176 | %endif |