rpms/netfabb-basic/F-20 netfabb-basic.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Miro Hrončok churchyard at rpmfusion.org
Fri Jul 11 21:06:54 CEST 2014


Author: churchyard

Update of /cvs/nonfree/rpms/netfabb-basic/F-20
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv28821/F-20

Modified Files:
	.cvsignore sources 
Added Files:
	netfabb-basic.spec 
Log Message:
Initial	import (#3095)



--- NEW FILE netfabb-basic.spec ---
Name:           netfabb-basic
Version:        5.1.1
Release:        2%{?dist}
Summary:        Freeware suite for STL editing
License:        Redistributable
URL:            http://www.netfabb.com/
# keep both sources in the SRPM
# both files are downloaded from http://www.netfabb.com/downloadcenter.php?basic=1
# and have no public tarball urls
Source0:        %{name}_%{version}_linux32.tar.gz
Source1:        %{name}_%{version}_linux64.tar.gz
BuildRequires:  desktop-file-utils
Requires:       lib3ds%{?_isa} = 1.3.0

ExclusiveArch:  %{ix86} x86_64
%global debug_package %{nil}

%description
netfabb Basic is a free (as in free beer) software for 3D Printing
and the STL file format. Numerous tools allow all steps of the fabrication
process: editing, repairing, positioning, slicing and exporting triangulated
CAD data. For professional use, the author offers commercial support and
additional modules.

%prep

%ifarch %{ix86}
%setup -qn %{name} -b0
%endif

%ifarch x86_64
%setup -qn %{name} -b1
%endif

%build
# nothing to do

%install
# the workflow is copied from install.sh, but we will not run it, as it doesn't respect the buildroot
# there are also several changes to make things more OK

# create directories
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps
for res in 16 22 24 32 48 128; do
  mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${res}x${res}/apps
done
mkdir -p %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_datadir}/pixmaps

# binary and libraries
install -pm 0755 netfabb %{buildroot}%{_bindir}/%{name}
install -pm 0755 *.so.* %{buildroot}%{_libdir}/

# we have this in Fedora
rm %{buildroot}%{_libdir}/lib3ds-netfabb-1.so.3
ln -s lib3ds-1.so.3 %{buildroot}%{_libdir}/lib3ds-netfabb-1.so.3

# desktopfile
export DESKTOPFILE=%{buildroot}%{_datadir}/applications/%{name}.desktop
echo "[Desktop Entry]">${DESKTOPFILE}
echo "Type=Application">>${DESKTOPFILE}
echo "Version=1.0">>${DESKTOPFILE}
echo "Name=netfabb Basic">>${DESKTOPFILE}
echo "GenericName=STL-Viewer">>${DESKTOPFILE}
echo "GenericName[de]=STL-Betrachter">>${DESKTOPFILE}
echo "Comment=View and repair STL files">>${DESKTOPFILE}
echo "Comment[de]=STL Dateien betrachten und reparieren">>${DESKTOPFILE}
echo "Icon=%{name}">>${DESKTOPFILE}
echo "TryExec=%{_bindir}/%{name}">>${DESKTOPFILE}
echo "Exec=%{_bindir}/%{name} %U">>${DESKTOPFILE}
echo "Terminal=false">>${DESKTOPFILE}
echo "MimeType=application/netfabb;application/sla;application/x-3ds;model/mesh;image/x-3ds;model/x3d+xml;model/x3d+binary;">>${DESKTOPFILE}
echo "Categories=Graphics;3DGraphics;Viewer;">>${DESKTOPFILE}
echo "StartupNotify=true">>${DESKTOPFILE}

# man and icons
cp -p man/%{name}.1.gz %{buildroot}%{_mandir}/man1
cp -p icons/%{name}.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps
for res in 16 22 24 32 48 128; do
  cp -p icons/%{name}${res}.png %{buildroot}%{_datadir}/icons/hicolor/${res}x${res}/apps/%{name}.png
done
cp -p icons/%{name}48.png %{buildroot}%{_datadir}/pixmaps/%{name}.png

%check
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop

%post
/sbin/ldconfig
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
/usr/bin/update-desktop-database &>/dev/null || :

%postun
/sbin/ldconfig
if [ $1 -eq 0 ] ; then
    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fi
/usr/bin/update-desktop-database &>/dev/null || :

%posttrans
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
update-desktop-database &>/dev/null || :

%files
%doc README LICENSE changelog.gz Examples
%{_bindir}/%{name}
%{_libdir}/*
%{_datadir}/applications/*
%{_datadir}/pixmaps/*
%{_datadir}/icons/hicolor/*/apps/*
%{_mandir}/man1/*


%changelog
* Thu Jul 10 2014 Miro Hrončok <mhroncok at redhat.com> - 5.1.1-2
- Use Fedora's lib3ds
- Update desktop database

* Tue Apr 08 2014 Miro Hrončok <mhroncok at redhat.com> - 5.1.1-1
- Updated to 5.1.1

* Wed Mar 19 2014 Miro Hrončok <mhroncok at redhat.com> - 5.1.0-1
- Updated to 5.1.0

* Wed Jan 08 2014 Miro Hrončok <mhroncok at redhat.com> - 5.0.1-2
- Use install to copy files that needs different rights
- Rework icon cache scriptlets

* Tue Dec 31 2013 Miro Hrončok <mhroncok at redhat.com> - 5.0.1-1
- New version

* Tue Mar 26 2013 Miro Hrončok <mhroncok at redhat.com> - 4.9.5-1
- Initial release


Index: .cvsignore
===================================================================
RCS file: /cvs/nonfree/rpms/netfabb-basic/F-20/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	10 Jul 2014 20:24:04 -0000	1.1
+++ .cvsignore	11 Jul 2014 19:06:53 -0000	1.2
@@ -0,0 +1,2 @@
+netfabb-basic_5.1.1_linux32.tar.gz
+netfabb-basic_5.1.1_linux64.tar.gz


Index: sources
===================================================================
RCS file: /cvs/nonfree/rpms/netfabb-basic/F-20/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	10 Jul 2014 20:24:05 -0000	1.1
+++ sources	11 Jul 2014 19:06:53 -0000	1.2
@@ -0,0 +1,2 @@
+480e2d417d5bbc8d6a6195621e9532cd  netfabb-basic_5.1.1_linux32.tar.gz
+1f71f4f90a50b0857b2b3f1e3acfaa27  netfabb-basic_5.1.1_linux64.tar.gz


More information about the rpmfusion-commits mailing list