Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:bertl555
arrowmatcher
arrowmatcher2.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File arrowmatcher2.spec of Package arrowmatcher
%define name arrowmatcher2 %define release 1 %define version 3.1.1 %define buildroot %{_tmppath}/%{name}-%{version}-build BuildRoot: %{buildroot} Summary: A ballistics software for arrows and bullets License: GPLv3 Name: %{name} Version: %{version} Vendor: Herbert Roider <herbert.roider@utanet.at> URL: http://sourceforge.net/projects/arrowmatcher/ Release: %{release} Source: %{name}-%{version}.tar.gz Group: Productivity/Scientific/Physics BuildRequires: libqt4-devel >= 4.4.3 BuildRequires: desktop-file-utils %if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version} BuildRequires: gcc-c++ pkgconfig %endif %if 0%{?suse_version} BuildRequires: update-desktop-files %endif %description ballistics software for arrows and bullets %prep %setup -q %build QMAKE=qmake %if 0%{?fedora} QMAKE=qmake-qt4 %endif %if 0%{?rhel_version} || 0%{?centos_version} %ifarch x86_64 export PATH=/usr/lib64/qt4/bin:$PATH export QTDIR=%{_prefix}/lib64/qt4/ %else export PATH=/usr/lib/qt4/bin:$PATH export QTDIR=%{_prefix}/lib/qt4/ %endif %endif $QMAKE -makefile arrowmatcher2.pro make %install mkdir -p %{buildroot}%{_bindir} cp src/release/arrowmatcher2 %{buildroot}%{_bindir}/arrowmatcher2 mkdir -p %{buildroot}%{_docdir}/%{name} install -d %{buildroot}%{_datadir}/pixmaps/ cp src/toolbar/arrowmatcher.png %{buildroot}%{_datadir}/pixmaps/ cp doc/arrowmatcher2.qhc %{buildroot}%{_docdir}/%{name}/arrowmatcher2.qhc cp -R doc/de %{buildroot}%{_docdir}/%{name}/ cp -R doc/en %{buildroot}%{_docdir}/%{name}/ #desktop-file-install --dir=%{buildroot}%{_datadir}/applications arrowmatcher.desktop %if 0%{?suse_version} desktop-file-install --dir=%{buildroot}%{_datadir}/applications arrowmatcher.desktop #%suse_update_desktop_file -i -n arrowmatcher "Science;Physics" # habe es nach mehrern Stunden nicht geschafft, eine funktionierende desktop Datei zu erzeugen :-( #%suse_update_desktop_file -c arrowmatcher arrowmatcher "%{summary}" arrowmatcher2 arrowmatcher Education Science %else desktop-file-install --dir=%{buildroot}%{_datadir}/applications arrowmatcher.desktop %endif %clean rm -rf %{buildroot} %files %defattr(-,root,root) %{_bindir}/arrowmatcher2 %{_datadir}/pixmaps/arrowmatcher.png #%if 0%{?suse_version} #%else %{_datadir}/applications/arrowmatcher.desktop #%endif %dir %{_docdir}/%{name} %dir %{_docdir}/%{name}/en %dir %{_docdir}/%{name}/de %doc %{_docdir}/%{name}/arrowmatcher2.qhc %{_docdir}/%{name}/en/* %{_docdir}/%{name}/de/* %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