"Initial commit to Gerrit"
[profile/ivi/libgsf.git] / packaging / libgsf.spec
1
2 # Do NOT Edit the Auto-generated Part!
3 # Generated by: spectacle version 0.22
4
5 # >> macros
6 # << macros
7
8 Name:       libgsf
9 Summary:    GNOME Structured File library
10 Version:    1.14.21
11 Release:    1
12 Group:      System/Libraries
13 License:    LGPLv2
14 URL:        http://www.gnome.org/projects/libgsf/
15 Source0:    http://download.gnome.org/sources/%{name}/1.14/%{name}-%{version}.tar.bz2
16 Source100:  libgsf.yaml
17 Requires(post): /sbin/ldconfig
18 Requires(postun): /sbin/ldconfig
19 BuildRequires:  pkgconfig(glib-2.0)
20 BuildRequires:  pkgconfig(libxml-2.0)
21 BuildRequires:  perl-XML-Parser
22 BuildRequires:  bzip2-devel
23 BuildRequires:  gettext
24 BuildRequires:  intltool
25
26
27 %description
28 A library for reading and writing structured files (eg MS OLE and Zip)
29
30
31 %package devel
32 Summary:    Support files necessary to compile applications with libgsf
33 Group:      Development/Libraries
34 Requires:   %{name} = %{version}-%{release}
35
36 %description devel
37 Libraries, headers, and support files necessary to compile applications
38 using libgsf.
39
40
41
42 %prep
43 %setup -q -n %{name}-%{version}
44
45 # >> setup
46 # << setup
47
48 %build
49 # >> build pre
50 # << build pre
51
52 %configure --disable-static \
53     --disable-gtk-doc \
54     --without-gnome-vfs \
55     --without-bonobo \
56     --without-gconf \
57     --without-python
58
59 make %{?jobs:-j%jobs}
60
61 # >> build post
62 # << build post
63 %install
64 rm -rf %{buildroot}
65 # >> install pre
66 # << install pre
67 %make_install
68
69 # >> install post
70
71 # << install post
72 %find_lang libgsf
73
74
75
76 %post -p /sbin/ldconfig
77
78 %postun -p /sbin/ldconfig
79
80
81
82
83
84 %files -f libgsf.lang
85 %defattr(-,root,root,-)
86 # >> files
87 %doc COPYING
88 %{_libdir}/libgsf-1.so.*
89 # << files
90
91
92 %files devel
93 %defattr(-,root,root,-)
94 # >> files devel
95 %{_bindir}/gsf
96 %{_bindir}/gsf-vba-dump
97 %{_libdir}/libgsf-1.so
98 %{_libdir}/pkgconfig/libgsf-1.pc
99 %dir %{_includedir}/libgsf-1
100 # This will be fixed by http://bugzilla.gnome.org/show_bug.cgi?id=652295
101 %exclude %{_includedir}/libgsf-1/gsf-gnome
102 %{_includedir}/libgsf-1/gsf
103 %{_datadir}/gtk-doc/html/gsf
104 %{_mandir}/man1/gsf.1.gz
105 %{_mandir}/man1/gsf-vba-dump.1.gz
106 # This will be fixed by http://bugzilla.gnome.org/show_bug.cgi?id=652296
107 %exclude %{_mandir}/man1/gsf-office-thumbnailer.1.gz
108 # << files devel
109