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