Browse Source

2015-05-26 Ryoichi INAGAKI <ryo1@toki.waseda.jp>

	* mono-nuget, nunit: NEW package
	* monodevelop: updated
	


git-svn-id: http://trac.vinelinux.org/repos/projects/specs@9581 ec354946-7b23-47d6-9f5a-488ba84defc7
inagaki 9 years ago
parent
commit
44547256f4

+ 26 - 21
lib/libu/libusbmuxd/libusbmuxd-vl.spec

@@ -1,12 +1,12 @@
-Name:          libusbmuxd
-Version:       1.0.9
-Release: 1%{?_dist_release}
-Summary:       Client library USB multiplex daemon for Apple's iOS devices
+Name:		libusbmuxd
+Version:	1.0.10
+Release:	1%{?_dist_release}
+Summary: 	Client library USB multiplex daemon for Apple's iOS devices
 
-Group:         System Environment/Libraries
-License:       LGPLv2+
-URL:           http://www.libimobiledevice.org/
-Source0:       http://www.libimobiledevice.org/downloads/%{name}-%{version}.tar.bz2
+Group:         	System Environment/Libraries
+License:       	LGPLv2+
+URL:           	http://www.libimobiledevice.org/
+Source0:       	http://www.libimobiledevice.org/downloads/%{name}-%{version}.tar.bz2
 
 BuildRequires: libplist-devel >= 1.11
 Conflicts:     usbmuxd < 1.0.9
@@ -17,20 +17,21 @@ iPhone, iPad and Apple TV devices. It allows multiple services on the device
 to be accessed simultaneously.
 
 %package utils
-Summary: Utilities for communicating with Apple's iOS devices
-Group: Applications/System
-License: GPLv2+
-Requires: %{name} = %{version}-%{release}
-Conflicts: usbmuxd < 1.0.9
+Summary: 	Utilities for communicating with Apple's iOS devices
+Group: 		Applications/System
+License: 	GPLv2+
+Requires: 	%{name} = %{version}-%{release}
+Conflicts: 	usbmuxd < 1.0.9
 
 %description utils
 Utilities for Apple's iOS devices
 
 %package devel
-Summary: Development package for %{name}
-Group: Development/Libraries
-Requires: %{name} = %{version}-%{release}
-Conflicts: usbmuxd-devel < 1.0.9
+Summary:	Development package for %{name}
+Summary(ja):	%{name} の開発用パッケージ
+Group: 		Development/Libraries
+Requires: 	%{name} = %{version}-%{release}
+Conflicts: 	usbmuxd-devel < 1.0.9
 
 %description devel
 Files for development with %{name}.
@@ -60,20 +61,24 @@ make check
 %postun -p /sbin/ldconfig
 
 %files
-# License is covered in README, upstream notified about COPYING files
-# will be fixed in next release
-%doc README AUTHORS
-%{_libdir}/libusbmuxd.so.2*
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING NEWS README
+%{_libdir}/libusbmuxd.so.*
 
 %files utils
+%defattr(-,root,root,-)
 %{_bindir}/iproxy
 
 %files devel
+%defattr(-,root,root,-)
 %{_includedir}/usbmuxd*
 %{_libdir}/pkgconfig/libusbmuxd.pc
 %{_libdir}/libusbmuxd.so
 
 %changelog
+* Thu May 21 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.0.10-1
+- new upstream release
+
 * Tue Jul 08 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 1.0.9-1
 - initial build for Vine Linux
 

+ 76 - 0
m/mono-nuget/mono-nuget-vl.spec

