Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:wkazubski
linnwt
linnwt.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File linnwt.spec of Package linnwt
# # spec file for package openprogrammer # # Copyright (c) 2012-2016 Wojciech Kazubski, wk@ire.pw.edu.pl # # 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: linnwt Version: 4.11.10 Release: 20.1 Summary: Software for network analyzer NWT/HFM9 License: GPL-2.0+ %if 0%{?suse_version} Group: Development/Tools/Other %endif %if 0%{?fedora} Group: Applications/Engineering %endif URL: http://www.dl4jal.eu/hfm9.htm Source: http://www.dl4jal.eu/linnwt4_V4_11_10.tar.gz Source1: http://www.dl4jal.eu/linnwt4_doc.pdf Source2: %{name}.desktop Source3: %{name}.png Patch0: %{name}4_V4_10_01.autotranslate.patch BuildRoot: %{_tmppath}/build-%{name}-%{version} %if 0%{?suse_version} BuildRequires: libstdc++-devel gcc-c++ BuildRequires: libqt4-devel >= 4.4.0 BuildRequires: update-desktop-files BuildRequires: hicolor-icon-theme Requires: hicolor-icon-theme %endif %if 0%{?fedora} BuildRequires: qt-devel >= 4.4.0 BuildRequires: gcc-c++ BuildRequires: desktop-file-utils %endif %description This is the software to contol network analyzers FA-NWT, NWT7, NWT500, HFM9 from a PC. It uses Qt4 grphical library. %prep %setup -q -n %{name}4_V4_11_10 mkdir doc cp %{SOURCE1} doc %patch0 -p 1 -b .autotranslate sed -i "s\LINNWTDATADIR\%{_datadir}/%{name}\1" main.cpp %build %if 0%{?suse_version} qmake %endif %if 0%{?fedora} qmake-qt4 %endif make %{?_smp_mflags} %install rm -rf %{buildroot} mkdir -p %{buildroot}%{_bindir} cp linnwt %{buildroot}%{_bindir} #create desktop file %if 0%{?suse_version} mkdir -p %{buildroot}%{_datadir}/applications cp %{SOURCE2} %{buildroot}%{_datadir}/applications %suse_update_desktop_file -r %{name} Network HamRadio %endif %if 0%{?fedora} desktop-file-install \ --vendor= \ --dir %{buildroot}%{_datadir}/applications \ --add-category Qt \ --add-category Education \ %{SOURCE2} %endif #create icon mkdir -p %{buildroot}%{_datadir}/icons/hicolor/48x48/apps cp %{SOURCE3} %{buildroot}%{_datadir}/icons/hicolor/48x48/apps mkdir -p %{buildroot}%{_datadir}/%{name} cp app_*.qm %{buildroot}%{_datadir}/%{name} %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc doc/linnwt4_doc.pdf %{_bindir}/%{name} %{_datadir}/%{name} %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/*/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