Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:wkazubski
lxnstack
lxnstack.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File lxnstack.spec of Package lxnstack
# # spec file for package lnxstack # # Copyright (c) 2013 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/ # # norootforbuild Name: lxnstack Summary: Software for astronomical images alignment and stacking Version: 1.4.4 Release: 3 License: GPL-3.0 %if 0%{?suse_version} Group: Productivity/Scientific/Astronomy %endif %if 0%{?fedora} Group: Applications/Productivity %endif Source: http://downloads.sourceforge.net/project/%{name}/tarballs/%{name}-%{version}.tar.gz Patch0: %{name}-1.4.3-desktop-file-fixes.patch Url: http://sourceforge.net/projects/lxnstack/ BuildArch: noarch BuildRoot: %{_tmppath}/build-root-%{name} BuildRequires: python %if 0%{?suse_version} BuildRequires: update-desktop-files %endif %if 0%{?fedora} BuildRequires: desktop-file-utils %endif BuildRequires: hicolor-icon-theme Requires: hicolor-icon-theme %if 0%{?suse_version} Requires: python-imaging Requires: python-numpy Requires: python-opencv Requires: python-qt4 Requires: python-scipy %endif %if 0%{?fedora} Requires: python-pillow Requires: numpy Requires: scipy Requires: PyQt4 Requires: opencv-python %endif Requires: v4l-utils %description lxnstack is a software designed for astronomical images alignment and stacking. %prep %setup -q %patch0 -p 1 -b .orig %build %install mkdir -p %{buildroot}%{_docdir} %{__python} install.py --prefix=%{buildroot}/usr rm -rf %{buildroot}%{_datadir}/doc/%{name}/lang_*/.kateproject* #fix paths to point to final destination sed -i "s|%{buildroot}/usr|/usr|" %{buildroot}%{_datadir}/%{name}/%{name}.py sed -i "s|%{buildroot}/usr|/usr|" %{buildroot}%{_datadir}/%{name}/paths.py #remove duplicate license file rm -rf %{buildroot}%{_datadir}/licenses %if 0%{?suse_version} #move docfiles mv %{buildroot}%{_datadir}/doc/%{name} %{buildroot}%{_docdir} %endif #move icon mkdir -p %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/ mv %{buildroot}%{_datadir}/icons/%{name}.png %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/ #create desktop file %if 0%{?suse_version} %suse_update_desktop_file -r %{name} Science Astronomy %endif %if 0%{?fedora} desktop-file-install \ --vendor= \ --dir %{buildroot}%{_datadir}/applications \ --add-category Science \ --add-category Astronomy \ src/%{name}.desktop %endif %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %{_bindir}/%{name} %{_datadir}/%{name} %{_docdir}/%{name} %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/64x64/apps/%{name}.png %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