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