@@ -0,0 +1,76 @@
+Name:           mono-nuget
+Version:        2.8.3
+Release:        2%{?_dist_release}
+Summary:        DotNet package manager
+Summary(ja):    DotNet パッケージマネージャー
+
+License:        Apache License 2.0
+Group:          Development/Tools
+URL:            https://github.com/directhex/xamarin-nuget/
+
+Source0:        http://origin-download.mono-project.com/sources/nuget/nuget-%{version}+md58+dhx1.tar.bz2
+Source1:        mono-nuget.pc
+Source3:        build-minimal.sh
+Patch0:         fix_xdt_hintpath.patch
+
+BuildArch:      noarch
+BuildRoot:      %{_tmppath}/%{name}-%{version}-root
+BuildRequires:  dos2unix
+BuildRequires:  mono-devel
+BuildRequires:  pkgconfig
+
+%description
+This is the Xamarin version of NuGet for use with MonoDevelop.
+
+%package devel
+Summary:        Development files for NuGet
+Summary(ja):    NuGet の開発用ファイル
+Group:          Development/Libraries
+Requires:       mono-nuget = %{version}-%{release}
+
+%description devel
+This package contains development files for NuGet integration into MonoDevelop.
+
+%prep
+%setup -q -n nuget-git
+%patch0 -p1
+cp -a %{SOURCE3} ./
+chmod +x build-minimal.sh
+
+%build
+./build-minimal.sh
+
+%install
+rm -rf %{buildroot}
+
+mkdir -p %{buildroot}%{_datadir}/pkgconfig
+install -m0644 %{SOURCE1} %{buildroot}%{_datadir}/pkgconfig/
+
+mkdir -p %{buildroot}%{_prefix}/lib/mono/nuget
+install -m0755 src/CommandLine/bin/Release/NuGet.Core.dll %{buildroot}%{_prefix}/lib/mono/nuget/
+install -m0755 xdt/XmlTransform/bin/Debug/Microsoft.Web.XmlTransform.dll %{buildroot}%{_prefix}/lib/mono/nuget/
+install -m0755 src/CommandLine/bin/Release/NuGet.exe %{buildroot}%{_prefix}/lib/mono/nuget/
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-, root, root)
+%doc COPYRIGHT.txt LICENSE.txt
+%{_prefix}/lib/mono/nuget
+
+%files devel
+%defattr(-, root, root)
+%{_datadir}/pkgconfig/mono-nuget.pc
+
+%changelog
+* Tue May 26 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 2.8.3-2
+- initial build for VineLinux
+
+* Sat May  2 2015 mailaender@opensuse.org
+- update to version 2.8.3 for MonoDevelop 5.8 and above
+- add fix_xdt_hintpath.patch to fix the build
+- add build-minimal.sh as it was removed from the tarball
+- add pkgconfig as this contains a .pc file
+* Mon Dec 22 2014 mailaender@opensuse.org
+- initial packaging

+ 112 - 44
m/monodevelop/monodevelop-vl.spec

@@ -1,54 +1,93 @@
-%define mono_dir %(/usr/bin/monodir)
-Summary: A Full-Featured IDE for Mono and Gtk#
-Summary(ja): Gtk# 版 Mono 統合開発環境
-Name: monodevelop
-Version: 2.4.2
-Release: 2%{?_dist_release}
-License: LGPL2.1
-Group: Applications/Development
-BuildArch: noarch
-URL: http://www.monodevelop.org/
-Source: http://ftp.novell.com/pub/mono/sources/%{name}/%{name}-%{version}.tar.bz2
-BuildRoot: %{_tmppath}/%{name}-%{version}-root
-Requires: mono-core >= 2.6.1
-Requires: monodoc >= 2.6.1
-Requires: gtk-sharp2 >= 2.12.8
-Requires: gtksourceview-sharp2 >= 0.10
-Requires: mono-addins
-Requires: mono-basic
-Requires: mono-web
-Requires: xsp
-Requires: pkgconfig
-PreReq: shared-mime-info
-BuildRequires: mono-devel mono-basic mono-nunit monodoc
-BuildRequires: gconf-sharp2 gtk-sharp2-gapi gtksourceview-sharp2
-BuildRequires: xsp mono-addins
-BuildRequires: intltool perl-XML-Parser shared-mime-info
+Summary: 	A Full-Featured IDE for Mono and Gtk#
+Summary(ja): 	Gtk# 版 Mono 統合開発環境
+Name: 		monodevelop
+Version: 	5.9
+Release: 	1%{?_dist_release}
+License: 	LGPLv2.1 and MIT
+Group: 		Applications/Development
+URL: 		http://www.monodevelop.org/
+
+Source0:        http://download.mono-project.com/sources/%{name}/%{name}-%{version}.0.431.tar.bz2
+Patch0:         downgrade_to_mvc3.patch
+
+# Vine patch(es)
+Patch70:        monodevelop-5.9-exec.patch
+
+BuildArch: 	noarch
+BuildRoot: 	%{_tmppath}/%{name}-%{version}-root
+BuildRequires: 	gconf-sharp2-devel
+BuildRequires: 	gnome-sharp2-devel
+BuildRequires: 	gnome-vfs-sharp2-devel
+BuildRequires: 	gtk-sharp2-devel
+BuildRequires: 	gtksourceview-sharp2-devel
+BuildRequires: 	libgnomeui-devel
+
+BuildRequires: 	mono-addins-devel
+BuildRequires: 	mono-data
+BuildRequires: 	mono-devel
+BuildRequires: 	mono-mvc-devel
+BuildRequires: 	mono-nuget-devel
+BuildRequires: 	mono-wcf-devel
+BuildRequires: 	monodoc
+BuildRequires: 	nunit-devel
+
+BuildRequires: 	intltool perl-XML-Parser shared-mime-info
+BuildRequires: 	dos2unix shared-mime-info desktop-file-utils
+BuildRequires: 	git
+# Mono.Cecil.dll requires rsync after it's build
+BuildRequires:  rsync
+
+Requires: 	mono-basic
+Requires: 	mono-web
+Requires: 	nunit
+Requires:	xsp
+Requires: 	mono-devel
+Requires: 	mono-tools
+Requires: 	git
+Requires:	pkgconfig
+Requires(post,postun): shared-mime-info
 
 %description
