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