Accepting request 72524 from openSUSE:Factory:Contrib

please review, contrib cleanup

OBS-URL: https://build.opensuse.org/request/show/72524
OBS-URL: https://build.opensuse.org/package/show/Education/fritzing?expand=0&rev=1
This commit is contained in:
Lars Vogdt 2011-06-04 22:57:23 +00:00 committed by Git OBS Bridge
commit 1d3938f8ec
8 changed files with 157 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

View File

@ -0,0 +1,22 @@
Index: src/utils/folderutils.cpp
===================================================================
--- src/utils/folderutils.cpp.orig
+++ src/utils/folderutils.cpp
@@ -153,11 +153,14 @@ const QString FolderUtils::libraryPath()
}
const QString FolderUtils::applicationDirPath() {
- if (m_appPath.isEmpty()) {
- return QCoreApplication::applicationDirPath();
+ if (!m_appPath.isEmpty()) {
+ return m_appPath;
}
- return m_appPath;
+ QDir dir("/usr/share/fritzing");
+ if (dir.exists()) return dir.path();
+
+ return QCoreApplication::applicationDirPath();
}
bool FolderUtils::setApplicationPath2(const QString & path)

17
fritzing.1 Normal file
View File

@ -0,0 +1,17 @@
.TH FRITZING 1 "October 03, 2010" "Fritzing"
.SH NAME
fritzing \- from prototype to product
.SH SYNOPSIS
.B fritzing
.SH DESCRIPTION
.PP
Fritzing is an open-source initiative to support designers, artists, researchers
and hobbyists to work creatively with interactive electronics. We are creating a
software and website in the spirit of Processing and Arduino, developing a tool
that allows users to document their prototypes, share them with others, teach
electronics in a classroom, and to create a pcb layout for professional
manufacturing.
.SH AUTHOR
This manual page was written by Enrique Hernández Bello <ehbello@gmail.com>,
for the Debian project (and may be used by others).

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6f1b0f507fa878cd3ffb9a8606a00c9acfd74ca9cfa48dac5b5402c7a71e8d33
size 7676395

15
fritzing.changes Normal file
View File

@ -0,0 +1,15 @@
-------------------------------------------------------------------
Mon May 30 12:20:56 UTC 2011 - prusnak@opensuse.org
- updated to 0.5.2b
-------------------------------------------------------------------
Sat Feb 12 12:52:52 UTC 2011 - prusnak@opensuse.org
- updated to 0.5.0b
-------------------------------------------------------------------
Sat Feb 12 12:52:37 UTC 2011 - prusnak@opensuse.org
- created package based on Fedora one by Ed Marshall

9
fritzing.desktop Normal file
View File

@ -0,0 +1,9 @@
[Desktop Entry]
Name=Fritzing
GenericName=Fritzing
Comment=Electronic Design Automation software
Exec=fritzing
Icon=fritzing
Terminal=false
Type=Application
Categories=Development;IDE;Electronics;

67
fritzing.spec Normal file
View File

@ -0,0 +1,67 @@
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define snap 2011.02.18
Name: fritzing
Version: 0.5.2b
Release: 1
License: GPLv3+
Summary: Intuitive EDA platform featuring from prototype to product
Url: http://fritzing.org/
Group: Applications/Engineering
Source0: http://fritzing.org/download/%{version}/source-tarball/%{name}.%{snap}.source.tar.bz2
Source1: fritzing.desktop
Source2: fritzing.1
# Fedora-specific patch to relocate shared data for system-wide install;
# will require a more thorough approach from the Fritzing team eventually.
Patch0: fritzing-fix-app-folder.patch
BuildRequires: desktop-file-utils
BuildRequires: libQtWebKit-devel
BuildRequires: libqt4-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Fritzing is an open-source initiative to support designers, artists,
researchers and hobbyists to take the step from physical prototyping
to actual product. It is in the spirit of Processing and Arduino which
allows users to document their Arduino and other electronic-based
prototypes, and to create a PCB layout for manufacturing.
%prep
%setup -q -n %{name}.%{snap}.source
sed -i "s|getUserDataStorePath("bins")|getUserDataStorePath("%{_datadir}/%{name}/bins")|" src/fapplication.cpp
sed -i 's/\r//' README.txt
%patch0
%build
qmake
make %{?_smp_mflags}
%install
%make_install
install -D -m 0755 Fritzing %{buildroot}%{_bindir}/fritzing
install -d %{buildroot}%{_datadir}/%{name}
cp -pr sketches %{buildroot}%{_datadir}/%{name}
cp -pr parts %{buildroot}%{_datadir}/%{name}
cp -pr bins %{buildroot}%{_datadir}/%{name}
find %{buildroot}%{_datadir}/%{name} -type f -exec chmod 644 {} \;
find %{buildroot}%{_datadir}/%{name} -type d -exec chmod 755 {} \;
install -D -m 0644 resources/images/fritzing_icon.png %{buildroot}%{_datadir}/pixmaps/fritzing.png
install -D -m 0644 %{SOURCE2} %{buildroot}%{_mandir}/man1/fritzing.1
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc README.txt LICENSE.GPL2 LICENSE.GPL3
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_mandir}/man1/%{name}.*
%changelog