-MonoDevelop is intended to be a full-featured integrated development
-environment (IDE) for mono and Gtk#. It was originally a port of
-SharpDevelop 0.98. See http://monodevelop.com/ for more information.
+MonoDevelop is a full-featured integrated development
+environment (IDE) for Mono and Gtk# primarily designed
+for C-Sharp and other .NET languages. It allows to quickly
+create desktop and ASP.NET Web applications. Support
+for Visual Studio file formats eases porting to Linux.
 
 %description -l ja
-MonoDevelop は mono と Gtk# のすべての機能を取り込んだ統合 IDE 環境を
-提供しようと考えてます。元は SharpDevelop 0.98 です。
-より詳しい説明は http://monodevelop.com/ をご覧ください。
+MonoDevelop は主として C# やその他の .NET 言語向けの、mono 及び Gtk# の
+すべての機能を取り込んだ統合 IDE 環境です.デスクトップアプリケーション及び
+ASP.NET ウェブアプリケーションを迅速に作成することができます.Visual Studio
+形式のファイルをサポートしており、Linux へのポーティングを簡易にします.
 
+%package devel
+Summary:        Development files for MonoDevelop
+Summary(ja):    MonoDevelop の開発用ファイル
+Group:          Development/Libraries
+Requires:       monodevelop = %{version}-%{release}
+
+%description devel
+This package contains development files for the IDE and plugins.
 
 %prep
 %setup -q
-
+%patch0 -p1
+%patch70 -p1
 
 %build
 export MONO_SHARED_DIR=%{_builddir}/%{?buildsubdir}
-./configure \
-	--prefix=%{_prefix} \
-    --enable-subversion \
-    --enable-monoextensions \
-    --enable-aspnet \
+%configure \
+    --libdir=%{_prefix}/lib \
     --disable-update-mimedb \
     --disable-update-desktopdb
+
+#./configure \
+#    --prefix=%{_prefix} \
+#    --enable-subversion \
+#    --enable-monoextensions \
+#    --enable-aspnet \
+#    --disable-update-mimedb \
+#    --disable-update-desktopdb
 make
 
 
@@ -56,11 +95,21 @@ make
 rm -rf $RPM_BUILD_ROOT
 export MONO_SHARED_DIR=%{_builddir}/%{?buildsubdir}
 make install DESTDIR=$RPM_BUILD_ROOT \
