]> git.pld-linux.org Git - packages/devhelp.git/blob - devhelp.spec
- rel.4, fixed summaries and descriptions, update icon cache, use HEAD deps
[packages/devhelp.git] / devhelp.spec
1 Summary:        API documentation browser for GNOME
2 Summary(pl):    Przegl±darka dokumentacji API dla GNOME
3 Name:           devhelp
4 Version:        0.12
5 Release:        4
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:  mozilla-firefox-devel >= 1.5.0.6
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,post):    gtk+2 >= 2.10.1
30 Requires:       %{name}-libs = %{version}-%{release}
31 %requires_eq    mozilla-firefox
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 # can be provided by mozilla or mozilla-embedded
35 %define         _noautoreqdep   libgtkembedmoz.so libxpcom.so
36
37 %description
38 API documentation browser for GNOME.
39
40 %description -l pl
41 Przegl±darka dokumentacji API dla GNOME.
42
43 %package libs
44 Summary:        Library to embed Devhelp in other applications
45 Summary(pl):    Biblioteka do osadzania Devhelp w innych aplikacjach
46 Group:          Libraries
47
48 %description libs
49 Library of Devhelp for embedding into other applications.
50
51 %description libs -l pl
52 Biblioteka Devhelp do osadzania w innych aplikacjach.
53
54 %package devel
55 Summary:        Headers for Devhelp library
56 Summary(pl):    Pliki nag³ówkowe biblioteki Devhelp
57 Group:          Development/Libraries
58 Requires:       %{name}-libs = %{version}-%{release}
59
60 %description devel
61 Headers for Devhelp library.
62
63 %description devel -l pl
64 Pliki nag³ówkowe biblioteki Devhelp.
65
66 %package static
67 Summary:        Static Devhelp library
68 Summary(pl):    Statyczna biblioteka Devhelp
69 Group:          Development/Libraries
70 Requires:       %{name}-devel = %{version}-%{release}
71
72 %description static
73 Static version of Devhelp library.
74
75 %description static -l pl
76 Statyczna biblioteka Devhelp.
77
78 %package -n gedit2-plugin-devhelp
79 Summary:        Devhelp plugin for Gedit editor
80 Summary(pl):    Wtyczka devhelpa dla edytora Gedit
81 Group:          X11/Applications
82 Requires:       %{name} = %{version}-%{release}
83 Requires:       gedit2
84
85 %description -n gedit2-plugin-devhelp
86 Allows to browse API documentation in Gedit.
87
88 %description -n gedit2-plugin-devhelp -l pl
89 Umo¿liwia przegl±danie dokumentacji API w Gedit.
90
91 %prep
92 %setup -q
93 %patch0 -p1
94 %patch1 -p1
95 %patch2 -p1
96
97 %build
98 %{__libtoolize}
99 %{__aclocal} -I m4
100 %{__autoconf}
101 %{__autoheader}
102 %{__automake}
103 %configure \
104         --disable-install-schemas
105 %{__make}
106
107 %install
108 rm -rf $RPM_BUILD_ROOT
109 install -d $RPM_BUILD_ROOT%{_sysconfdir}/gconf \
110         $RPM_BUILD_ROOT%{_datadir}/%{name}/{books,specs}
111
112 %{__make} install \
113         DESTDIR=$RPM_BUILD_ROOT
114
115 rm -rf $RPM_BUILD_ROOT%{_datadir}/mime-info
116 rm -f $RPM_BUILD_ROOT%{_libdir}/gedit-2/plugins/%{name}/*.py
117
118 %find_lang %{name}
119
120 %clean
121 rm -rf $RPM_BUILD_ROOT
122
123 %post
124 %gconf_schema_install devhelp.schemas
125 %update_icon_cache hicolor
126
127 %preun
128 %gconf_schema_uninstall devhelp.schemas
129
130 %postun
131 %update_icon_cache hicolor
132
133 %post   libs -p /sbin/ldconfig
134 %postun libs -p /sbin/ldconfig
135
136 %files -f %{name}.lang
137 %defattr(644,root,root,755)
138 %doc AUTHORS ChangeLog NEWS README TODO
139 %attr(755,root,root) %{_bindir}/devhelp*
140 %{_datadir}/%{name}
141 %{_desktopdir}/*.desktop
142 %{_iconsdir}/hicolor/*/apps/*
143 %{_sysconfdir}/gconf/schemas/devhelp.schemas
144
145 %files libs
146 %defattr(644,root,root,755)
147 %attr(755,root,root) %{_libdir}/lib*.so.*.*
148
149 %files devel
150 %defattr(644,root,root,755)
151 %attr(755,root,root) %{_libdir}/lib*.so
152 %{_libdir}/lib*.la
153 %{_pkgconfigdir}/*.pc
154 %{_includedir}/*
155
156 %files static
157 %defattr(644,root,root,755)
158 %{_libdir}/lib*.a
159
160 %files -n gedit2-plugin-devhelp
161 %defattr(644,root,root,755)
162 %dir %{_libdir}/gedit-2/plugins/%{name}
163 %{_libdir}/gedit-2/plugins/%{name}.gedit-plugin
164 %{_libdir}/gedit-2/plugins/%{name}/*.py[oc]
This page took 0.048656 seconds and 4 git commands to generate.