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