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