Accepting request 83373 from graphics

- Remove redundant tags/sections from specfile
  (cf. packaging guidelines)
- Use %_smp_mflags for parallel build (forwarded request 83264 from jengelh)

OBS-URL: https://build.opensuse.org/request/show/83373
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/djvulibre?expand=0&rev=24
This commit is contained in:
Lars Vogdt 2011-09-19 14:42:50 +00:00 committed by Git OBS Bridge
commit a7b74ae639
2 changed files with 10 additions and 55 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sun Sep 18 17:17:12 UTC 2011 - jengelh@medozas.de
- Remove redundant tags/sections from specfile
(cf. packaging guidelines)
- Use %_smp_mflags for parallel build
-------------------------------------------------------------------
Thu Jun 9 10:22:43 UTC 2011 - pgajdos@novell.com

View File

@ -15,14 +15,12 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: djvulibre
BuildRequires: fdupes libdrm-devel libjpeg-devel libtiff-devel qt3-devel qt3-devel-tools update-desktop-files xorg-x11-devel
License: GPLv2+
Group: Productivity/Graphics/Other
AutoReqProv: on
Version: 3.5.24
Release: 5
Url: http://djvu.sourceforge.net
@ -47,14 +45,6 @@ be smoothly zoomed and panned with no lengthy rerendering. DjVu is used
by hundreds of academic, commercial, governmental, and noncommercial
Web sites around the world.
Authors:
--------
Dr Bill C Riemers <docbill@users.sourceforge.net>
Leon Bottou <leonb@users.sourceforge.net>
Yann LeCun <profshadoko@users.sourceforge.net>
%package djview3
License: GPLv2+
Summary: DjView3 is a portable DjVu Qt3 based viewer and browser plugin
@ -66,14 +56,6 @@ Conflicts: djvulibre-djview4
DjView3 is a viewer and browser plugin for DjVu documents, based on the
DjVuLibre-3.5 library and the Qt3 toolkit.
Authors:
--------
Dr Bill C Riemers <docbill@users.sourceforge.net>
Leon Bottou <leonb@users.sourceforge.net>
Yann LeCun <profshadoko@users.sourceforge.net>
%package -n libdjvulibre21
License: GPLv2+
Summary: Libraries of Open Source Implementation of DjVu - djvulibre
@ -82,14 +64,6 @@ Group: Productivity/Graphics/Other
%description -n libdjvulibre21
Libraries of Open Source Implementation of DjVu - djvulibre.
Authors:
--------
Dr Bill C Riemers <docbill@users.sourceforge.net>
Leon Bottou <leonb@users.sourceforge.net>
Yann LeCun <profshadoko@users.sourceforge.net>
%package -n libdjvulibre-devel
License: GPLv2+
Summary: Libraries of Open Source Implementation of DjVu - djvulibre
@ -99,31 +73,14 @@ Requires: libdjvulibre21 = %{version}, libjpeg-devel
%description -n libdjvulibre-devel
Libraries of Open Source Implementation of DjVu - djvulibre.
Authors:
--------
Dr Bill C Riemers <docbill@users.sourceforge.net>
Leon Bottou <leonb@users.sourceforge.net>
Yann LeCun <profshadoko@users.sourceforge.net>
%package doc
License: GPLv2+
Summary: Documentation for the the DjVu - djvulibre
Group: Productivity/Graphics/Other
AutoReqProv: on
%description doc
This package contains the documentation for the DjVu - djvulibre
Authors:
--------
Dr Bill C Riemers <docbill@users.sourceforge.net>
Leon Bottou <leonb@users.sourceforge.net>
Yann LeCun <profshadoko@users.sourceforge.net>
%prep
%setup
%patch1
@ -146,8 +103,7 @@ QT_LIBS="-L/usr/%_lib/qt3/%{_lib} -lqt-mt" \
--x-libraries=/usr/%{_lib}/ \
--with-qt=/usr/%_lib/qt3 \
--enable-djview
make OPTS="$RPM_OPT_FLAGS -Wall -fmessage-length=0 -DNO_DEBUG"
#%%{?jobs:-j%%jobs}
make OPTS="$RPM_OPT_FLAGS -Wall -fmessage-length=0 -DNO_DEBUG" %{?_smp_mflags}
%install
make install DESTDIR=$RPM_BUILD_ROOT
@ -169,17 +125,9 @@ install -m 644 desktopfiles/hi32-djview3.png $RPM_BUILD_ROOT/usr/share/pixmaps/d
%suse_update_desktop_file -r -i djvulibre-djview3 Graphics Viewer
%fdupes $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%post -n libdjvulibre21 -p /sbin/ldconfig
%post -n libdjvulibre21
# LIBS: Run ldconfig
/sbin/ldconfig
%postun -n libdjvulibre21
# LIBS: Run ldconfig
/sbin/ldconfig
exit 0
%postun -n libdjvulibre21 -p /sbin/ldconfig
%files
%defattr(-,root,root)