]> git.pld-linux.org Git - SPECS.git/blob - libgoffice08.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / libgoffice08.spec
1 #
2 # Conditional build:
3 %bcond_without  gnome   # disable all GNOME components
4 #
5 %define         orgname goffice
6 #
7 Summary:        Glib/Gtk+ set of document centric objects and utilities
8 Summary(pl.UTF-8):      Zestaw zorientowanych dokumentowo obiektów i narzędzi Glib/Gtk+
9 Name:           libgoffice08
10 Version:        0.8.17
11 Release:        1
12 License:        GPL v2+
13 Group:          Libraries
14 Source0:        http://ftp.gnome.org/pub/GNOME/sources/goffice/0.8/%{orgname}-%{version}.tar.xz
15 # Source0-md5:  e2bc2d2f51220d6883f0797d74c385b8
16 Patch0:         %{name}-pcre.patch
17 URL:            http://www.gtk.org/
18 BuildRequires:  GConf2-devel >= 2.20.0
19 BuildRequires:  autoconf >= 2.54
20 BuildRequires:  automake
21 BuildRequires:  cairo-devel >= 1.2.4
22 BuildRequires:  gettext-devel
23 BuildRequires:  gtk+2-devel >= 2:2.12.0
24 BuildRequires:  gtk-doc >= 1.4
25 BuildRequires:  intltool >= 0.35.0
26 BuildRequires:  libart_lgpl-devel >= 2.3.11
27 BuildRequires:  libglade2-devel >= 1:2.6.2
28 %{?with_gnome:BuildRequires:    libgnomeui-devel >= 2.20.0}
29 BuildRequires:  libtool
30 BuildRequires:  libxml2-devel >= 1:2.6.26
31 BuildRequires:  pcretest
32 BuildRequires:  pkgconfig
33 # sr@Latn vs. sr@latin
34 Conflicts:      glibc-misc < 6:2.7
35 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37 %description
38 GOffice - a Glib/Gtk+ set of document centric objects and utilities.
39
40 %description -l pl.UTF-8
41 GOffice - Zestaw zorientowanych dokumentowo obiektów i narzędzi
42 Glib/Gtk+.
43
44 %package devel
45 Summary:        Header files for GOffice library
46 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki GOffice
47 Group:          Development/Libraries
48 Requires:       %{name} = %{version}-%{release}
49 Requires:       gtk+2-devel >= 2:2.12.0
50 Requires:       libart_lgpl-devel >= 2.3.11
51 Requires:       libglade2-devel >= 1:2.6.2
52 Requires:       libxml2-devel >= 1:2.6.26
53
54 %description devel
55 This is the package containing the header files for GOffice.
56
57 %description devel -l pl.UTF-8
58 Ten pakiet zawiera pliki nagłówkowe GOffice.
59
60 %package static
61 Summary:        Static GOffice library
62 Summary(pl.UTF-8):      Statyczna biblioteka GOffice
63 Group:          Development/Libraries
64 Requires:       %{name}-devel = %{version}-%{release}
65
66 %description static
67 Static GOffice library.
68
69 %description static -l pl.UTF-8
70 Statyczna biblioteka GOffice.
71
72 %package apidocs
73 Summary:        GOffice library API documentation
74 Summary(pl.UTF-8):      Dokumentacja API biblioteki GOffice
75 Group:          Documentation
76 Requires:       gtk-doc-common
77
78 %description apidocs
79 GOffice library API documentation.
80
81 %description apidocs -l pl.UTF-8
82 Dokumentacja API biblioteki GOffice.
83
84 %prep
85 %setup -qn %{orgname}-%{version}
86 %patch0 -p1
87
88 %build
89 %{__gtkdocize}
90 %{__intltoolize}
91 %{__libtoolize}
92 %{__aclocal}
93 %{__autoconf}
94 %{__autoheader}
95 %{__automake}
96 %configure \
97         --enable-static \
98         %{?with_gnome:--with-gnome} \
99         --with-html-dir=%{_gtkdocdir} \
100         --disable-silent-rules
101 %{__make}
102
103 %install
104 rm -rf $RPM_BUILD_ROOT
105
106 %{__make} install \
107         DESTDIR=$RPM_BUILD_ROOT
108
109 %{__rm} $RPM_BUILD_ROOT%{_libdir}/goffice/%{version}/plugins/*/*.{a,la} \
110         $RPM_BUILD_ROOT%{_libdir}/*.la
111
112 %find_lang %{orgname}-%{version}
113
114 %clean
115 rm -rf $RPM_BUILD_ROOT
116
117 %post   -p /sbin/ldconfig
118 %postun -p /sbin/ldconfig
119
120 %files -f %{orgname}-%{version}.lang
121 %defattr(644,root,root,755)
122 %doc AUTHORS BUGS ChangeLog MAINTAINERS NEWS README
123 %attr(755,root,root) %{_libdir}/libgoffice-0.8.so.*.*.*
124 %attr(755,root,root) %ghost %{_libdir}/libgoffice-0.8.so.8
125 %dir %{_libdir}/goffice
126 %dir %{_libdir}/goffice/%{version}
127 %dir %{_libdir}/goffice/%{version}/plugins
128 %dir %{_libdir}/goffice/%{version}/plugins/*
129 %attr(755,root,root) %{_libdir}/goffice/%{version}/plugins/*/*.so
130 %{_libdir}/goffice/%{version}/plugins/*/*.xml
131 %{_libdir}/goffice/%{version}/plugins/*/*.ui
132 %{_datadir}/goffice
133 %{_pixmapsdir}/goffice
134
135 %files devel
136 %defattr(644,root,root,755)
137 %attr(755,root,root) %{_libdir}/libgoffice-0.8.so
138 %{_includedir}/libgoffice-0.8
139 %{_pkgconfigdir}/libgoffice-0.8.pc
140
141 %files static
142 %defattr(644,root,root,755)
143 %{_libdir}/libgoffice-0.8.a
144
145 %files apidocs
146 %defattr(644,root,root,755)
147 %{_gtkdocdir}/goffice-0.8
This page took 0.223324 seconds and 3 git commands to generate.