]> git.pld-linux.org Git - packages/librsvg.git/blob - librsvg.spec
- adapterized
[packages/librsvg.git] / librsvg.spec
1 # Note that this is NOT a relocatable package
2
3 Summary:        Raph's SVG library
4 Summary(pl):    biblioteka Raph's SVG
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
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
38 Group(de):      Entwicklung/Libraries
39 Group(fr):      Development/Librairies
40 Group(pl):      Programowanie/Biblioteki
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
50 %prep
51 %setup -q
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.
65 CFLAGS="$RPM_OPT_FLAGS" ./configure $MYARCH_FLAGS --prefix=%{_prefix} \
66         --sysconfdir=%{_sysconfdir}
67
68 make -k
69 make check
70
71 %install
72 rm -rf $RPM_BUILD_ROOT
73 [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
74 %{__make} -k prefix=$RPM_BUILD_ROOT%{_prefix} sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} install
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
83 if ! grep %{_prefix}/lib /etc/ld.so.conf > /dev/null ; then
84         echo "%{_prefix}/lib" >> /etc/ld.so.conf
85 fi
86 /sbin/ldconfig
87
88 %postun -p /sbin/ldconfig
89
90 %files
91 %defattr(644,root,root,755)
92
93 %defattr(0555, bin, bin)
94 %doc AUTHORS COPYING COPYING.LIB ChangeLog NEWS README
95 %{_libdir}/*.so*
96
97 %files devel
98 %defattr(644,root,root,755)
99
100 %defattr(0555, bin, bin)
101 %{_libdir}/*.la
102 %{_libdir}/*.sh
103 %attr(755,root,root) %{_bindir}/librsvg-config
104
105 %defattr(0444, bin, bin)
106 %{_includedir}/librsvg/*.h
This page took 0.054975 seconds and 4 git commands to generate.