]> git.pld-linux.org Git - packages/imlib.git/blob - imlib.spec
- release 6, Epoch 1 (for allow upgrade from RH 7).
[packages/imlib.git] / imlib.spec
1 Summary:        Image loading and rendering library for X11R6
2 Summary(fr):    Librairie de chargement et interprétation d'images pour X11R6
3 Summary(pl):    Biblioteki do renderowania i ³adowania grafiki pod X11R6
4 Name:           imlib
5 Version:        1.9.8.1
6 Release:        6
7 Epoch:          1
8 License:        LGPL
9 Group:          X11/Libraries
10 Group(de):      X11/Libraries
11 Group(pl):      X11/Biblioteki
12 Source0:        ftp://ftp.gnome.org/pub/GNOME/stable/sources/imlib/%{name}-%{version}.tar.gz
13 Source1:        %{name}-config.desktop
14 Patch0:         %{name}-gdk.patch
15 Patch1:         %{name}-palfallback.patch
16 Patch2:         %{name}-m4_fix.patch
17 Patch3:         %{name}-full_i18n.patch
18 URL:            http://www.labs.redhat.com/imlib/
19 BuildRequires:  autoconf
20 BuildRequires:  automake
21 BuildRequires:  gettext-devel
22 BuildRequires:  gtk+-devel 
23 BuildRequires:  libjpeg-devel
24 BuildRequires:  libtiff-devel
25 BuildRequires:  libpng >= 1.0.8
26 BuildRequires:  libungif-devel
27 BuildRequires:  zlib-devel
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %define         _prefix         /usr/X11R6
31 %define         _sysconfdir     /etc/X11
32
33 %description
34 Imlib is an advanced replacement library for libraries like libXpm
35 that provides many more features with much greater flexability and
36 speed.
37
38 %description -l fr
39 Imlib est une librairie de remplacement avancée pour les librairies
40 comme libXpm qui fourni plus d'atouts et beaucoup plus de flexibilité
41 et de vitesse.
42
43 %description -l pl
44 Imlib jest zaawansowanym zamiennikiem bibliotek typu libXpm.
45
46 %package cfgeditor
47 Summary:        Imlib configuration editor
48 Summary(pl):    Edytor konfiguracji do biblioteki imlib
49 Group:          X11/Applications
50 Group(de):      X11/Applikationen
51 Group(pl):      X11/Aplikacje
52 Requires:       %{name} = %{version}
53
54 %description cfgeditor
55 The imlib_config program allows you to control the way imlib uses
56 color and handles gamma correction/etc.
57
58 %description -l pl cfgeditor
59 Program imlib_config umo¿liwia zmianê sposobu u¿ywania przez
60 bibliotekê imlib kolorów, korekcji gamma i innych. The imlib_config
61 program allows you to control the way imlib uses color and handles
62 gamma correction/etc.
63
64 %package devel
65 Summary:        Imlib header files and development documentation
66 Summary(fr):    Fichiers entête pour Imlib
67 Summary(pl):    Pliki nag³ówkowe oraz dokumentacja do imlib
68 Group:          X11/Development/Libraries
69 Group(de):      X11/Entwicklung/Libraries
70 Group(pl):      X11/Programowanie/Biblioteki
71 Requires:       %{name} = %{version}
72 # Every program using imlib should get a list of libraries to link with by
73 # executing `imlib-config --libs`. All libraries listed below are returned by
74 # this call, so they are required by every program compiled with imlib.
75 Requires:       libjpeg-devel
76 Requires:       libtiff-devel
77 Requires:       libungif-devel
78 Requires:       libpng-devel
79 Requires:       zlib-devel
80 Requires:       XFree86-devel
81
82 %description devel
83 Header files and development documentation for Imlib.
84
85 %description devel -l fr
86 Fichiers entête pour Imlib.
87
88 %description devel -l pl
89 Pliki nag³ówkowe oraz dokumentacja do biblioteki Imlib.
90
91 %package static
92 Summary:        Imlib static libraries
93 Summary(pl):    Biblioteki statyczne imlib
94 Group:          X11/Development/Libraries
95 Group(de):      X11/Entwicklung/Libraries
96 Group(pl):      X11/Programowanie/Biblioteki
97 Requires:       %{name}-devel = %{version}
98
99 %description static
100 Imlib static libraries.
101
102 %description devel -l pl
103 Biblioteki statyczne imlib.
104
105 %prep
106 %setup -q
107 %patch0 -p1
108 %patch1 -p1
109 %patch2 -p1
110 %patch3 -p1
111
112 %build
113 gettextize --copy --force
114 aclocal
115 autoconf
116 automake
117 %configure
118 %{__make}
119                             
120 %install
121 rm -rf $RPM_BUILD_ROOT
122 install -d $RPM_BUILD_ROOT%{_applnkdir}/Settings
123
124 %{__make} install \
125         DESTDIR=$RPM_BUILD_ROOT \
126         m4datadir=%{_aclocaldir}
127
128 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Settings
129
130 %find_lang %{name}
131
132 %post   -p /sbin/ldconfig
133 %postun -p /sbin/ldconfig
134
135 %clean
136 rm -rf $RPM_BUILD_ROOT
137
138 %files
139 %defattr(644,root,root,755)
140 %attr(755,root,root) %{_libdir}/libImlib.so.*.*
141 %attr(755,root,root) %{_libdir}/libgdk_imlib.so.*.*
142 %attr(755,root,root) %{_libdir}/libimlib-*.so
143 %attr(755,root,root) %{_libdir}/libimlib-*.la
144 %config %{_sysconfdir}/*
145
146 %files cfgeditor -f %{name}.lang
147 %defattr(644,root,root,755)
148 %{_applnkdir}/Settings/imlib-config.desktop
149 %attr(755,root,root) %{_bindir}/imlib_config
150
151 %files devel
152 %defattr(644,root,root,755)
153 %doc doc/{*gif,*.html}
154
155 %attr(755,root,root) %{_libdir}/libImlib.so
156 %attr(755,root,root) %{_libdir}/libgdk_imlib.so
157 %attr(755,root,root) %{_libdir}/libImlib.la
158 %attr(755,root,root) %{_libdir}/libgdk_imlib.la
159
160 %attr(755,root,root) %{_bindir}/imlib-config
161
162 %{_includedir}/*
163 %{_aclocaldir}/*
164
165 %files static
166 %defattr(644,root,root,755)
167 %{_libdir}/lib*.a
This page took 0.072069 seconds and 4 git commands to generate.