SFEisomaster.spec: initial spec
authorjurikm
Sat, 04 Feb 2012 10:23:38 +0000
changeset 8142 42abb996a355
parent 8141 f7513c2ebb06
child 8143 03413d1b4707
SFEisomaster.spec: initial spec
ChangeLog
SFEisomaster.spec
patches/isomaster-01-w.diff
--- a/ChangeLog	Sun Jan 29 02:40:16 2012 +0000
+++ b/ChangeLog	Sat Feb 04 10:23:38 2012 +0000
@@ -1,3 +1,7 @@
+2012-02-04 Milan Jurik <[email protected]>
+
+	* SFEisomaster.spec: initial spec
+
 2012-01-28 Milan Jurik <[email protected]>
 
 	* SFEfusefs.spec: add patches from Jean-Pierre Andre
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SFEisomaster.spec	Sat Feb 04 10:23:38 2012 +0000
@@ -0,0 +1,79 @@
+#
+# This file and all modifications and additions to the pristine
+# package are under the same license as the package itself.
+#
+
+%include Solaris.inc
+
+Name:		SFEisomaster
+IPS_Package_Name:	desktop/cd-burning/isomaster
+Summary:	ISO editor
+Group:		Applications/System Utilities
+URL:		http://www.littlesvr.ca/isomaster/
+License:	GPLv2
+Version:	1.3.9
+Source:		http://littlesvr.ca/isomaster/releases/isomaster-%{version}.tar.bz2
+Patch1:		isomaster-01-w.diff
+
+SUNW_BaseDir:	%{_basedir}
+BuildRoot:	%{_tmppath}/%{name}-%{version}-build
+%include default-depend.inc
+
+%if %build_l10n
+%package l10n
+Summary:	%{summary} - l10n files
+SUNW_BaseDir:	%{_basedir}
+%include default-depend.inc
+Requires:	%{name}
+%endif
+
+%prep
+%setup -q -n isomaster-%version
+%patch1 -p1
+
+%build
+
+CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
+if test "x$CPUS" = "x" -o $CPUS = 0; then
+     CPUS=1
+fi
+
+export CFLAGS="%optflags"
+export LDFLAGS="%{_ldflags}"
+
+make -j$CPUS PREFIX=%{_prefix}
+
+%install
+rm -rf %{buildroot}
+make install PREFIX=%{_prefix} DESTDIR=%{buildroot}
+
+%if %build_l10n
+%else
+# REMOVE l10n FILES
+rm -rf %{buildroot}%{_datadir}/locale
+%endif
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr (-, root, bin)
+%{_bindir}
+%dir %attr (0755, root, sys) %{_datadir}
+%dir %attr (0755, root, other) %{_docdir}
+%dir %attr (0755, root, other) %{_datadir}/applications
+%{_datadir}/applications/isomaster.desktop
+%{_docdir}/*
+%{_mandir}
+%{_datadir}/isomaster
+
+%if %build_l10n
+%files l10n
+%defattr (-, root, bin)
+%dir %attr (0755, root, sys) %{_datadir}
+%attr (-, root, other) %{_datadir}/locale
+%endif
+
+%changelog
+* Sat Feb 04 2012 - Milan Jurik
+- Initial spec
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/isomaster-01-w.diff	Sat Feb 04 10:23:38 2012 +0000
@@ -0,0 +1,9 @@
+--- isomaster-1.3.9/Makefile	Thu Jan 19 20:58:06 2012
++++ isomaster-1.3.9/Makefile	Sat Feb  4 09:22:03 2012
+@@ -57,1 +57,1 @@
+-CFLAGS += -Wall -pedantic -std=gnu99 -Wundef -Wcast-align -W -Wpointer-arith -Wwrite-strings -Wno-unused-parameter `pkg-config --cflags gtk+-2.0`
++CFLAGS += `pkg-config --cflags gtk+-2.0`
+--- isomaster-1.3.9/bk/Makefile	Sun Nov  4 20:51:25 2007
++++ isomaster-1.3.9/bk/Makefile	Sat Feb  4 09:22:40 2012
+@@ -6,1 +6,0 @@
+-CFLAGS  += -Wall -pedantic -std=gnu99 -Wundef -Wcast-align -W -Wpointer-arith -Wwrite-strings -Wno-unused-parameter