]> git.pld-linux.org Git - packages/devhelp.git/blame - devhelp.spec
- updated to 3.36.1
[packages/devhelp.git] / devhelp.spec
CommitLineData
3a1dfbe2 1#
38bceebd
MB
2# Conditional build:
3%bcond_without apidocs # disable gtk-doc
4%bcond_without static_libs # static library
5
18f8e10b 6Summary: API documentation browser for GNOME
4188d237 7Summary(pl.UTF-8): Przeglądarka dokumentacji API dla GNOME
20782b1d 8Name: devhelp
67b3e91e 9Version: 3.36.1
960ebbdc 10Release: 1
0328db91 11License: GPL v2+
20782b1d 12Group: X11/Applications
67b3e91e
JB
13Source0: http://ftp.gnome.org/pub/GNOME/sources/devhelp/3.36/%{name}-%{version}.tar.xz
14# Source0-md5: 087aded37482879c42bab8687b73cc2a
40506027 15Patch0: %{name}-bookdir.patch
c394ba8c 16URL: https://wiki.gnome.org/Apps/Devhelp
1b04778a 17BuildRequires: amtk-devel >= 5.0
38bceebd 18BuildRequires: gettext-tools >= 0.19.7
67b3e91e 19BuildRequires: glib2-devel >= 1:2.60
38bceebd 20BuildRequires: gobject-introspection-devel >= 1.30.0
1b04778a 21BuildRequires: gsettings-desktop-schemas-devel
9c5bfbbd 22BuildRequires: gtk+3-devel >= 3.22.0
38bceebd 23%{?with_apidocs:BuildRequires: gtk-doc >= 1.25}
67b3e91e
JB
24BuildRequires: gtk-webkit4-devel >= 2.24
25BuildRequires: meson >= 0.50
1b04778a 26BuildRequires: ninja >= 1.5
0328db91 27BuildRequires: pkgconfig
1b04778a 28BuildRequires: python3-devel >= 1:3.3
0192a9ae 29BuildRequires: rpm-pythonprov
1b04778a
JB
30BuildRequires: rpmbuild(macros) >= 1.736
31BuildRequires: sed >= 4.0
edc65cdd
MB
32BuildRequires: tar >= 1:1.22
33BuildRequires: xz
67b3e91e 34Requires(post,postun): glib2 >= 1:2.60
16f64fd4 35Requires(post,postun): gtk-update-icon-cache
64a66d5b 36Requires: %{name}-libs = %{version}-%{release}
1b04778a
JB
37Requires: amtk >= 5.0
38Requires: gsettings-desktop-schemas
2153a520 39Requires: hicolor-icon-theme
20782b1d
AM
40BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41
20782b1d 42%description
18f8e10b 43API documentation browser for GNOME.
20782b1d 44
d20ab5a4
JR
45%description -l pl.UTF-8
46Przeglądarka dokumentacji API dla GNOME.
20782b1d 47
64a66d5b 48%package libs
49Summary: Library to embed Devhelp in other applications
4188d237 50Summary(pl.UTF-8): Biblioteka do osadzania Devhelp w innych aplikacjach
f883acb4 51Group: X11/Libraries
67b3e91e 52Requires: glib2 >= 1:2.60
1b04778a 53Requires: gtk+3 >= 3.22.0
67b3e91e 54Requires: gtk-webkit4 >= 2.24
64a66d5b 55
56%description libs
18f8e10b 57Library of Devhelp for embedding into other applications.
64a66d5b 58
d20ab5a4 59%description libs -l pl.UTF-8
18f8e10b 60Biblioteka Devhelp do osadzania w innych aplikacjach.
64a66d5b 61
1609a537 62%package devel
64a66d5b 63Summary: Headers for Devhelp library
4188d237 64Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Devhelp
f883acb4 65Group: X11/Development/Libraries
64a66d5b 66Requires: %{name}-libs = %{version}-%{release}
67b3e91e 67Requires: glib2-devel >= 1:2.60
9c5bfbbd 68Requires: gtk+3-devel >= 3.22.0
67b3e91e 69Requires: gtk-webkit4-devel >= 2.24
1609a537 70
71%description devel
64a66d5b 72Headers for Devhelp library.
1609a537 73
d20ab5a4
JR
74%description devel -l pl.UTF-8
75Pliki nagłówkowe biblioteki Devhelp.
1609a537 76
77%package static
64a66d5b 78Summary: Static Devhelp library
4188d237 79Summary(pl.UTF-8): Statyczna biblioteka Devhelp
f883acb4 80Group: X11/Development/Libraries
64a66d5b 81Requires: %{name}-devel = %{version}-%{release}
1609a537 82
83%description static
64a66d5b 84Static version of Devhelp library.
1609a537 85
d20ab5a4 86%description static -l pl.UTF-8
64a66d5b 87Statyczna biblioteka Devhelp.
1609a537 88
38bceebd
MB
89%package apidocs
90Summary: Devhelp API documetation
91Summary(pl.UTF-8): Dokumentacja API Devhelp
92Group: Documentation
93Requires: gtk-doc-common
94%if "%{_rpmversion}" >= "5"
95BuildArch: noarch
96%endif
97
98%description apidocs
99Devhelp API documetation.
100
101%description apidocs -l pl.UTF-8
102Dokumentacja API Devhelp.
103
c1597d56 104%package -n gedit-plugin-devhelp
e7c0fa80 105Summary: Devhelp plugin for Gedit editor
4188d237 106Summary(pl.UTF-8): Wtyczka devhelpa dla edytora Gedit
1cf29e7b 107Group: X11/Applications
249ab429 108Requires: %{name} = %{version}-%{release}
c394ba8c
JB
109# python3 based gedit
110Requires: gedit >= 3.8
b4e77d9c 111Requires: libpeas-loader-python3
c394ba8c
JB
112Requires: python3 >= 1:3.3
113Requires: python3-pygobject3 >= 3
8777def3 114Obsoletes: gedit2-plugin-devhelp
e7c0fa80 115
c1597d56 116%description -n gedit-plugin-devhelp
d088438f 117Plugin that allows to browse API documentation in Gedit.
e7c0fa80 118
c1597d56 119%description -n gedit-plugin-devhelp -l pl.UTF-8
d088438f 120Wtyczka umożliwiająca przeglądanie dokumentacji API w edytorze Gedit.
e7c0fa80 121
20782b1d
AM
122%prep
123%setup -q
c145ed5a 124%patch0 -p1
1b04778a
JB
125
126%if %{with static_libs}
127%{__sed} -i '/libdevhelp = / s/shared_library/library/' devhelp/meson.build
128%endif
20782b1d
AM
129
130%build
1b04778a
JB
131%meson build \
132 %{?with_apidocs:-Dgtk_doc=true}
133
134%ninja_build -C build
20782b1d
AM
135
136%install
137rm -rf $RPM_BUILD_ROOT
b4e77d9c 138install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/{books,references,specs}
20782b1d 139
1b04778a 140%ninja_install -C build
20782b1d 141
1b04778a
JB
142%py3_comp $RPM_BUILD_ROOT%{_libdir}/gedit/plugins
143%py3_ocomp $RPM_BUILD_ROOT%{_libdir}/gedit/plugins
2dc813cf 144
1b04778a 145%find_lang %{name} --with-gnome
20782b1d
AM
146
147%clean
148rm -rf $RPM_BUILD_ROOT
149
a5373a6b 150%post
b4e77d9c 151%glib_compile_schemas
18f8e10b 152%update_icon_cache hicolor
a5373a6b 153
18f8e10b 154%postun
b4e77d9c 155%glib_compile_schemas
18f8e10b 156%update_icon_cache hicolor
157
2f4b9d55 158%post libs -p /sbin/ldconfig
159%postun libs -p /sbin/ldconfig
1609a537 160
20782b1d
AM
161%files -f %{name}.lang
162%defattr(644,root,root,755)
1b04778a 163%doc AUTHORS NEWS README TODO
f883acb4 164%attr(755,root,root) %{_bindir}/devhelp
1b04778a
JB
165%dir %{_datadir}/%{name}
166%{_datadir}/%{name}/assistant
167# 3 following are data dirs
168%dir %{_datadir}/%{name}/books
169%dir %{_datadir}/%{name}/references
170%dir %{_datadir}/%{name}/specs
171%{_datadir}/dbus-1/services/org.gnome.Devhelp.service
b4e77d9c 172%{_datadir}/glib-2.0/schemas/org.gnome.devhelp.gschema.xml
1b04778a 173%{_datadir}/glib-2.0/schemas/org.gnome.libdevhelp-3.gschema.xml
9c5bfbbd 174%{_datadir}/metainfo/org.gnome.Devhelp.appdata.xml
1b04778a
JB
175%{_desktopdir}/org.gnome.Devhelp.desktop
176%{_iconsdir}/hicolor/scalable/apps/org.gnome.Devhelp.svg
177%{_iconsdir}/hicolor/symbolic/apps/org.gnome.Devhelp-symbolic.svg
2f9a8381 178%{_mandir}/man1/devhelp.1*
1609a537 179
64a66d5b 180%files libs
181%defattr(644,root,root,755)
2153a520 182%attr(755,root,root) %{_libdir}/libdevhelp-3.so.*.*.*
1b04778a 183%attr(755,root,root) %ghost %{_libdir}/libdevhelp-3.so.6
38bceebd 184%{_libdir}/girepository-1.0/Devhelp-3.0.typelib
64a66d5b 185
1609a537 186%files devel
187%defattr(644,root,root,755)
2153a520 188%attr(755,root,root) %{_libdir}/libdevhelp-3.so
38bceebd 189%{_datadir}/gir-1.0/Devhelp-3.0.gir
2153a520 190%{_pkgconfigdir}/libdevhelp-3.0.pc
1b04778a 191%{_includedir}/devhelp-3
1609a537 192
67b3e91e 193%if %{with static_libs}
1609a537 194%files static
195%defattr(644,root,root,755)
2153a520 196%{_libdir}/libdevhelp-3.a
67b3e91e 197%endif
e7c0fa80 198
38bceebd
MB
199%if %{with apidocs}
200%files apidocs
201%defattr(644,root,root,755)
202%{_gtkdocdir}/devhelp-3
203%endif
204
c1597d56 205%files -n gedit-plugin-devhelp
e7c0fa80 206%defattr(644,root,root,755)
2153a520 207%{_libdir}/gedit/plugins/devhelp.plugin
39f04eae 208%{_libdir}/gedit/plugins/devhelp.py
1b04778a 209%{_libdir}/gedit/plugins/__pycache__/devhelp.cpython-*.py[co]
This page took 0.150413 seconds and 4 git commands to generate.