-	GACUTIL_FLAGS="/package monodevelop /root ${RPM_BUILD_ROOT}%{_libdif}"
+	GACUTIL_FLAGS="/package monodevelop /root ${RPM_BUILD_ROOT}%{_prefix}/lib"
 
 mkdir -p $RPM_BUILD_ROOT%{_datadir}/pkgconfig
 mv $RPM_BUILD_ROOT%{_prefix}/lib/pkgconfig/* $RPM_BUILD_ROOT%{_datadir}/pkgconfig
 
+cp -a %{_prefix}/lib/mono/nuget/NuGet.Core.dll $RPM_BUILD_ROOT%{_prefix}/lib/monodevelop/AddIns/MonoDevelop.PackageManagement/
+cp -a %{_prefix}/lib/mono/nuget/Microsoft.Web.XmlTransform.dll $RPM_BUILD_ROOT%{_prefix}/lib/monodevelop/AddIns/MonoDevelop.PackageManagement/
+
+ln -s %{_prefix}/lib/mono/nunit/nunit.core.dll $RPM_BUILD_ROOT%{_prefix}/lib/monodevelop/AddIns/NUnit/
+ln -s %{_prefix}/lib/mono/nunit/nunit.core.interfaces.dll $RPM_BUILD_ROOT%{_prefix}/lib/monodevelop/AddIns/NUnit/
+ln -s %{_prefix}/lib/mono/nunit/nunit.framework.dll $RPM_BUILD_ROOT%{_prefix}/lib/monodevelop/AddIns/NUnit/
+ln -s %{_prefix}/lib/mono/nunit/nunit.util.dll $RPM_BUILD_ROOT%{_prefix}/lib/monodevelop/AddIns/NUnit/
+
+rm -rf $RPM_BUILD_ROOT%{_prefix}/lib/monodevelop/locale
+
 %find_lang %{name}
 
 
@@ -69,28 +118,47 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %post
-update-mime-database /usr/share/mime >/dev/null || :
-
+touch --no-create %{_datadir}/icons/hicolor || :
 
 %postun
-update-mime-database /usr/share/mime >/dev/null || :
+if [ $1 -eq 0 ] ; then
+    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+    update-desktop-database -q &> /dev/null
+    update-mime-database %{_datadir}/mime &> /dev/null
+fi
+
+%posttrans
+gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
+update-desktop-database -q &> /dev/null
+update-mime-database %{_datadir}/mime &> /dev/null
 
 
 %files -f %{name}.lang
 %defattr(-,root,root)
+%doc AUTHORS ChangeLog COPYING README
 %{_prefix}/bin/*
 %{_prefix}/lib/monodevelop
 %{_datadir}/applications/monodevelop.desktop
 %{_datadir}/mime/packages/monodevelop.xml
 %{_datadir}/icons/hicolor/*/apps/monodevelop.png
 %{_datadir}/icons/hicolor/scalable/apps/monodevelop.svg
-%{_datadir}/pkgconfig/monodevelop.pc
-%{_datadir}/pkgconfig/monodevelop-core-addins.pc
 %{_mandir}/man1/mdtool.1.gz
 %{_mandir}/man1/monodevelop.1.gz
 
+%files devel
+%defattr(-,root,root)
+%{_datadir}/pkgconfig/monodevelop.pc
+%{_datadir}/pkgconfig/monodevelop-core-addins.pc
+
 
 %changelog
+* Tue May 26 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 5.9-1
+- new upstream release
+- added Patch0 from OpenSUSE
+- added Patch70 for launching monodevelop
+- split pkgconfig file into devel subpackage
+
 * Mon Apr 25 2011 Shu KONNO <owa@bg.wakwak.com> 2.4.2-2
 - rebuilt with mono-2.10.1-3
 

+ 119 - 0
n/nunit/nunit-vl.spec

