- specfile cleanup
- fix license to be in SPDX format - fix build on Fedora and Mandriva OBS-URL: https://build.opensuse.org/package/show/Education/bibletime?expand=0&rev=31
This commit is contained in:
committed by
Git OBS Bridge
parent
5cef6aae7d
commit
ebd3a7759e
@@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Dec 15 23:59:15 UTC 2012 - lars@linux-schulserver.de
|
||||||
|
|
||||||
|
- specfile cleanup
|
||||||
|
- fix license to be in SPDX format
|
||||||
|
- fix build on Fedora and Mandriva
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Dec 30 08:34:18 UTC 2011 - lars@linux-schulserver.de
|
Fri Dec 30 08:34:18 UTC 2011 - lars@linux-schulserver.de
|
||||||
|
|
||||||
|
@@ -1,44 +1,51 @@
|
|||||||
#
|
#
|
||||||
# spec file for package bibletime
|
# spec file for package bibletime
|
||||||
#
|
#
|
||||||
# This file and all modifications and additions to the pristine
|
# Copyright (c) 2012 Lars Vogdt
|
||||||
# package are under the same license as the package itself.
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
# norootforbuild
|
|
||||||
|
|
||||||
Name: bibletime
|
Name: bibletime
|
||||||
Summary: An easy to use Bible study tool
|
|
||||||
Version: 2.9.1
|
Version: 2.9.1
|
||||||
Release: 1
|
Release: 1
|
||||||
License: GNU General Public License version 2 (GPL v2)
|
License: GPL-2.0+
|
||||||
|
Summary: An easy to use Bible study tool
|
||||||
Url: http://www.bibletime.info/
|
Url: http://www.bibletime.info/
|
||||||
Group: Productivity/Scientific/Other
|
Group: Productivity/Scientific/Other
|
||||||
Vendor: openSUSE-Education
|
|
||||||
Source0: %name-%version.tar.bz2
|
Source0: %name-%version.tar.bz2
|
||||||
Source1: %{name}.xpm
|
Source1: %{name}.xpm
|
||||||
Source2: bibletime-rpmlintrc
|
Source2: bibletime-rpmlintrc
|
||||||
|
BuildRequires: boost-devel
|
||||||
|
BuildRequires: cmake
|
||||||
|
BuildRequires: curl-devel
|
||||||
|
BuildRequires: libqt4-devel
|
||||||
|
BuildRequires: sword-devel
|
||||||
Provides: %{name}-i18n = %version
|
Provides: %{name}-i18n = %version
|
||||||
Obsoletes: %{name}-i18n < 1.7
|
Obsoletes: %{name}-i18n < 1.7
|
||||||
Obsoletes: %{name}-devel < 1.7
|
Obsoletes: %{name}-devel < 1.7
|
||||||
Provides: %{name}-devel = %version
|
Provides: %{name}-devel = %version
|
||||||
Provides: sword-frontend
|
Provides: sword-frontend
|
||||||
BuildRequires: boost-devel
|
|
||||||
BuildRequires: cmake
|
|
||||||
BuildRequires: curl-devel
|
|
||||||
BuildRequires: libqt4-devel
|
|
||||||
BuildRequires: sword-devel
|
|
||||||
#
|
#
|
||||||
# openSUSE
|
# openSUSE
|
||||||
#
|
#
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
Recommends: sword-bible
|
|
||||||
Recommends: sword-commentary
|
|
||||||
BuildRequires: clucene-core-devel
|
BuildRequires: clucene-core-devel
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: libQtWebKit-devel
|
BuildRequires: libQtWebKit-devel
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkg-config
|
||||||
BuildRequires: update-desktop-files
|
BuildRequires: update-desktop-files
|
||||||
|
Recommends: sword-bible
|
||||||
|
Recommends: sword-commentary
|
||||||
%endif
|
%endif
|
||||||
#
|
#
|
||||||
# Fedora
|
# Fedora
|
||||||
@@ -46,9 +53,11 @@ BuildRequires: update-desktop-files
|
|||||||
%if 0%{?fedora_version}
|
%if 0%{?fedora_version}
|
||||||
BuildRequires: clucene-core-devel
|
BuildRequires: clucene-core-devel
|
||||||
BuildRequires: desktop-file-utils
|
BuildRequires: desktop-file-utils
|
||||||
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
%if 0%{?fedora_version} > 11
|
%if 0%{?fedora_version} > 11
|
||||||
BuildRequires: webkitkde-devel
|
#BuildRequires: webkitkde-devel
|
||||||
|
BuildRequires: qt-webkit-devel
|
||||||
%else
|
%else
|
||||||
BuildRequires: WebKit-qt-devel
|
BuildRequires: WebKit-qt-devel
|
||||||
%endif
|
%endif
|
||||||
@@ -57,16 +66,16 @@ BuildRequires: WebKit-qt-devel
|
|||||||
# Mandriva
|
# Mandriva
|
||||||
#
|
#
|
||||||
%if 0%{?mandriva_version}
|
%if 0%{?mandriva_version}
|
||||||
BuildRequires: pkgconfig
|
|
||||||
BuildRequires: desktop-file-utils
|
BuildRequires: desktop-file-utils
|
||||||
BuildRequires: libclucene-devel
|
BuildRequires: libclucene-devel
|
||||||
|
BuildRequires: pkgconfig
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%define kdeprefix %{_prefix}
|
%define kdeprefix %{_prefix}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
BibleTime is a completely free Bible study program.
|
BibleTime is a completely free Bible study program.
|
||||||
|
|
||||||
The software uses the SWORD programming library to work with over 200 free
|
The software uses the SWORD programming library to work with over 200 free
|
||||||
Bible texts, commentaries, dictionaries and books provided by the Crosswire
|
Bible texts, commentaries, dictionaries and books provided by the Crosswire
|
||||||
@@ -74,47 +83,41 @@ Bible Society.
|
|||||||
|
|
||||||
BibleTime provides easy handling of digitalized texts (Bibles, commentaries and
|
BibleTime provides easy handling of digitalized texts (Bibles, commentaries and
|
||||||
lexicons) and powerful features to work with these texts (search in texts,
|
lexicons) and powerful features to work with these texts (search in texts,
|
||||||
write own notes, save, print etc.).
|
write own notes, save, print etc.).
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
mkdir build
|
mkdir build
|
||||||
pushd build
|
pushd build >/dev/null
|
||||||
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="%{_prefix}" ../
|
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="%{_prefix}" ../
|
||||||
%__make %{?_smp_mflags}
|
%{__make} %{?_smp_mflags}
|
||||||
popd
|
popd >/dev/null
|
||||||
|
|
||||||
%install
|
%install
|
||||||
pushd build
|
pushd build >/dev/null
|
||||||
make DESTDIR=%buildroot install
|
make install DESTDIR="%{buildroot}"
|
||||||
popd
|
popd >/dev/null
|
||||||
# fix language pathnames
|
# fix language pathnames
|
||||||
test -d %buildroot/%kdeprefix/share/locale/pt_br && mv %buildroot/%kdeprefix/share/locale/pt_br %buildroot/%kdeprefix/share/locale/pt_BR
|
test -d %{buildroot}%kdeprefix/share/locale/pt_br && mv %{buildroot}%kdeprefix/share/locale/pt_br %{buildroot}%kdeprefix/share/locale/pt_BR
|
||||||
test -d %buildroot/%kdeprefix/share/doc/HTML/pt-br && mv %buildroot/%kdeprefix/share/doc/HTML/pt-br %buildroot/%kdeprefix/share/doc/HTML/pt_BR
|
test -d %{buildroot}%kdeprefix/share/doc/HTML/pt-br && mv %{buildroot}%kdeprefix/share/doc/HTML/pt-br %{buildroot}%kdeprefix/share/doc/HTML/pt_BR
|
||||||
# install manpages
|
# install manpages
|
||||||
install -Dm644 docs/manpages/bibletime.1 %buildroot/%_mandir/man1/bibletime.1
|
install -Dm644 docs/manpages/bibletime.1 %{buildroot}%{_mandir}/man1/bibletime.1
|
||||||
install -Dm644 docs/manpages/bibletime.de.1 %buildroot/%_mandir/de/man1/bibletime.1
|
install -Dm644 docs/manpages/bibletime.de.1 %{buildroot}%{_mandir}/de/man1/bibletime.1
|
||||||
install -Dm644 %{SOURCE1} %buildroot/%{_datadir}/pixmaps/%{name}.xpm
|
install -Dm644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/%{name}.xpm
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
%fdupes -s %buildroot
|
%fdupes -s %{buildroot}
|
||||||
sed -i "s|bibletime/handbook/index.html|bibletime/handbook/en/index.html|" %buildroot/%{_datadir}/applications/%{name}.desktop
|
sed -i "s|bibletime/handbook/index.html|bibletime/handbook/en/index.html|" %{buildroot}%{_datadir}/applications/%{name}.desktop
|
||||||
%suse_update_desktop_file -r %{name} Education Teaching
|
%suse_update_desktop_file -r %{name} Education Teaching
|
||||||
%endif
|
%endif
|
||||||
#
|
#
|
||||||
%if 0%{?mandriva_version}
|
|
||||||
install -Dm644 ./cmake/platforms/linux/bibletime.desktop.cmake %buildroot/%_datadir/applications/bibletime.desktop
|
|
||||||
%endif
|
|
||||||
%if 0%{?fedora_version} || 0%{?mandriva_version}
|
%if 0%{?fedora_version} || 0%{?mandriva_version}
|
||||||
desktop-file-install --vendor="%{vendor}" \
|
install -Dm644 ./cmake/platforms/linux/bibletime.desktop.cmake %{buildroot}%{_datadir}/applications/bibletime.desktop
|
||||||
--dir=%buildroot/%_datadir/applications \
|
|
||||||
%name.desktop
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf %buildroot
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
Reference in New Issue
Block a user