]>
Commit | Line | Data |
---|---|---|
a9196f04 | 1 | # |
182debcd | 2 | # Conditional build: |
226aec8f | 3 | %bcond_without static_libs # don't build static library |
182debcd | 4 | # |
a65b5882 | 5 | Summary: Library of graphics routines used by libgnomecanvas |
3a54c2a5 | 6 | Summary(pl.UTF-8): Biblioteka funkcji graficznych używanych przez libgnomecanvas |
a65b5882 | 7 | Name: libart_lgpl |
a9196f04 | 8 | Version: 2.3.19 |
407fc050 | 9 | Release: 2 |
a65b5882 | 10 | License: LGPL |
11 | Group: X11/Libraries | |
20e59ea4 | 12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libart_lgpl/2.3/%{name}-%{version}.tar.bz2 |
a9196f04 | 13 | # Source0-md5: ac885805d1918026a18b560f4015bc66 |
407fc050 | 14 | Patch0: %{name}-c_bindings.patch |
a65b5882 | 15 | URL: http://www.gnome.org/ |
0049dd3b | 16 | BuildRequires: autoconf |
a9196f04 | 17 | BuildRequires: automake >= 1:1.9 |
0049dd3b | 18 | BuildRequires: libtool |
3f794a59 | 19 | Obsoletes: libart_lgpl2 |
20e59ea4 | 20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
a65b5882 | 21 | |
38f4b741 | 22 | %description |
a65b5882 | 23 | Graphics routines used by the GnomeCanvas widget and some other |
38f4b741 | 24 | applications. libart renders vector paths and the like. |
25 | ||
8a372d93 JR |
26 | %description -l pl.UTF-8 |
27 | Funkcje graficzne używane przez widget GnomeCanvas i trochę innych | |
28 | aplikacji. libart renderuje ścieżki wektorów i tym podobne. | |
69638e6a | 29 | |
38f4b741 | 30 | %package devel |
69638e6a | 31 | Summary: Headers for libart_lgpl |
3a54c2a5 | 32 | Summary(pl.UTF-8): Pliki nagłowkowe libart_lgpl |
a65b5882 | 33 | Group: X11/Development/Libraries |
a3f23e06 | 34 | Requires: %{name} = %{version}-%{release} |
0049dd3b | 35 | Obsoletes: libart_lgpl2-devel |
20e59ea4 | 36 | Conflicts: gnome-libs-devel < 1.4.1.2 |
38f4b741 | 37 | |
38 | %description devel | |
69638e6a JB |
39 | Header files for libart_lgpl. |
40 | ||
8a372d93 JR |
41 | %description devel -l pl.UTF-8 |
42 | Pliki nagłówkowe do biblioteki libart_lgpl. | |
69638e6a JB |
43 | |
44 | %package static | |
45 | Summary: Static libart_lgpl library | |
3a54c2a5 | 46 | Summary(pl.UTF-8): Statyczna biblioteka libart_lgpl |
69638e6a | 47 | Group: X11/Development/Libraries |
a3f23e06 | 48 | Requires: %{name}-devel = %{version}-%{release} |
69638e6a JB |
49 | Conflicts: gnome-libs-static < 1.4.1.2 |
50 | ||
51 | %description static | |
52 | Static version of libart_lgpl library. | |
53 | ||
8a372d93 | 54 | %description static -l pl.UTF-8 |
69638e6a | 55 | Statyczna wersja biblioteki libart_lgpl. |
38f4b741 | 56 | |
57 | %prep | |
58 | %setup -q | |
407fc050 | 59 | %patch0 -p1 |
38f4b741 | 60 | |
61 | %build | |
488b41e5 | 62 | %{__libtoolize} |
db646780 | 63 | %{__aclocal} |
7d25be0f | 64 | %{__autoconf} |
20e59ea4 | 65 | %{__autoheader} |
7d25be0f | 66 | %{__automake} |
a7dbbed6 | 67 | %configure \ |
226aec8f | 68 | %{!?with_static_libs:--disable-static} |
a65b5882 | 69 | %{__make} |
38f4b741 | 70 | |
71 | %install | |
a65b5882 | 72 | rm -rf $RPM_BUILD_ROOT |
73 | ||
74 | %{__make} install \ | |
2472b744 | 75 | DESTDIR=$RPM_BUILD_ROOT \ |
76 | pkgconfigdir=%{_pkgconfigdir} | |
38f4b741 | 77 | |
78 | %clean | |
a9196f04 | 79 | rm -rf $RPM_BUILD_ROOT |
38f4b741 | 80 | |
a65b5882 | 81 | %post -p /sbin/ldconfig |
38f4b741 | 82 | %postun -p /sbin/ldconfig |
83 | ||
84 | %files | |
a65b5882 | 85 | %defattr(644,root,root,755) |
fe845cd5 | 86 | %doc AUTHORS ChangeLog NEWS README |
20e59ea4 | 87 | %attr(755,root,root) %{_libdir}/lib*.so.*.*.* |
38f4b741 | 88 | |
89 | %files devel | |
a65b5882 | 90 | %defattr(644,root,root,755) |
91 | %attr(755,root,root) %{_bindir}/libart2-config | |
92 | %attr(755,root,root) %{_libdir}/lib*.so | |
31f8a800 | 93 | %{_libdir}/lib*.la |
20e59ea4 | 94 | %{_includedir}/libart-2.0 |
2472b744 | 95 | %{_pkgconfigdir}/*.pc |
69638e6a | 96 | |
226aec8f | 97 | %if %{with static_libs} |
69638e6a JB |
98 | %files static |
99 | %defattr(644,root,root,755) | |
100 | %{_libdir}/lib*.a | |
a7dbbed6 | 101 | %endif |