address comments
This commit is contained in:
parent
327d109481
commit
9a542f96a8
77
devhelp.spec
77
devhelp.spec
@ -1,49 +1,31 @@
|
|||||||
Name: devhelp
|
Name: devhelp
|
||||||
Epoch: 1
|
Version: 3.30.0
|
||||||
Version: 3.30.0
|
Release: 3
|
||||||
Release: 1
|
Summary: GTK API documentation browser
|
||||||
Summary: API documentation browser
|
|
||||||
|
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: https://wiki.gnome.org/Apps/Devhelp
|
URL: https://wiki.gnome.org/Apps/Devhelp
|
||||||
Source0: https://download.gnome.org/sources/%{name}/3.30/%{name}-%{version}.tar.xz
|
Source0: https://download.gnome.org/sources/%{name}/3.30/%{name}-%{version}.tar.xz
|
||||||
|
|
||||||
BuildRequires: chrpath
|
BuildRequires: chrpath desktop-file-utils gettext gobject-introspection-devel gtk-doc itstool meson
|
||||||
BuildRequires: desktop-file-utils
|
BuildRequires: pkgconfig(amtk-5) pkgconfig(gsettings-desktop-schemas) pkgconfig(gtk+-3.0) pkgconfig(webkit2gtk-4.0)
|
||||||
BuildRequires: gettext
|
BuildRequires: libappstream-glib
|
||||||
BuildRequires: gobject-introspection-devel
|
|
||||||
BuildRequires: gtk-doc
|
|
||||||
BuildRequires: itstool
|
|
||||||
BuildRequires: meson
|
|
||||||
BuildRequires: pkgconfig(amtk-5)
|
|
||||||
BuildRequires: pkgconfig(gsettings-desktop-schemas)
|
|
||||||
BuildRequires: pkgconfig(gtk+-3.0)
|
|
||||||
BuildRequires: pkgconfig(webkit2gtk-4.0)
|
|
||||||
BuildRequires: libappstream-glib
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Devhelp is an API documentation browser for the GNOME desktop.
|
A browser to show API documentation generated by gtk-doc.
|
||||||
It works natively with API documentation generated by gtk-doc.
|
|
||||||
|
|
||||||
%package libs
|
%package devel
|
||||||
Summary: Library to embed Devhelp in other applications
|
Summary: include development library when using devhelp
|
||||||
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
%description libs
|
|
||||||
Devhelp is an API documentation browser for the GNOME desktop.
|
|
||||||
This package contains a library that can be used for embedding devhelp
|
|
||||||
into other applications such as IDEs.
|
|
||||||
|
|
||||||
%package devel
|
|
||||||
Summary: Library to embed Devhelp in other applications - Development files
|
|
||||||
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
Devhelp is an API documentation browser for the GNOME desktop.
|
Development packages contains header files and library that can be used
|
||||||
This package contains the development files for the library that can be used
|
for embedding devhelp into other applications.
|
||||||
for embedding devhelp into other applications such as IDEs.
|
|
||||||
|
%package_help
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%autosetup -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%meson -Dgtk_doc=true
|
%meson -Dgtk_doc=true
|
||||||
@ -52,7 +34,7 @@ for embedding devhelp into other applications such as IDEs.
|
|||||||
%install
|
%install
|
||||||
%meson_install
|
%meson_install
|
||||||
|
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/devhelp/books
|
install -d $RPM_BUILD_ROOT%{_datadir}/devhelp/books
|
||||||
|
|
||||||
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/devhelp
|
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/devhelp
|
||||||
|
|
||||||
@ -60,42 +42,35 @@ rm -rf ${RPM_BUILD_ROOT}%{_libdir}/gedit/plugins/__pycache__
|
|||||||
|
|
||||||
%find_lang devhelp --with-gnome
|
%find_lang devhelp --with-gnome
|
||||||
|
|
||||||
%check
|
|
||||||
appstream-util validate-relax --nonet $RPM_BUILD_ROOT%{_datadir}/metainfo/org.gnome.Devhelp.appdata.xml
|
|
||||||
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/org.gnome.Devhelp.desktop
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc AUTHORS NEWS README
|
%doc AUTHORS NEWS README
|
||||||
%license COPYING
|
%license COPYING
|
||||||
|
|
||||||
%{_bindir}/devhelp
|
%{_bindir}/devhelp
|
||||||
|
%{_datadir}/devhelp
|
||||||
%{_datadir}/applications/org.gnome.Devhelp.desktop
|
%{_datadir}/applications/org.gnome.Devhelp.desktop
|
||||||
%{_datadir}/dbus-1/services/org.gnome.Devhelp.service
|
%{_datadir}/dbus-1/services/org.gnome.Devhelp.service
|
||||||
%{_datadir}/devhelp
|
|
||||||
%{_datadir}/glib-2.0/schemas/org.gnome.devhelp.gschema.xml
|
%{_datadir}/glib-2.0/schemas/org.gnome.devhelp.gschema.xml
|
||||||
%{_datadir}/icons/hicolor/*/apps/org.gnome.Devhelp.png
|
%{_datadir}/icons/hicolor/*/apps/org.gnome.Devhelp.png
|
||||||
%{_datadir}/icons/hicolor/symbolic/apps/org.gnome.Devhelp-symbolic.svg
|
%{_datadir}/icons/hicolor/symbolic/apps/org.gnome.Devhelp-symbolic.svg
|
||||||
%{_datadir}/metainfo/org.gnome.Devhelp.appdata.xml
|
%{_datadir}/metainfo/org.gnome.Devhelp.appdata.xml
|
||||||
|
%{_datadir}/devhelp
|
||||||
%dir %{_libdir}/gedit
|
%dir %{_libdir}/gedit
|
||||||
%dir %{_libdir}/gedit/plugins
|
%dir %{_libdir}/gedit/plugins
|
||||||
%{_libdir}/gedit/plugins/devhelp.*
|
|
||||||
|
|
||||||
%files libs -f devhelp.lang
|
%files devel
|
||||||
%{_libdir}/libdevhelp-3.so.6*
|
%{_libdir}/libdevhelp-3.so.6*
|
||||||
%{_libdir}/girepository-1.0/Devhelp-3.0.typelib
|
%{_libdir}/girepository-1.0/Devhelp-3.0.typelib
|
||||||
%{_datadir}/glib-2.0/schemas/org.gnome.libdevhelp-3.gschema.xml
|
%{_datadir}/glib-2.0/schemas/org.gnome.libdevhelp-3.gschema.xml
|
||||||
|
|
||||||
%files devel
|
|
||||||
%{_includedir}/devhelp-3/
|
%{_includedir}/devhelp-3/
|
||||||
%{_libdir}/libdevhelp-3.so
|
%{_libdir}/libdevhelp-3.so
|
||||||
%{_libdir}/pkgconfig/*
|
%{_libdir}/pkgconfig/*
|
||||||
%{_datadir}/gtk-doc/*
|
|
||||||
%{_datadir}/gir-1.0/Devhelp-3.0.gir
|
%{_datadir}/gir-1.0/Devhelp-3.0.gir
|
||||||
|
|
||||||
%files help
|
%files help
|
||||||
|
%{_datadir}/gtk-doc/*
|
||||||
%{_mandir}/man1/devhelp.1*
|
%{_mandir}/man1/devhelp.1*
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Dec 1 2019 jiaxiya <jiaxiyajiaxiya@168.com> - 3.30.0-3
|
||||||
|
- Package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user