This commit is contained in:
committed by
Git OBS Bridge
parent
d9b629be35
commit
60583e7541
+34
-28
@@ -18,28 +18,35 @@
|
||||
|
||||
|
||||
Name: fbreader
|
||||
Summary: E-book reader
|
||||
Group: Productivity/Other
|
||||
Version: 0.12.10
|
||||
Release: 1
|
||||
License: GPLv2+
|
||||
Summary: E-book reader
|
||||
Url: http://www.fbreader.org/
|
||||
Group: Productivity/Other
|
||||
Source0: fbreader-%{version}.tar.bz2
|
||||
Source1: FBReader.desktop
|
||||
Source1: FBReader.desktop
|
||||
Source2: README.SuSE
|
||||
Source3: fbreader.xml
|
||||
# PATCH-FIX-UPSTREAM fbreader-0.12.10-c++.patch http://www.fbreader.org/mantis/view.php?id=283 -- fix build with gcc 4.5
|
||||
Patch0: fbreader-0.12.10-c++.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Requires: zlibrary = %{version}
|
||||
%if 0%{?suse_version}
|
||||
BuildRequires: update-desktop-files
|
||||
%endif
|
||||
BuildRequires: enca-devel
|
||||
BuildRequires: expat
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: enca-devel expat liblinebreak-devel zlib-devel
|
||||
BuildRequires: gcc-c++ gtk2-devel
|
||||
BuildRequires: libqt4-devel
|
||||
BuildRequires: sqlite3-devel
|
||||
BuildRequires: fribidi-devel
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: libcurl-devel
|
||||
BuildRequires: libexpat-devel
|
||||
Requires: zlibrary = %{version}-%{release}
|
||||
BuildRequires: liblinebreak-devel
|
||||
BuildRequires: libqt4-devel
|
||||
BuildRequires: sqlite3-devel
|
||||
BuildRequires: zlib-devel
|
||||
BuildRequires: pkgconfig(gtk+-2.0)
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
FBReader is an e-book reader for various platforms.
|
||||
@@ -77,39 +84,35 @@ Main features:
|
||||
* Screen rotation by 90, 180 and 270 degrees.
|
||||
|
||||
%package -n zlibrary
|
||||
|
||||
Summary: Cross-platform GUI library
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: zlibrary-ui = %{version}-%{release}
|
||||
Requires: zlibrary-ui = %{version}
|
||||
|
||||
%description -n zlibrary
|
||||
ZLibrary is a cross-platform library to build applications running on
|
||||
desktop Linux, Windows, and different Linux-based PDAs.
|
||||
|
||||
%package -n zlibrary-devel
|
||||
|
||||
Summary: Development files for zlibrary
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: zlibrary = %{version}-%{release}
|
||||
Requires: zlibrary = %{version}
|
||||
|
||||
%description -n zlibrary-devel
|
||||
This package contains the libraries amd header files that are needed
|
||||
for writing applications with Zlibrary.
|
||||
|
||||
%package -n zlibrary-ui-gtk
|
||||
|
||||
Summary: GTK+ interface module for ZLibrary
|
||||
Group: Development/Libraries/C and C++
|
||||
Provides: zlibrary-ui = %{version}-%{release}
|
||||
Provides: zlibrary-ui = %{version}
|
||||
|
||||
%description -n zlibrary-ui-gtk
|
||||
This package provides a GTK+-based UI for ZLibrary.
|
||||
|
||||
%package -n zlibrary-ui-qt
|
||||
|
||||
Summary: Qt4 interface module for ZLibrary
|
||||
Group: Development/Libraries/C and C++
|
||||
Provides: zlibrary-ui = %{version}-%{release}
|
||||
Provides: zlibrary-ui = %{version}
|
||||
|
||||
%description -n zlibrary-ui-qt
|
||||
This package provides a Qt4-based UI for ZLibrary.
|
||||
@@ -128,31 +131,32 @@ make %{?_smp_mflags} -C zlibrary/ui TARGET_ARCH=desktop LIBDIR=%{_libdir} UI_TYP
|
||||
make %{?_smp_mflags} -C fbreader TARGET_ARCH=desktop LIBDIR=%{_libdir} UI_TYPE=dummy
|
||||
|
||||
%install
|
||||
make -C zlibrary/core do_install do_install_dev DESTDIR=$RPM_BUILD_ROOT TARGET_ARCH=desktop LIBDIR=%{_libdir} UI_TYPE=dummy
|
||||
make -C zlibrary/text do_install do_install_dev DESTDIR=$RPM_BUILD_ROOT TARGET_ARCH=desktop LIBDIR=%{_libdir} UI_TYPE=dummy
|
||||
make -C zlibrary/ui do_install DESTDIR=$RPM_BUILD_ROOT TARGET_ARCH=desktop LIBDIR=%{_libdir} UI_TYPE=gtk
|
||||
make -C zlibrary/ui do_install DESTDIR=$RPM_BUILD_ROOT TARGET_ARCH=desktop LIBDIR=%{_libdir} UI_TYPE=qt4
|
||||
make -C fbreader do_install DESTDIR=$RPM_BUILD_ROOT TARGET_ARCH=desktop UI_TYPE=dummy
|
||||
make -C zlibrary/core do_install do_install_dev DESTDIR=%{buildroot} TARGET_ARCH=desktop LIBDIR=%{_libdir} UI_TYPE=dummy
|
||||
make -C zlibrary/text do_install do_install_dev DESTDIR=%{buildroot} TARGET_ARCH=desktop LIBDIR=%{_libdir} UI_TYPE=dummy
|
||||
make -C zlibrary/ui do_install DESTDIR=%{buildroot} TARGET_ARCH=desktop LIBDIR=%{_libdir} UI_TYPE=gtk
|
||||
make -C zlibrary/ui do_install DESTDIR=%{buildroot} TARGET_ARCH=desktop LIBDIR=%{_libdir} UI_TYPE=qt4
|
||||
make -C fbreader do_install DESTDIR=%{buildroot} TARGET_ARCH=desktop UI_TYPE=dummy
|
||||
touch %{buildroot}%{_libdir}/zlibrary/ui/zlui-active.so
|
||||
|
||||
# desktop file
|
||||
%{__mkdir_p} %{buildroot}%{_datadir}/applications/
|
||||
mkdir -p %{buildroot}%{_datadir}/applications/
|
||||
install -m644 %{SOURCE1} %{buildroot}%{_datadir}/applications/FBReader.desktop
|
||||
%suse_update_desktop_file -i -n FBReader Office Viewer Literature
|
||||
|
||||
# mime type
|
||||
%{__mkdir_p} %{buildroot}%{_datadir}/mime/packages/
|
||||
mkdir -p %{buildroot}%{_datadir}/mime/packages/
|
||||
install -m644 %{SOURCE3} %{buildroot}%{_datadir}/mime/packages/fbreader.xml
|
||||
|
||||
# man page
|
||||
%{__mkdir_p} %{buildroot}%{_mandir}/man1
|
||||
mkdir -p %{buildroot}%{_mandir}/man1
|
||||
install -m644 fbreader/desktop/FBReader.1 %{buildroot}%{_mandir}/man1
|
||||
|
||||
%fdupes -s ${RPM_BUILD_ROOT}
|
||||
%fdupes -s %{buildroot}
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%post
|
||||
%post
|
||||
%desktop_database_post
|
||||
|
||||
%postun
|
||||
@@ -217,11 +221,13 @@ fi
|
||||
|
||||
%files -n zlibrary-ui-gtk
|
||||
%defattr(-,root,root,-)
|
||||
%ghost %{_libdir}/zlibrary/ui/zlui-active.so
|
||||
%{_libdir}/zlibrary/ui/zlui-gtk.so
|
||||
%{_datadir}/zlibrary/keynames-gtk.xml
|
||||
|
||||
%files -n zlibrary-ui-qt
|
||||
%defattr(-,root,root,-)
|
||||
%ghost %{_libdir}/zlibrary/ui/zlui-active.so
|
||||
%{_libdir}/zlibrary/ui/zlui-qt4.so
|
||||
%{_datadir}/zlibrary/keynames-qt4.xml
|
||||
|
||||
|
||||
+1
-2
@@ -1,5 +1,4 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Name=FBReader
|
||||
GenericName=E-book reader
|
||||
GenericName[ru]=Чтение электронных книг
|
||||
@@ -10,6 +9,6 @@ Exec=FBReader %F
|
||||
StartupNotify=true
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Icon=FBReader.png
|
||||
Icon=FBReader
|
||||
Categories=Office;Viewer;Literature;
|
||||
MimeType=application/x-fictionbook+xml;
|
||||
|
||||
Reference in New Issue
Block a user