]> git.pld-linux.org Git - packages/devhelp.git/blame - devhelp.spec
Update to 3.24.0 (note: new soname)
[packages/devhelp.git] / devhelp.spec
CommitLineData
38bceebd
MB
1# Conditional build:
2%bcond_without apidocs # disable gtk-doc
3%bcond_without static_libs # static library
4
18f8e10b 5Summary: API documentation browser for GNOME
4188d237 6Summary(pl.UTF-8): Przeglądarka dokumentacji API dla GNOME
20782b1d 7Name: devhelp
38bceebd 8Version: 3.24.0
960ebbdc 9Release: 1
0328db91 10License: GPL v2+
20782b1d 11Group: X11/Applications
38bceebd
MB
12Source0: http://ftp.gnome.org/pub/GNOME/sources/devhelp/3.24/%{name}-%{version}.tar.xz
13# Source0-md5: 5aeabfd755e73082344ae46c2f8f6d66
40506027 14Patch0: %{name}-bookdir.patch
39f04eae 15Patch1: %{name}-use-python3.patch
c394ba8c 16URL: https://wiki.gnome.org/Apps/Devhelp
2153a520 17BuildRequires: autoconf >= 2.64
38bceebd
MB
18BuildRequires: automake >= 1:1.14
19BuildRequires: gettext-tools >= 0.19.7
590df518 20BuildRequires: glib2-devel >= 1:2.38.0
647c8443 21BuildRequires: gnome-common >= 2.24.0
38bceebd 22BuildRequires: gobject-introspection-devel >= 1.30.0
956a73fb 23BuildRequires: gtk+3-devel >= 3.20.0
38bceebd 24%{?with_apidocs:BuildRequires: gtk-doc >= 1.25}
2f9a8381 25BuildRequires: gtk-webkit4-devel >= 2.6.0
f58c5523 26BuildRequires: libtool >= 2:2.2
0328db91 27BuildRequires: pkgconfig
39f04eae 28BuildRequires: python3 >= 1:3.3
0192a9ae 29BuildRequires: rpm-pythonprov
18f8e10b 30BuildRequires: rpmbuild(macros) >= 1.311
edc65cdd
MB
31BuildRequires: tar >= 1:1.22
32BuildRequires: xz
9a1ccdd3 33BuildRequires: zlib-devel
22aa8d08 34Requires(post,postun): glib2 >= 1:2.38.0
16f64fd4 35Requires(post,postun): gtk-update-icon-cache
64a66d5b 36Requires: %{name}-libs = %{version}-%{release}
2f9a8381 37Requires: gtk-webkit4 >= 2.6.0
2153a520 38Requires: hicolor-icon-theme
ead4e980 39# sr@Latn vs. sr@latin
40Conflicts: glibc-misc < 6:2.7
20782b1d
AM
41BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42
20782b1d 43%description
18f8e10b 44API documentation browser for GNOME.
20782b1d 45
d20ab5a4
JR
46%description -l pl.UTF-8
47Przeglądarka dokumentacji API dla GNOME.
20782b1d 48
64a66d5b 49%package libs
50Summary: Library to embed Devhelp in other applications
4188d237 51Summary(pl.UTF-8): Biblioteka do osadzania Devhelp w innych aplikacjach
f883acb4 52Group: X11/Libraries
c394ba8c 53Requires: glib2 >= 1:2.38.0
956a73fb 54Requires: gtk+3 >= 3.20.0
2f9a8381 55Requires: gtk-webkit4 >= 2.6.0
64a66d5b 56
57%description libs
18f8e10b 58Library of Devhelp for embedding into other applications.
64a66d5b 59
d20ab5a4 60%description libs -l pl.UTF-8
18f8e10b 61Biblioteka Devhelp do osadzania w innych aplikacjach.
64a66d5b 62
1609a537 63%package devel
64a66d5b 64Summary: Headers for Devhelp library
4188d237 65Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Devhelp
f883acb4 66Group: X11/Development/Libraries
64a66d5b 67Requires: %{name}-libs = %{version}-%{release}
590df518 68Requires: glib2-devel >= 1:2.38.0
956a73fb 69Requires: gtk+3-devel >= 3.20.0
2f9a8381 70Requires: gtk-webkit4-devel >= 2.6.0
1609a537 71
72%description devel
64a66d5b 73Headers for Devhelp library.
1609a537 74
d20ab5a4
JR
75%description devel -l pl.UTF-8
76Pliki nagłówkowe biblioteki Devhelp.
1609a537 77
78%package static
64a66d5b 79Summary: Static Devhelp library
4188d237 80Summary(pl.UTF-8): Statyczna biblioteka Devhelp
f883acb4 81Group: X11/Development/Libraries
64a66d5b 82Requires: %{name}-devel = %{version}-%{release}
1609a537 83
84%description static
64a66d5b 85Static version of Devhelp library.
1609a537 86
d20ab5a4 87%description static -l pl.UTF-8
64a66d5b 88Statyczna biblioteka Devhelp.
1609a537 89
38bceebd
MB
90%package apidocs
91Summary: Devhelp API documetation
92Summary(pl.UTF-8): Dokumentacja API Devhelp
93Group: Documentation
94Requires: gtk-doc-common
95%if "%{_rpmversion}" >= "5"
96BuildArch: noarch
97%endif
98
99%description apidocs
100Devhelp API documetation.
101
102%description apidocs -l pl.UTF-8
103Dokumentacja API Devhelp.
104
c1597d56 105%package -n gedit-plugin-devhelp
e7c0fa80 106Summary: Devhelp plugin for Gedit editor
4188d237 107Summary(pl.UTF-8): Wtyczka devhelpa dla edytora Gedit
1cf29e7b 108Group: X11/Applications
249ab429 109Requires: %{name} = %{version}-%{release}
c394ba8c
JB
110# python3 based gedit
111Requires: gedit >= 3.8
b4e77d9c 112Requires: libpeas-loader-python3
c394ba8c
JB
113Requires: python3 >= 1:3.3
114Requires: python3-pygobject3 >= 3
8777def3 115Obsoletes: gedit2-plugin-devhelp
e7c0fa80 116
c1597d56 117%description -n gedit-plugin-devhelp
d088438f 118Plugin that allows to browse API documentation in Gedit.
e7c0fa80 119
c1597d56 120%description -n gedit-plugin-devhelp -l pl.UTF-8
d088438f 121Wtyczka umożliwiająca przeglądanie dokumentacji API w edytorze Gedit.
e7c0fa80 122
20782b1d
AM
123%prep
124%setup -q
c145ed5a 125%patch0 -p1
39f04eae 126%patch1 -p1
20782b1d
AM
127
128%build
0574367f 129%{__libtoolize}
b279d815 130%{__aclocal} -I m4
0574367f 131%{__autoconf}
132%{__autoheader}
133%{__automake}
b42350d2 134%configure \
38bceebd
MB
135 %{__enable_disable apidocs gtk-doc} \
136 %{__enable_disable static_libs static} \
137 %{?with_apidocs:--with-html-dir=%{_gtkdocdir}} \
8bacc6fc 138 --disable-silent-rules
20782b1d
AM
139%{__make}
140
141%install
142rm -rf $RPM_BUILD_ROOT
b4e77d9c 143install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/{books,references,specs}
20782b1d
AM
144
145%{__make} install \
944db8de 146 DESTDIR=$RPM_BUILD_ROOT
20782b1d 147
39f04eae 148%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
2dc813cf 149
20782b1d
AM
150%find_lang %{name}
151
152%clean
153rm -rf $RPM_BUILD_ROOT
154
a5373a6b 155%post
b4e77d9c 156%glib_compile_schemas
18f8e10b 157%update_icon_cache hicolor
a5373a6b 158
18f8e10b 159%postun
b4e77d9c 160%glib_compile_schemas
18f8e10b 161%update_icon_cache hicolor
162
2f4b9d55 163%post libs -p /sbin/ldconfig
164%postun libs -p /sbin/ldconfig
1609a537 165
20782b1d
AM
166%files -f %{name}.lang
167%defattr(644,root,root,755)
edc65cdd 168%doc AUTHORS NEWS README TODO
f883acb4 169%attr(755,root,root) %{_bindir}/devhelp
9a1ccdd3 170%{_datadir}/%{name}
2f9a8381 171%{_desktopdir}/org.gnome.Devhelp.desktop
c394ba8c
JB
172%{_iconsdir}/hicolor/*x*/apps/devhelp.png
173%{_iconsdir}/hicolor/symbolic/apps/devhelp-symbolic.svg
b4e77d9c
MB
174%{_datadir}/GConf/gsettings/devhelp.convert
175%{_datadir}/glib-2.0/schemas/org.gnome.devhelp.gschema.xml
2f9a8381
MB
176%{_datadir}/appdata/org.gnome.Devhelp.appdata.xml
177%{_datadir}/dbus-1/services/org.gnome.Devhelp.service
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.*.*.*
38bceebd
MB
183%attr(755,root,root) %ghost %{_libdir}/libdevhelp-3.so.3
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
MB
190%{_pkgconfigdir}/libdevhelp-3.0.pc
191%{_includedir}/devhelp-3.0
1609a537 192
193%files static
194%defattr(644,root,root,755)
2153a520 195%{_libdir}/libdevhelp-3.a
e7c0fa80 196
38bceebd
MB
197%if %{with apidocs}
198%files apidocs
199%defattr(644,root,root,755)
200%{_gtkdocdir}/devhelp-3
201%endif
202
c1597d56 203%files -n gedit-plugin-devhelp
e7c0fa80 204%defattr(644,root,root,755)
39f04eae 205%{_libdir}/gedit/plugins/__pycache__
2153a520 206%{_libdir}/gedit/plugins/devhelp.plugin
39f04eae 207%{_libdir}/gedit/plugins/devhelp.py
This page took 3.603354 seconds and 4 git commands to generate.