]> git.pld-linux.org Git - packages/devhelp.git/blob - devhelp.spec
- rel. 3 to rebuild with xulrunner 1.8.1.6-20070731
[packages/devhelp.git] / devhelp.spec
1 Summary:        API documentation browser for GNOME
2 Summary(pl.UTF-8):      Przeglądarka dokumentacji API dla GNOME
3 Name:           devhelp
4 Version:        0.15
5 Release:        3
6 License:        GPL v2+
7 Group:          X11/Applications
8 Source0:        http://ftp.gnome.org/pub/GNOME/sources/devhelp/0.15/%{name}-%{version}.tar.bz2
9 # Source0-md5:  e5ec0eebc5313c0d11c2371b2b1a9c16
10 Patch0:         %{name}-bookdir.patch
11 Patch1:         %{name}-mozilla_includes.patch
12 URL:            http://www.imendio.com/projects/devhelp/
13 BuildRequires:  GConf2-devel >= 2.18.0
14 BuildRequires:  autoconf
15 BuildRequires:  automake
16 BuildRequires:  gnome-common >= 2.18.0
17 BuildRequires:  gnome-vfs2-devel >= 2.18.1
18 BuildRequires:  gtk+2-devel >= 2:2.10.11
19 BuildRequires:  libglade2-devel >= 1:2.6.0
20 BuildRequires:  libtool
21 BuildRequires:  libwnck-devel >= 2.18.0
22 BuildRequires:  xulrunner-devel >= 1.8.0.4
23 BuildRequires:  pkgconfig
24 BuildRequires:  python
25 BuildRequires:  rpmbuild(macros) >= 1.311
26 BuildRequires:  zlib-devel
27 Requires(post,preun):   GConf2 >= 2.18.0
28 Requires(post,postun):  desktop-file-utils
29 Requires(post,postun):  gtk+2
30 Requires(post,postun):  hicolor-icon-theme
31 Requires:       %{name}-libs = %{version}-%{release}
32 %requires_eq_to xulrunner xulrunner-devel
33 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35 # can be provided by mozilla or mozilla-embedded
36 %define         _noautoreqdep   libgtkembedmoz.so libxpcom.so
37 # we have strict deps for it
38 %define         _noautoreq      libxpcom.so
39
40 %description
41 API documentation browser for GNOME.
42
43 %description -l pl.UTF-8
44 Przeglądarka dokumentacji API dla GNOME.
45
46 %package libs
47 Summary:        Library to embed Devhelp in other applications
48 Summary(pl.UTF-8):      Biblioteka do osadzania Devhelp w innych aplikacjach
49 Group:          Libraries
50
51 %description libs
52 Library of Devhelp for embedding into other applications.
53
54 %description libs -l pl.UTF-8
55 Biblioteka Devhelp do osadzania w innych aplikacjach.
56
57 %package devel
58 Summary:        Headers for Devhelp library
59 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki Devhelp
60 Group:          Development/Libraries
61 Requires:       %{name}-libs = %{version}-%{release}
62
63 %description devel
64 Headers for Devhelp library.
65
66 %description devel -l pl.UTF-8
67 Pliki nagłówkowe biblioteki Devhelp.
68
69 %package static
70 Summary:        Static Devhelp library
71 Summary(pl.UTF-8):      Statyczna biblioteka Devhelp
72 Group:          Development/Libraries
73 Requires:       %{name}-devel = %{version}-%{release}
74
75 %description static
76 Static version of Devhelp library.
77
78 %description static -l pl.UTF-8
79 Statyczna biblioteka Devhelp.
80
81 %package -n gedit2-plugin-devhelp
82 Summary:        Devhelp plugin for Gedit editor
83 Summary(pl.UTF-8):      Wtyczka devhelpa dla edytora Gedit
84 Group:          X11/Applications
85 Requires:       %{name} = %{version}-%{release}
86 Requires:       gedit2
87
88 %description -n gedit2-plugin-devhelp
89 Allows to browse API documentation in Gedit.
90
91 %description -n gedit2-plugin-devhelp -l pl.UTF-8
92 Umożliwia przeglądanie dokumentacji API w Gedit.
93
94 %prep
95 %setup -q
96 %patch0 -p1
97 %patch1 -p1
98
99 %build
100 %{__libtoolize}
101 %{__aclocal} -I m4
102 %{__autoconf}
103 %{__autoheader}
104 %{__automake}
105 %configure \
106         --enable-static \
107         --disable-install-schemas
108 %{__make}
109
110 %install
111 rm -rf $RPM_BUILD_ROOT
112 install -d $RPM_BUILD_ROOT%{_sysconfdir}/gconf \
113         $RPM_BUILD_ROOT%{_datadir}/%{name}/{books,specs}
114
115 %{__make} install \
116         DESTDIR=$RPM_BUILD_ROOT
117
118 rm -rf $RPM_BUILD_ROOT%{_datadir}/mime-info
119 rm -f $RPM_BUILD_ROOT%{_libdir}/gedit-2/plugins/%{name}/*.py
120
121 %find_lang %{name}
122
123 %clean
124 rm -rf $RPM_BUILD_ROOT
125
126 %post
127 %gconf_schema_install devhelp.schemas
128 %update_desktop_database_post
129 %update_icon_cache hicolor
130
131 %preun
132 %gconf_schema_uninstall devhelp.schemas
133
134 %postun
135 %update_desktop_database_postun
136 %update_icon_cache hicolor
137
138 %post   libs -p /sbin/ldconfig
139 %postun libs -p /sbin/ldconfig
140
141 %files -f %{name}.lang
142 %defattr(644,root,root,755)
143 %doc AUTHORS ChangeLog NEWS README TODO
144 %attr(755,root,root) %{_bindir}/devhelp*
145 %{_datadir}/%{name}
146 %{_desktopdir}/*.desktop
147 %{_iconsdir}/hicolor/*/apps/*
148 %{_sysconfdir}/gconf/schemas/devhelp.schemas
149
150 %files libs
151 %defattr(644,root,root,755)
152 %attr(755,root,root) %{_libdir}/lib*.so.*.*
153
154 %files devel
155 %defattr(644,root,root,755)
156 %attr(755,root,root) %{_libdir}/lib*.so
157 %{_libdir}/lib*.la
158 %{_pkgconfigdir}/*.pc
159 %{_includedir}/*
160
161 %files static
162 %defattr(644,root,root,755)
163 %{_libdir}/lib*.a
164
165 %files -n gedit2-plugin-devhelp
166 %defattr(644,root,root,755)
167 %dir %{_libdir}/gedit-2/plugins/%{name}
168 %{_libdir}/gedit-2/plugins/%{name}.gedit-plugin
169 %{_libdir}/gedit-2/plugins/%{name}/*.py[oc]
This page took 0.85163 seconds and 3 git commands to generate.