@@ -0,0 +1,119 @@
+Name:           nunit
+Version:        2.6.4
+Release:        2%{?_dist_release}
+Summary:        Unit-testing framework for all .NET languages
+Summary(ja):    .NET 向けのユニットテストフレームワーク
+
+License:        Zlib
+Url:            http://www.nunit.org/
+Group:          Development/Tools
+
+Source0:        https://github.com/nunit/nunitv2/archive/%{version}.tar.gz
+
+Source10:	mono-find-requires 
+
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+BuildArch:      noarch
+BuildRequires:  mono-devel dos2unix libgdiplus-devel
+#%if 0%{?fedora_version} strace 
+#BuildRequires:  xorg-x11-fonts-truetype
+#%endif
+
+%global __mono_requires %{SOURCE10}
+
+%description
+NUnit is a unit testing framework for all .NET languages. It serves the
+same purpose as JUnit does in the Java world. It supports test
+categories, testing for exceptions and writing test results in plain
+text or XML.
+
+%package devel
+Summary:        Development files for NUnit
+Summary(ja):    NUnit の開発用ファイル
+Group:          Development/Libraries
+Requires:       nunit = %{version}-%{release}
+
+%description devel
+This package contains development files for NUnit integration.
+
+%prep
+%setup -q -n nunitv2-%{version}
+chmod +x %{SOURCE10}
+
+%build
+xbuild nunit.sln /t:Build /p:Configuration=Debug
+
+%install
+rm -rf %{buildroot}
+mkdir -p "%{buildroot}%{_prefix}/lib/nunit"
+cp -a bin/Debug/* "%{buildroot}%{_prefix}/lib/nunit"
+
+#mkdir -p "%{buildroot}%{_docdir}/%{name}"
+#cp -a license.txt "%{buildroot}%{_docdir}/%{name}/"
+#cp -a doc "%{buildroot}%{_docdir}/%{name}/"
+#cp -a samples "%{buildroot}%{_docdir}/%{name}/"
+rm -rf docs_to_include
+mkdir -p docs_to_include
+cp -a license.txt docs_to_include
+cp -a doc docs_to_include
+cp -a samples docs_to_include
+
+pushd docs_to_include
+find . -type f -exec dos2unix {} \;
+popd
+
+mkdir -p "%{buildroot}%{_bindir}"
+echo '#!/bin/sh
+exec /usr/bin/mono %{_prefix}/lib/nunit/nunit.exe "$@"' > "%{buildroot}%{_bindir}/nunit"
+chmod +x "%{buildroot}%{_bindir}/nunit"
+
+#cd %{buildroot}%{_docdir}/%{name}/
+#find . -type f -exec dos2unix {} \;
+
+for i in nunit.core.dll nunit.core.interfaces.dll nunit.framework.dll nunit.util.dll lib/nunit-console-runner.dll lib/nunit-gui-runner.dll lib/nunit.uiexception.dll lib/nunit.uikit.dll framework/nunit.mocks.dll ; do
+	gacutil -i %{buildroot}%{_prefix}/lib/nunit/$i -package nunit -root %{buildroot}%{_prefix}/lib
+	rm -f %{buildroot}%{_prefix}/lib/nunit/$i
+done
+
+mkdir -p %{buildroot}%{_datadir}/pkgconfig
+cat <<EOF > %{buildroot}%{_datadir}/pkgconfig/nunit.pc
+prefix=%{_prefix}
+exec_prefix=\${prefix}
+libdir=\${exec_prefix}/lib
+pkglibdir=\${prefix}/lib/mono/nunit
+
+Name: NUnit
+Description: Testing framework for .NET
+Version: %{version}
+Libs: -r:\${pkglibdir}/nunit.core.dll -r:\${pkglibdir}/nunit.core.interfaces.dll -r:\${pkglibdir}/nunit.framework.dll -r:\${pkglibdir}/nunit.util.dll r:\${pkglibdir}/nunit-console-runner.dll r:\${pkglibdir}/nunit-gui-runner.dll r:\${pkglibdir}/nunit.uiexception.dll r:\${pkglibdir}/nunit.uikit.dll r:\${pkglibdir}/nunit.mocks.dll
+EOF
+
+#fdupes %{buildroot}%{_prefix}
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root)
+%doc docs_to_include/*
+%{_bindir}/nunit
+%{_prefix}/lib/nunit
+%{_prefix}/lib/mono/nunit
+%{_prefix}/lib/mono/gac/nunit*
+#{_docdir}/nunit
+
+%files devel
+%defattr(-, root, root)
+%{_datadir}/pkgconfig/nunit.pc
+
+%changelog
+* Tue May 26 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 2.6.4-2
+- initial build for VineLinux
+
+* Mon Dec 22 2014 mailaender@opensuse.org
+- avoid the broken release ZIP file https://github.com/nunit/nunitv2/issues/35
+- fix the pkgconfig file for MonoDevelop
+- build with Debug symbols
+- place copies into the global assembly cache
+* Sun Dec 21 2014 mailaender@opensuse.org
+- initial packaging