2012-08-30 12:23:01 +02:00
|
|
|
#
|
|
|
|
# spec file for package sigil
|
|
|
|
#
|
2013-09-11 07:40:43 +02:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2012-08-30 12:23:01 +02:00
|
|
|
#
|
2012-08-30 14:22:22 +02:00
|
|
|
# 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.
|
|
|
|
|
2012-08-30 12:23:01 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2013-09-11 07:40:43 +02:00
|
|
|
|
2012-08-30 12:23:01 +02:00
|
|
|
Name: sigil
|
|
|
|
Summary: Multi-platform WYSIWYG Ebook Editor
|
2012-08-30 14:22:22 +02:00
|
|
|
License: GPL-3.0
|
2012-08-30 12:23:01 +02:00
|
|
|
Group: Productivity/Other
|
2014-10-06 20:12:04 +02:00
|
|
|
Version: 0.8.0
|
2013-09-11 07:40:43 +02:00
|
|
|
Release: 0
|
2012-08-30 12:23:01 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
Source0: http://sigil.googlecode.com/files/Sigil-%{version}-Code.zip
|
|
|
|
Source1: %{name}.desktop
|
|
|
|
# PATCH-FIX-OPENSUSE Disabled __DATE__ and __TIME__ which is replaced later in pre section
|
|
|
|
Patch0: %{name}-Dialogs-About.cpp.patch
|
2013-09-11 07:40:43 +02:00
|
|
|
Url: http://code.google.com/p/sigil/
|
|
|
|
BuildRequires: boost-devel
|
2014-10-06 20:12:04 +02:00
|
|
|
BuildRequires: cmake >= 3.0
|
2012-08-30 12:23:01 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
2012-11-23 12:37:51 +01:00
|
|
|
BuildRequires: hunspell-devel
|
2014-06-24 10:26:49 +02:00
|
|
|
BuildRequires: pkgconfig(Qt5Concurrent)
|
|
|
|
BuildRequires: pkgconfig(Qt5Svg)
|
|
|
|
BuildRequires: pkgconfig(Qt5Xml)
|
|
|
|
BuildRequires: pkgconfig(Qt5XmlPatterns)
|
2014-10-06 20:12:04 +02:00
|
|
|
BuildRequires: pkgconfig(Qt5PrintSupport)
|
2014-09-29 16:47:34 +02:00
|
|
|
BuildRequires: libqt5-qtbase-devel
|
2013-09-11 07:40:43 +02:00
|
|
|
BuildRequires: libQt5WebKit5-devel
|
|
|
|
BuildRequires: libQt5WebKitWidgets-devel
|
|
|
|
BuildRequires: libqt5-qttools-devel
|
|
|
|
BuildRequires: libstdc++-devel
|
2012-11-23 12:37:51 +01:00
|
|
|
BuildRequires: libxerces-c-devel
|
2013-09-11 07:40:43 +02:00
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: unzip
|
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
BuildRequires: zlib-devel
|
2012-08-30 12:23:01 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
Sigil is a free and open source editor for the EPUB format.
|
|
|
|
It is designed for easy, WYSIWYG editing of EPUB files and for
|
|
|
|
converting other formats to EPUB. It also provides features for
|
|
|
|
advanced users, like direct XHTML, CSS and XPGT editing. You can
|
|
|
|
use it to add any of the metadata entries supported by the EPUB
|
|
|
|
specification and create a hierarchical Table of Contents.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -c -n %{name}-%{version}
|
|
|
|
%{__cp} -v %{S:1} .
|
|
|
|
%patch0
|
|
|
|
sed -i 's/\r//' ChangeLog.txt README.txt COPYING.txt
|
|
|
|
|
|
|
|
#FIXME MANUAL UPDATE OF DATE REQUIRED HERE!!!!
|
|
|
|
# Fix "Your file uses __DATE and __TIME__ this causes the package to rebuild
|
|
|
|
# when not needed warning"
|
|
|
|
# http://sourceforge.net/tracker/?func=detail&atid=102439&aid=3314371&group_id=2439
|
|
|
|
#
|
|
|
|
# We use the current date
|
|
|
|
_date=$(date +"%Y%m%d")
|
|
|
|
_time=$(date +"%H:%M:%S")
|
|
|
|
# Change it:
|
|
|
|
sed -i "s/@DATE@/$_date/;s/@TIME@/$_time/g" src/Sigil/Dialogs/About.cpp
|
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
|
|
|
export CXXFLAGS="$CFLAGS"
|
|
|
|
|
|
|
|
cmake -G "Unix Makefiles" \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=%_prefix \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release
|
|
|
|
|
|
|
|
make %{?jobs:-j %jobs}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
|
|
|
|
# create a .desktop file:
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/applications
|
|
|
|
|
|
|
|
# install icons for the .desktop file
|
|
|
|
install -m644 -D src/Sigil/Resource_Files/icon/app_icon_16.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/sigil.png
|
|
|
|
install -m644 -D src/Sigil/Resource_Files/icon/app_icon_32.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/sigil.png
|
|
|
|
install -m644 -D src/Sigil/Resource_Files/icon/app_icon_48.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/sigil.png
|
|
|
|
install -m644 -D src/Sigil/Resource_Files/icon/app_icon_128.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/sigil.png
|
|
|
|
install -m644 -D src/Sigil/Resource_Files/icon/app_icon_256.png %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/sigil.png
|
|
|
|
install -m644 %{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
|
|
|
|
|
|
|
|
%suse_update_desktop_file %name
|
|
|
|
%fdupes -s %buildroot
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc ChangeLog.txt README.txt COPYING.txt
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
%dir %{_datadir}/icons/hicolor/
|
|
|
|
%dir %{_datadir}/icons/hicolor/16x16
|
|
|
|
%dir %{_datadir}/icons/hicolor/16x16/apps
|
|
|
|
%dir %{_datadir}/icons/hicolor/32x32
|
|
|
|
%dir %{_datadir}/icons/hicolor/32x32/apps
|
|
|
|
%dir %{_datadir}/icons/hicolor/48x48
|
|
|
|
%dir %{_datadir}/icons/hicolor/48x48/apps
|
|
|
|
%dir %{_datadir}/icons/hicolor/128x128
|
|
|
|
%dir %{_datadir}/icons/hicolor/128x128/apps
|
|
|
|
%dir %{_datadir}/icons/hicolor/256x256
|
|
|
|
%dir %{_datadir}/icons/hicolor/256x256/apps
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/*.png
|
|
|
|
%{_datadir}/pixmaps/*.png
|
|
|
|
%dir %_datadir/%name
|
|
|
|
%dir %_datadir/%name/translations
|
|
|
|
%_datadir/%{name}/translations/*
|
2012-11-23 12:37:51 +01:00
|
|
|
%dir %_datadir/%name/*dictionaries
|
|
|
|
%_datadir/%{name}/*dictionaries/*
|
|
|
|
%_datadir/%{name}/examples
|
2014-10-06 20:12:04 +02:00
|
|
|
%_datadir/%{name}/plugin_launchers
|
2012-08-30 12:23:01 +02:00
|
|
|
|
|
|
|
%changelog
|