1 | %define name libgsf-1 |
---|
2 | %define version @VERSION@ |
---|
3 | %define release 1 |
---|
4 | %define prefix /usr |
---|
5 | |
---|
6 | Summary: GNOME specific extensions to libgsf |
---|
7 | |
---|
8 | Name: %{name} |
---|
9 | Version: %{version} |
---|
10 | Release: %{release} |
---|
11 | Group: System Environment/Libraries |
---|
12 | License: LGPL |
---|
13 | |
---|
14 | Source: ftp://ftp.gnome.org/pub/GNOME/unstable/sources/libgsf/libgsf-%{version}.tar.gz |
---|
15 | Buildroot: /var/tmp/%{name}-%{version}-%{release}-root |
---|
16 | URL: http://www.gnumeric.org |
---|
17 | |
---|
18 | Requires: libgsf-1 >= 1.3.0 gnome-vfs >= 2.0.0 |
---|
19 | |
---|
20 | %description |
---|
21 | GNOME specific extensions to support bonobo and gnome-vfs |
---|
22 | |
---|
23 | %package devel |
---|
24 | Summary: Support files necessary to compile applications with libgsf-gnome. |
---|
25 | Group: Development/Libraries |
---|
26 | Requires: libgsf-gnome-1 |
---|
27 | |
---|
28 | %description devel |
---|
29 | Libraries, headers, and support files necessary to compile applications using |
---|
30 | GNOME specific extensions to libgsf. |
---|
31 | |
---|
32 | %prep |
---|
33 | %setup -n libgsf-%{version} |
---|
34 | |
---|
35 | %build |
---|
36 | %ifarch alpha |
---|
37 | MYARCH_FLAGS="--host=alpha-redhat-linux" |
---|
38 | %endif |
---|
39 | |
---|
40 | if [ ! -f configure ]; then |
---|
41 | CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%{prefix} |
---|
42 | else |
---|
43 | CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} |
---|
44 | fi |
---|
45 | |
---|
46 | if [ "$SMP" != "" ]; then |
---|
47 | (make "MAKE=make -k -j $SMP"; exit 0) |
---|
48 | make |
---|
49 | else |
---|
50 | make |
---|
51 | fi |
---|
52 | |
---|
53 | %install |
---|
54 | if [ -d $RPM_BUILD_ROOT ]; then rm -r $RPM_BUILD_ROOT; fi |
---|
55 | mkdir -p $RPM_BUILD_ROOT%{prefix} |
---|
56 | make prefix=$RPM_BUILD_ROOT%{prefix} install |
---|
57 | |
---|
58 | %files |
---|
59 | %defattr(644,root,root,755) |
---|
60 | %doc AUTHORS COPYING README |
---|
61 | %{prefix}/lib/lib*.so.* |
---|
62 | |
---|
63 | %files devel |
---|
64 | %defattr(644,root,root,755) |
---|
65 | %{prefix}/lib/lib*.so |
---|
66 | %{prefix}/lib/*a |
---|
67 | %{prefix}/include/libgsf-1/* |
---|
68 | +%{prefix}/lib/pkgconfig/* |
---|
69 | +%{prefix}/share/doc/* |
---|
70 | |
---|
71 | %clean |
---|
72 | rm -r $RPM_BUILD_ROOT |
---|
73 | |
---|
74 | %changelog |
---|
75 | * Sun Aug 03 2003 Joseph Frazee <jfrazee@ling.osu.edu> |
---|
76 | - Fixed some things, %{setup} -n libgsf-%{version} and removed %files devel |
---|
77 | %{prefix}/lib/*.sh and %{prefix}/share/doc/gsf/* |
---|
78 | |
---|
79 | * Thu Aug 15 2002 Jody Goldberg <jody@gnome.org> |
---|
80 | - Initial version |
---|