- Lots of spec file cleaning

OBS-URL: https://build.opensuse.org/package/show/Publishing/htmldoc?expand=0&rev=20
This commit is contained in:
Martin Pluskal 2017-12-04 09:29:09 +00:00 committed by Git OBS Bridge
parent df9cf61fa0
commit 566e6a37b8
2 changed files with 13 additions and 0 deletions

View File

@ -25,6 +25,7 @@ Mon Dec 4 08:06:31 UTC 2017 - mpluskal@suse.com
* And many more * And many more
- Drop upstreamed htmldoc-cups_rand.patch and no longer needed - Drop upstreamed htmldoc-cups_rand.patch and no longer needed
htmldoc-docpath.diff htmldoc-docpath.diff
- Lots of spec file cleaning
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Mar 11 01:18:13 UTC 2017 - sfalken@opensuse.org Sat Mar 11 01:18:13 UTC 2017 - sfalken@opensuse.org

View File

@ -31,6 +31,7 @@ BuildRequires: libgcrypt-devel
BuildRequires: libgnutls-devel BuildRequires: libgnutls-devel
BuildRequires: libjpeg-devel BuildRequires: libjpeg-devel
BuildRequires: libpng-devel BuildRequires: libpng-devel
BuildRequires: update-desktop-files
BuildRequires: zlib-devel BuildRequires: zlib-devel
%description %description
@ -47,11 +48,22 @@ make %{?_smp_mflags} V=1
%install %install
%make_install %make_install
# Workaround faulty installation
mv -f %{buildroot}%{buildroot}/* \
%{buildroot}
# Get rid of unvanted files
rm -rf %{buildroot}/home %{buildroot}%{_datadir}/doc/%{name}
# Update desktop file
%suse_update_desktop_file -r %{name} Development Documentation
%suse_update_desktop_file %{name} -G%{name}
%files %files
%doc CHANGES.md COPYING README.md %doc CHANGES.md COPYING README.md
%{_bindir}/htmldoc %{_bindir}/htmldoc
%{_datadir}/htmldoc %{_datadir}/htmldoc
%{_datadir}/pixmaps/htmldoc.xpm
%{_datadir}/mime/packages/htmldoc.xml
%{_datadir}/applications/htmldoc.desktop
%{_mandir}/man1/htmldoc.1%{ext_man} %{_mandir}/man1/htmldoc.1%{ext_man}
%changelog %changelog