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