]>
Commit | Line | Data |
---|---|---|
cc99da29 | 1 | # Note that this is NOT a relocatable package |
2d89ab37 | 2 | |
cc99da29 KT |
3 | Summary: Raph's SVG library |
4 | Summary(pl): biblioteka Raph's SVG | |
2d89ab37 PG |
5 | Name: librsvg |
6 | Version: 1.0.1 | |
7 | Release: 1 | |
8 | License: LGPL | |
9 | Vendor: GNOME | |
10 | Group: Libraries | |
11 | Group(de): Libraries | |
12 | Group(es): Bibliotecas | |
13 | Group(fr): Librairies | |
14 | Group(pl): Biblioteki | |
15 | Source0: ftp://ftp.gnome.org/pub/GNOME/stable/sources/librsvg/%{name}-%{version}.tar.bz2 | |
16 | URL: http://nautilus.eazel.com/ | |
17 | BuildRequires: glib-devel >= 1.2.9 | |
18 | BuildRequires: gtk+-devel >= 1.2.9 | |
19 | BuildRequires: libxml-devel >= 1.8.10 | |
20 | BuildRequires: gdk-pixbuf-devel >= 0.10.0 | |
21 | BuildRequires: popt-devel >= 1.5 | |
22 | BuildRequires: freetype-devel >= 2.0.1 | |
23 | BuildRequires: libpng-devel | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %define _prefix /usr | |
27 | %define _sysconfdir /etc | |
cc99da29 KT |
28 | |
29 | %description | |
30 | Eazel Extension Library | |
31 | ||
32 | %description -l pl | |
33 | Rozszezona bibioteka eazel | |
34 | ||
35 | %package devel | |
36 | Summary: Libraries and include files for developing with librsvg. | |
37 | Group: Development/Libraries | |
2d89ab37 PG |
38 | Group(de): Entwicklung/Libraries |
39 | Group(fr): Development/Librairies | |
40 | Group(pl): Programowanie/Biblioteki | |
cc99da29 KT |
41 | Requires: %name = %{PACKAGE_VERSION} |
42 | ||
43 | %description devel | |
44 | This package provides the necessary development libraries and include | |
45 | files to allow you to develop with librsvg. | |
46 | ||
47 | %description devel -l pl | |
48 | Bibliteki potrzebne do programowania. | |
49 | ||
cc99da29 | 50 | %prep |
2d89ab37 | 51 | %setup -q |
cc99da29 KT |
52 | |
53 | %build | |
54 | %ifarch alpha | |
55 | MYARCH_FLAGS="--host=alpha-redhat-linux" | |
56 | %endif | |
57 | ||
58 | LC_ALL="" | |
59 | LINGUAS="" | |
60 | LANG="" | |
61 | export LC_ALL LINGUAS LANG | |
62 | ||
63 | ## Warning! Make sure there are no spaces or tabs after the \ | |
64 | ## continuation character, or else the rpm demons will eat you. | |
2d89ab37 PG |
65 | CFLAGS="$RPM_OPT_FLAGS" ./configure $MYARCH_FLAGS --prefix=%{_prefix} \ |
66 | --sysconfdir=%{_sysconfdir} | |
cc99da29 KT |
67 | |
68 | make -k | |
69 | make check | |
70 | ||
71 | %install | |
2d89ab37 | 72 | rm -rf $RPM_BUILD_ROOT |
cc99da29 | 73 | [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT |
2d89ab37 | 74 | %{__make} -k prefix=$RPM_BUILD_ROOT%{_prefix} sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} install |
cc99da29 KT |
75 | for FILE in "$RPM_BUILD_ROOT/bin/*"; do |
76 | file "$FILE" | grep -q not\ stripped && strip $FILE | |
77 | done | |
78 | ||
79 | %clean | |
80 | [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT | |
81 | ||
82 | %post | |
2d89ab37 PG |
83 | if ! grep %{_prefix}/lib /etc/ld.so.conf > /dev/null ; then |
84 | echo "%{_prefix}/lib" >> /etc/ld.so.conf | |
cc99da29 KT |
85 | fi |
86 | /sbin/ldconfig | |
87 | ||
88 | %postun -p /sbin/ldconfig | |
89 | ||
90 | %files | |
2d89ab37 | 91 | %defattr(644,root,root,755) |
cc99da29 KT |
92 | |
93 | %defattr(0555, bin, bin) | |
94 | %doc AUTHORS COPYING COPYING.LIB ChangeLog NEWS README | |
2d89ab37 | 95 | %{_libdir}/*.so* |
cc99da29 KT |
96 | |
97 | %files devel | |
2d89ab37 | 98 | %defattr(644,root,root,755) |
cc99da29 KT |
99 | |
100 | %defattr(0555, bin, bin) | |
2d89ab37 PG |
101 | %{_libdir}/*.la |
102 | %{_libdir}/*.sh | |
103 | %attr(755,root,root) %{_bindir}/librsvg-config | |
cc99da29 KT |
104 | |
105 | %defattr(0444, bin, bin) | |
2d89ab37 | 106 | %{_includedir}/librsvg/*.h |