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 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/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
# norootforbuild
Name: djvulibre Name: djvulibre
BuildRequires: fdupes libdrm-devel libjpeg-devel libtiff-devel qt3-devel qt3-devel-tools update-desktop-files xorg-x11-devel BuildRequires: fdupes libdrm-devel libjpeg-devel libtiff-devel qt3-devel qt3-devel-tools update-desktop-files xorg-x11-devel
License: GPLv2+ License: GPLv2+
Group: Productivity/Graphics/Other Group: Productivity/Graphics/Other
AutoReqProv: on
Version: 3.5.24 Version: 3.5.24
Release: 5 Release: 5
Url: http://djvu.sourceforge.net 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 by hundreds of academic, commercial, governmental, and noncommercial
Web sites around the world. 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 %package djview3
License: GPLv2+ License: GPLv2+
Summary: DjView3 is a portable DjVu Qt3 based viewer and browser plugin 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 DjView3 is a viewer and browser plugin for DjVu documents, based on the
DjVuLibre-3.5 library and the Qt3 toolkit. 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 %package -n libdjvulibre21
License: GPLv2+ License: GPLv2+
Summary: Libraries of Open Source Implementation of DjVu - djvulibre Summary: Libraries of Open Source Implementation of DjVu - djvulibre
@ -82,14 +64,6 @@ Group: Productivity/Graphics/Other
%description -n libdjvulibre21 %description -n libdjvulibre21
Libraries of Open Source Implementation of DjVu - djvulibre. 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 %package -n libdjvulibre-devel
License: GPLv2+ License: GPLv2+
Summary: Libraries of Open Source Implementation of DjVu - djvulibre Summary: Libraries of Open Source Implementation of DjVu - djvulibre
@ -99,31 +73,14 @@ Requires: libdjvulibre21 = %{version}, libjpeg-devel
%description -n libdjvulibre-devel %description -n libdjvulibre-devel
Libraries of Open Source Implementation of DjVu - djvulibre. 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 %package doc
License: GPLv2+ License: GPLv2+
Summary: Documentation for the the DjVu - djvulibre Summary: Documentation for the the DjVu - djvulibre
Group: Productivity/Graphics/Other Group: Productivity/Graphics/Other
AutoReqProv: on
%description doc %description doc
This package contains the documentation for the DjVu - djvulibre 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 %prep
%setup %setup
%patch1 %patch1
@ -146,8 +103,7 @@ QT_LIBS="-L/usr/%_lib/qt3/%{_lib} -lqt-mt" \
--x-libraries=/usr/%{_lib}/ \ --x-libraries=/usr/%{_lib}/ \
--with-qt=/usr/%_lib/qt3 \ --with-qt=/usr/%_lib/qt3 \
--enable-djview --enable-djview
make OPTS="$RPM_OPT_FLAGS -Wall -fmessage-length=0 -DNO_DEBUG" make OPTS="$RPM_OPT_FLAGS -Wall -fmessage-length=0 -DNO_DEBUG" %{?_smp_mflags}
#%%{?jobs:-j%%jobs}
%install %install
make install DESTDIR=$RPM_BUILD_ROOT 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 %suse_update_desktop_file -r -i djvulibre-djview3 Graphics Viewer
%fdupes $RPM_BUILD_ROOT %fdupes $RPM_BUILD_ROOT
%clean %post -n libdjvulibre21 -p /sbin/ldconfig
rm -rf $RPM_BUILD_ROOT
%post -n libdjvulibre21 %postun -n libdjvulibre21 -p /sbin/ldconfig
# LIBS: Run ldconfig
/sbin/ldconfig
%postun -n libdjvulibre21
# LIBS: Run ldconfig
/sbin/ldconfig
exit 0
%files %files
%defattr(-,root,root) %defattr(-,root,root)