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