Accepting request 393336 from home:pluskalm:branches:Publishing

- Cleanup spec file with spec-cleaner
- Use macro for configure

OBS-URL: https://build.opensuse.org/request/show/393336
OBS-URL: https://build.opensuse.org/package/show/Publishing/htmldoc?expand=0&rev=15
This commit is contained in:
Martin Pluskal 2016-05-02 17:50:34 +00:00 committed by Git OBS Bridge
parent 859e1a4643
commit afd6537e5d
2 changed files with 30 additions and 27 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon May 2 17:46:20 UTC 2016 - mpluskal@suse.com
- Cleanup spec file with spec-cleaner
- Use macro for configure
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Feb 25 19:49:30 UTC 2015 - benoit.monin@gmx.fr Wed Feb 25 19:49:30 UTC 2015 - benoit.monin@gmx.fr

View File

@ -1,7 +1,7 @@
# #
# spec file for package htmldoc # spec file for package htmldoc
# #
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -17,26 +17,26 @@
Name: htmldoc Name: htmldoc
BuildRequires: autoconf
BuildRequires: fltk-devel
BuildRequires: freeglut-devel
BuildRequires: gcc-c++
BuildRequires: libdrm-devel
BuildRequires: libjpeg-devel
BuildRequires: libpng-devel
BuildRequires: openssl-devel
Url: http://htmldoc.org/
Version: 1.8.28 Version: 1.8.28
Release: 0 Release: 0
Summary: HTML Processor that Generates HTML, PostScript, and PDF Files Summary: HTML Processor that Generates HTML, PostScript, and PDF Files
License: LGPL-2.1+ License: LGPL-2.1+
Group: Productivity/Publishing/HTML/Tools Group: Productivity/Publishing/HTML/Tools
Url: http://htmldoc.org/
Source: http://www.msweet.org/files/project1/%{name}-%{version}-source.tar.bz2 Source: http://www.msweet.org/files/project1/%{name}-%{version}-source.tar.bz2
Patch: %{name}-docpath.diff Patch0: %{name}-docpath.diff
# PATCH-FIX-UPSTREAM htmldoc-cups_rand.patch upstream bug #510 # PATCH-FIX-UPSTREAM htmldoc-cups_rand.patch upstream bug #510
Patch1: htmldoc-cups_rand.patch Patch1: htmldoc-cups_rand.patch
BuildRequires: autoconf
BuildRequires: fltk-devel
BuildRequires: freeglut-devel
BuildRequires: gcc-c++
BuildRequires: libXpm-devel
BuildRequires: libdrm-devel
BuildRequires: libjpeg-devel
BuildRequires: libpng-devel
BuildRequires: openssl-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define DOCDIR %{_datadir}/doc/packages/%{name}
%description %description
HTMLDOC converts HTML source files into indexed HTML, PostScript, or HTMLDOC converts HTML source files into indexed HTML, PostScript, or
@ -45,33 +45,30 @@ printed.
%prep %prep
%setup -q %setup -q
%patch %patch0
%patch1 -p1 %patch1 -p1
%build %build
export CFLAGS="${RPM_OPT_FLAGS} -fno-strict-aliasing"
autoconf autoconf
./configure \ export CFLAGS="%{optflags} -fno-strict-aliasing"
--bindir=%{_bindir} \ %configure \
--prefix=%{_usr} \
--mandir=%{_mandir} \
--with-gui --with-gui
make make %{?_smp_mflags} V=1
%install %install
[ x"${RPM_BUILD_ROOT}" = x"/" ] && ( echo "your buildroot is /" && exit 0) || rm -rf "${RPM_BUILD_ROOT}"
make \ make \
bindir=${RPM_BUILD_ROOT}/%{_bindir} \ %{?_smp_mflags} \
prefix=${RPM_BUILD_ROOT}/%{_usr} \ bindir=%{buildroot}/%{_bindir} \
mandir=${RPM_BUILD_ROOT}/%{_mandir} \ prefix=%{buildroot}/%{_usr} \
datadir=${RPM_BUILD_ROOT}/%{_datadir} \ mandir=%{buildroot}/%{_mandir} \
datadir=%{buildroot}/%{_datadir} \
install install
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc cgi-bin/ CHANGES.txt COPYING.txt README.txt
%{_bindir}/htmldoc %{_bindir}/htmldoc
%{_datadir}/htmldoc %{_datadir}/htmldoc
%doc %{_mandir}/man1/htmldoc.1.gz %{_mandir}/man1/htmldoc.1%{ext_man}
%doc cgi-bin/ CHANGES.txt COPYING.txt README.txt
%changelog %changelog