Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Lazy_Kent
fb2utils
fb2utils.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fb2utils.spec of Package fb2utils
# # spec file for package fb2utils # # Copyright (c) 2012 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. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: fb2utils Version: 0.6.0 Release: 0 License: GPL-3.0 Summary: Utilities for Manipulation FB2 Files Url: http://code.google.com/p/fb2utils/ Group: Productivity/Publishing/XML Source0: http://fb2utils.googlecode.com/files/%{name}-0.6.0.tar.gz Source1: fb2-icons.tar.bz2 BuildRequires: fdupes BuildRequires: hicolor-icon-theme %if 0%{?suse_version} >= 1210 BuildRequires: python-distribute %else BuildRequires: python-setuptools %endif BuildRequires: python-lxml BuildRequires: python-xml BuildRequires: update-desktop-files Requires: python-lxml Requires: python-tk Requires: python-xml BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %py_requires %description Set of utilities for manipulation (check validity, recover and get statistics) with FictionBook2 format files. %prep %setup -q -a 1 # Remove '/usr/bin/env' from scripts (rpmlint warnings). sed -i '/\/usr\/bin\/env/d' %{name}/*.py %build %install # Create desktop file. cat > fb2-validator.desktop << EOF [Desktop Entry] Name=FB2 Validator Name[ru]=Валидатор FB2-файлов GenericName=Validate FB2 files GenericName[ru]=Проверка FB2-файлов Type=Application Exec=validator-gui.py Icon=fb2-validator Categories=Office;Viewer; Comment=Validate FictionBook2 format files Comment[ru]=Проверка файлов FictionBook2 Terminal=false StartupNotify=false EOF python setup.py install \ --root=%{buildroot} \ --prefix=%{_prefix} \ --record-rpm=INSTALLED_FILES install -Dm 0644 fb2-icons/fb2-16.png \ %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/fb2-validator.png install -Dm 0644 fb2-icons/fb2-22.png \ %{buildroot}%{_datadir}/icons/hicolor/22x22/apps/fb2-validator.png install -Dm 0644 fb2-icons/fb2-32.png \ %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/fb2-validator.png install -Dm 0644 fb2-icons/fb2-48.png \ %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/fb2-validator.png install -Dm 0644 fb2-icons/fb2-64.png \ %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/fb2-validator.png install -Dm 0644 fb2-icons/fb2-72.png \ %{buildroot}%{_datadir}/icons/hicolor/72x72/apps/fb2-validator.png install -Dm 0644 fb2-icons/fb2-96.png \ %{buildroot}%{_datadir}/icons/hicolor/96x96/apps/fb2-validator.png install -Dm 0644 fb2-icons/fb2-128.png \ %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/fb2-validator.png install -Dm 0644 fb2-icons/fb2-256.png \ %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/fb2-validator.png install -Dm 0644 fb2-icons/fb2.svg \ %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/fb2-validator.svg %fdupes -s %{buildroot} %suse_update_desktop_file -i fb2-validator %post %icon_theme_cache_post %postun %icon_theme_cache_postun %files -f INSTALLED_FILES %defattr(-,root,root,-) %doc COPYING README.ru %{_datadir}/applications/fb2-validator.desktop %{_datadir}/icons/hicolor/*/*/fb2-validator.* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor