Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.2
qelectrotech
qelectrotech.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File qelectrotech.spec of Package qelectrotech
# # spec file for package qelectrotech # # Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2013 Asterios Dramis <asterios.dramis@gmail.com>. # # 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: qelectrotech Version: 0.4 Release: 0 Summary: Application to design electric diagrams License: GPL-2.0+ and CC-BY-3.0 Group: Productivity/Scientific/Electronics Url: http://qelectrotech.org/ Source0: http://download.tuxfamily.org/qet/tags/20150220/%{name}-%{version}-src.tar.gz BuildRequires: fdupes BuildRequires: hicolor-icon-theme BuildRequires: libqt4-devel BuildRequires: update-desktop-files Requires(post): desktop-file-utils Requires(post): shared-mime-info Requires(postun): desktop-file-utils Requires(postun): shared-mime-info BuildRoot: %{_tmppath}/%{name}-%{version}-build %description QElectroTech is a Qt4 application to design electric diagrams. It uses XML files for elements and diagrams, and includes both a diagram editor and an element editor. %prep %setup -q -n %{name}-%{version}-src # Fix compilation and installation paths sed -e s,/usr/local/,%{_prefix}/, \ -e /QET_LICENSE_PATH/s,'doc/,'share/doc/packages/, \ -e /QET_MIME/s,../,, \ -e /QET_MAN_PATH/s,'man/','share/man/', \ -i qelectrotech.pro # Remove build time references so build-compare can do its work FAKE_BUILDTIME=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%H:%%M') FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y') sed -i "s/__TIME__/\"$FAKE_BUILDTIME\"/g" sources/aboutqet.cpp sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/g" sources/aboutqet.cpp %build qmake QMAKE_CXXFLAGS+="%{optflags}" -config debug qelectrotech.pro make %{?_smp_mflags} %install %make_install INSTALL_ROOT=%{buildroot} # Fix desktop file %suse_update_desktop_file -r qelectrotech "Education;Engineering" %fdupes -s %{buildroot} %find_lang %{name} --with-qt --with-man --all-name %post %mime_database_post %desktop_database_post %icon_theme_cache_post %postun %desktop_database_postun %mime_database_postun %icon_theme_cache_postun %files -f %{name}.lang %defattr(-,root,root,-) %doc CREDIT ChangeLog ELEMENTS.LICENSE LICENSE README %{_bindir}/qelectrotech %dir %{_datadir}/appdata %{_datadir}/appdata/qelectrotech.appdata.xml %{_datadir}/applications/qelectrotech.desktop %{_datadir}/icons/hicolor/*/*/*.png %dir %{_mandir}/be %dir %{_mandir}/fr.ISO8859-1 %dir %{_mandir}/fr.UTF-8 %doc %{_mandir}/man1/qelectrotech.1%{ext_man} %{_datadir}/mime/application/x-qet-element.xml %{_datadir}/mime/application/x-qet-project.xml %{_datadir}/mime/application/x-qet-titleblock.xml %{_datadir}/mime/packages/qelectrotech.xml %dir %{_datadir}/mimelnk %dir %{_datadir}/mimelnk/application %{_datadir}/mimelnk/application/x-qet-element.desktop %{_datadir}/mimelnk/application/x-qet-project.desktop %{_datadir}/mimelnk/application/x-qet-titleblock.desktop %dir %{_datadir}/qelectrotech %dir %{_datadir}/qelectrotech/lang %{_datadir}/qelectrotech/elements/ %{_datadir}/qelectrotech/examples/ %{_datadir}/qelectrotech/titleblocks/ %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