]> git.pld-linux.org Git - packages/libgsf.git/blob - libgsf.spec
- version 1.8.0
[packages/libgsf.git] / libgsf.spec
1 #
2 # Conditional build:
3 # _without_gnome        - without gnome extensions packages
4 #
5 Summary:        GNOME Structured File library
6 Summary(pl):    Biblioteka plików strukturalnych dla GNOME
7 Name:           libgsf
8 Version:        1.8.0
9 Release:        1
10 License:        GPL v2
11 Group:          Libraries
12 Source0:        http://ftp.gnome.org/pub/gnome/sources/libgsf/1.8/libgsf-%{version}.tar.bz2
13 URL:            http://www.gnumeric.org/
14 %{!?_without_gnome:BuildRequires:       ORBit2-devel}
15 BuildRequires:  autoconf
16 BuildRequires:  automake
17 BuildRequires:  glib2-devel >= 2.0.0
18 %{!?_without_gnome:BuildRequires:       gnome-vfs2-devel}
19 BuildRequires:  gtk-doc >= 0.9
20 %{!?_without_gnome:BuildRequires:       libbonobo-devel >= 2.0.0}
21 BuildRequires:  libtool
22 BuildRequires:  libxml2-devel
23 BuildRequires:  pkgconfig
24 Buildroot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 A library for reading and writing structured files (e.g. MS OLE and
28 Zip).
29
30 %description -l pl
31 Biblioteka do odczytu i zapisu plików strukturalnych (np. MS OLE lub
32 Zip).
33
34 %package devel
35 Summary:        Support files necessary to compile applications with libgsf
36 Summary(pl):    Pliki do kompilowania aplikacji u¿ywaj±cych libgsf
37 Group:          Development/Libraries
38 Requires:       %{name} = %{version}
39 Requires:       glib2-devel
40 Requires:       gtk-doc-common
41 Requires:       libxml2-devel
42
43 %description devel
44 Headers, and support files necessary to compile applications using
45 libgsf.
46
47 %description devel -l pl
48 Pliki nag³ówkowe i inne potrzebne do kompilowania aplikacji
49 u¿ywaj±cych libgsf.
50
51 %package static
52 Summary:        libgsf static libraries
53 Summary(pl):    Statyczne biblioteki libgsf
54 Group:          Development/Libraries
55 Requires:       %{name}-devel = %{version}
56
57 %description static
58 Package contains static libraries.
59
60 %description static -l pl
61 Statyczne biblioteki libgsf.
62
63 %package gnome
64 Summary:        GNOME specific extensions to libgsf
65 Summary(pl):    Rozszerzenia GNOME do biblioteki libgsf
66 Group:          Libraries
67 Requires:       %{name} = %{version}
68
69 %description gnome
70 GNOME specific extensions to libgsf.
71
72 %description gnome -l pl
73 Rozszerzenia GNOME do biblioteki libgsf.
74
75 %package gnome-devel
76 Summary:        libgsf-gnome header files
77 Summary(pl):    Pliki nag³ówkowe libgsf-gnome
78 Group:          Development/Libraries
79 Requires:       %{name}-devel = %{version}
80 Requires:       %{name}-gnome = %{version}
81 Requires:       gnome-vfs2-devel
82 Requires:       libbonobo-devel
83
84 %description gnome-devel
85 libgsf-gnome header files.
86
87 %description gnome-devel -l pl
88 Pliki nag³ówkowe libgsf-gnome.
89
90 %package gnome-static
91 Summary:        Static libgsf-gnome library
92 Summary(pl):    Statyczna biblioteka libgsf-gnome
93 Group:          Development/Libraries
94 Requires:       %{name}-gnome-devel = %{version}
95
96 %description gnome-static
97 Static libgsf-gnome library.
98
99 %description gnome-static -l pl
100 Statyczna biblioteka libgsf-gnome.
101
102 %prep
103 %setup -q
104
105 %build
106 rm -f missing acinclude.m4
107 %{__libtoolize}
108 %{__aclocal}
109 %{__autoconf}
110 %{__automake}
111 %configure \
112         --enable-gtk-doc \
113         --with-html-dir=%{_gtkdocdir}/%{name} \
114         %{?_without_gnome:--without-gnome}
115
116 %{__make}
117
118 %install
119 rm -rf $RPM_BUILD_ROOT
120
121 %{__make} install \
122         DESTDIR=$RPM_BUILD_ROOT
123
124 %clean
125 rm -rf $RPM_BUILD_ROOT
126
127 %post   -p /sbin/ldconfig
128 %postun -p /sbin/ldconfig
129
130 %post   gnome -p /sbin/ldconfig
131 %postun gnome -p /sbin/ldconfig
132
133 %files
134 %defattr(644,root,root,755)
135 %doc AUTHORS README NEWS
136 %attr(755,root,root) %{_libdir}/libgsf-?.so.*.*
137
138 %files devel
139 %defattr(644,root,root,755)
140 %{_libdir}/libgsf-?.la
141 %attr(755,root,root) %{_libdir}/libgsf-?.so
142 %dir %{_includedir}/libgsf-1
143 %{_includedir}/libgsf-1/gsf
144 %{_pkgconfigdir}/libgsf-?.pc
145 %{_gtkdocdir}/%{name}
146
147 %files static
148 %defattr(644,root,root,755)
149 %{_libdir}/libgsf-?.a
150
151 %if 0%{!?_without_gnome:1}
152 %files gnome
153 %defattr(644,root,root,755)
154 %attr(755,root,root) %{_libdir}/libgsf-gnome-?.so.*.*
155
156 %files gnome-devel
157 %defattr(644,root,root,755)
158 %{_libdir}/libgsf-gnome-?.la
159 %attr(755,root,root) %{_libdir}/libgsf-gnome-?.so
160 %{_includedir}/libgsf-1/gsf-gnome
161 %{_pkgconfigdir}/libgsf-gnome-?.pc
162
163 %files gnome-static
164 %defattr(644,root,root,755)
165 %{_libdir}/libgsf-gnome-?.a
166 %endif
This page took 0.066852 seconds and 4 git commands to generate.