File epdfview.spec of Package epdfview
#
# spec file for package epdfview (Version 0.1.7)
#
# Copyright 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
Summary: GTK2 Lightweight PDF viewer
Name: epdfview
Version: 0.1.7
Release: 1
Source0: %{name}-%{version}.tar.bz2
Source1: %{name}-summary-rpmlintrc
Patch0: %{name}-%{version}-desktop.patch
Vendor: %{vendor}
URL: http://trac.emma-soft.com/epdfview/
License: GPL
Group: Productivity/Office/Other
AutoReqProv: on
BuildRequires: update-desktop-files cairo-devel gtk2-devel
BuildRequires: cups-devel libpoppler-glib-devel gcc-c++
BuildRoot: %{_builddir}/%{name}-%{version}-build
Suggests: cups
%description
ePDFView is a lightweight PDF viewer that uses
GTK2, Poppler and cairo libraries.
Currently it has the following features:
* sUPPORt for encrypted files.
* Document index viewer.
* Cross-reference links.
* Support for printing using CUPS.
* Saves documents copies.
* Searching text.
Although it's under continuous development.
%prep
%setup -q
%patch0
%build
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} \
--sysconfdir=%{_sysconfdir}/%{name} \
--localedir=/usr/share/locale \
--docdir=%{_docdir} \
--mandir=%{_mandir} \
--disable-dependancy-tracking \
--disable-static
%{__make} %{?jobs:-j%jobs}
%debug_package
%install
%{__make} DESTDIR=$RPM_BUILD_ROOT clean install
mv $RPM_BUILD_ROOT/usr/share/locale/\
pt_PT $RPM_BUILD_ROOT/usr/share/locale/pt
%find_lang %{name}
%suse_update_desktop_file -u %{name}
# Office Viewer
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%attr(0755,root,root)%{_bindir}/%{name}
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/pixmaps
%dir %{_datadir}/%{name}/ui
%{_datadir}/%{name}/pixmaps/*.png
%{_datadir}/%{name}/ui/*.xml
%{_datadir}/applications/%{name}.desktop
####################
## Language Files ##
####################
%package lang
Summary: ePDFview language localization files
Group: System/Localization
%description lang
ePDFView is a lightweight PDF viewer that uses
GTK2, Poppler and cairo libraries.
This package adds the files necessary for adding
translations (language localization) to this
application.
%files -f %{name}.lang lang
%defattr(0644,root,root,-)
%changelog
* Fri Jun 26 2009 Mario GarcĂa H. <code933k@gmail.com> - 0.1.7
- Initial package.