A new user interface for you! Read more...

File handyoutliner.spec of Package handyoutliner

Name:           handyoutliner
Version:        1.1.6.2
Release:        0
Url:            http://handyoutlinerfo.sourceforge.net/
Summary:        Program to create and edit bookmarks for PDF and DjVu documents
License:        GPL-2.0
Group:          Applications/Publishing
#Source:         http://sourceforge.net/projects/handyoutlinerfo/files/%{version}/%{name}_src_%{version}.zip?download
Source:			%{name}_src_%{version}.zip
Source1:        handyoutliner.desktop
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  desktop-file-utils
# fixes some font not found errors on old Mono 2.10
BuildRequires:  dejavu-fonts
BuildRequires:  fdupes
BuildRequires:  unzip
BuildRequires:  pkgconfig(mono)
BuildRequires:  mono-xbuild
Requires:       djvulibre
#Requires:       freetype2
#Requires:       libgdiplus0
Requires:       mono-core
Requires:       mono-winforms
Requires:       xdg-utils
# TODO: package the CLI dependencies
#AutoReqProv:    off

%description
The goal of this program is to make easier and faster the process of creating bookmarks for DjVu and PDF documents.
The program has next features:

1. Create bookmarks from text TOC (table of contents).
2. Integration with popular document readers
3. Import bookmarks from STDU Viewer.
4. Modify existing bookmarks in DjVu and PDF documents.
5. –°reate bookmark trees manually.
6. Restructuring bookmarks, shifting page numbers.
7. Embed bookmarks into DjVu or PDF documents.

%prep
%setup -q -n %{name}_src_%{version}

%build
xbuild HandyOutliner.sln

%install
install -D -m 644 %SOURCE1 %{buildroot}%{_datadir}/applications/%{name}.desktop

cd ../Bin/Latest/Debug

sed 's,BASEDIR=$(dirname $0),BASEDIR=%{_libdir}/%{name},' start-linux > tmp
mv tmp start-linux


install -D -m 755 start-linux %{buildroot}%{_bindir}/%{name}
install -D -m 644 HandyOutliner.exe %{buildroot}%{_libdir}/%{name}/HandyOutliner.exe
install -D -m 644 Aga.Controls.dll %{buildroot}%{_libdir}/%{name}/Aga.Controls.dll
install -D -m 644 HandyOutliner.exe.config %{buildroot}%{_libdir}/%{name}/HandyOutliner.exe.config
# install -D -m 644 HandyOutliner.exe.mdb %{buildroot}%{_libdir}/%{name}/HandyOutliner.exe.mdb
install -D -m 644 itextsharp.dll %{buildroot}%{_libdir}/%{name}/itextsharp.dll
install -D -m 644 OutlineTool.exe %{buildroot}%{_libdir}/%{name}/OutlineTool.exe
install -D -m 644 OutlineTool.exe.config %{buildroot}%{_libdir}/%{name}/OutlineTool.exe.config
# install -D -m 644 OutlineTool.exe.mdb %{buildroot}%{_libdir}/%{name}/OutlineTool.exe.mdb

cd Languages
install -D -m 644 English.xml %{buildroot}%{_libdir}/%{name}/Languages/English.xml
install -D -m 644 Russian.xml %{buildroot}%{_libdir}/%{name}/Languages/Russian.xml
install -D -m 644 Ukrainian.xml %{buildroot}%{_libdir}/%{name}/Languages/Ukrainian.xml
install -D -m 644 language.xsd %{buildroot}%{_libdir}/%{name}/Languages/language.xsd


%fdupes %{buildroot}%{_prefix}/%{_libdir}

%clean

%post
%desktop_database_post

%postun
%desktop_database_postun

%files
%defattr(-,root,root)
%doc HandyOutliner/Readme.txt HandyOutliner/Readme_RU.txt HandyOutliner/License.txt

%{_bindir}/%{name}
%{_libdir}/%{name}
%{_libdir}/%{name}/*
%{_libdir}/%{name}/Languages
%{_libdir}/%{name}/Languages/*
%{_datadir}/applications/%{name}.desktop

%changelog