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