Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:lafenghu
djvusmooth
djvusmooth.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File djvusmooth.spec of Package djvusmooth
# # spec file for package djvusmooth # # 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: djvusmooth Version: 0.2.12 Release: 0 Summary: Graphical Text Editor for DjVu License: GPL-2.0 Group: Productivity/Publishing/Other Url: http://jwilk.net/software/djvusmooth Source0: http://pypi.python.org/packages/source/d/%{name}/%{name}-%{version}.tar.gz Source1: djvusmooth.png BuildRequires: hicolor-icon-theme %if 0%{?suse_version} >= 1210 BuildRequires: python-distribute %else BuildRequires: python-setuptools %endif BuildRequires: update-desktop-files # Not actually needed for build, but in order to make the build fail # if the runtime dependencies are not available in the repository: BuildRequires: python-djvulibre Requires: djvulibre Requires: python-djvulibre Requires: python-wxWidgets Requires: python-xdg Recommends: %{name}-lang BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %py_requires %description DjVuSmooth is a graphical text editor for DjVu documents. %lang_package %prep %setup -q %build %install # Replace desktop file. Provided one isn't good enough. cat > extra/%{name}.desktop << EOF [Desktop Entry] Name=DjVuSmooth GenericName=Graphical Text Editor for DjVu GenericName[pl]=Graficzny edytor plików DjVu GenericName[ru]=Текстовый редактор DjVu-книг Comment=Graphical Text Editor for DjVu Comment[pl]=Graficzny edytor plików DjVu Comment[ru]=Граффический текстовый редактор для DjVu-книг Type=Application Exec=djvusmooth %f Icon=djvusmooth Categories=Utility;TextEditor; StartupNotify=true Terminal=false MimeType=image/x-djvu;image/x.djvu;image/vnd.djvu; EOF python setup.py install \ --root=%{buildroot} \ --prefix=%{_prefix} \ --record-rpm=INSTALLED_FILES install -Dm 0644 %{SOURCE1} \ %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{name}.png # Remove locales, man and standard directory from the list. sed -i '/locale/d;/\/man\/man/d;/%dir \/usr\/share\/applications/d' \ INSTALLED_FILES %find_lang %{name} %suse_update_desktop_file %{name} %post %desktop_database_post %icon_theme_cache_post %postun %desktop_database_postun %icon_theme_cache_postun %files -f INSTALLED_FILES %defattr(-,root,root,-) %doc COPYING doc/changelog %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/*/*/%{name}.png %doc %{_mandir}/man?/* %files lang -f %{name}.lang %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