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