diff options
author | Lluis Sanchez Gual <lluis@xamarin.com> | 2011-09-08 23:16:09 +0400 |
---|---|---|
committer | Lluis Sanchez Gual <lluis@xamarin.com> | 2011-09-08 23:16:09 +0400 |
commit | ba49ba1d119acfd1cf7ce4c2bbf87456cece91b8 (patch) | |
tree | a4979eddedde2ee318338f4c3e2838bdf7474ef5 | |
parent | 5e99412342cc5f6c3471d950f360d234303c3915 (diff) |
Generate spec files when running make dist
-rw-r--r-- | Makefile | 14 | ||||
-rw-r--r-- | extras/JavaBinding/JavaBinding.make | 2 | ||||
-rwxr-xr-x | extras/JavaBinding/configure | 2 | ||||
-rw-r--r-- | extras/JavaBinding/monodevelop-java.spec.in | 65 | ||||
-rw-r--r-- | extras/MonoDevelop.Database/configure.in | 1 | ||||
-rw-r--r-- | extras/MonoDevelop.Database/monodevelop-database.spec.in | 74 | ||||
-rwxr-xr-x | extras/MonoDevelop.Debugger.Gdb/configure | 2 | ||||
-rw-r--r-- | extras/MonoDevelop.Debugger.Gdb/monodevelop-debugger-gdb.spec.in | 56 | ||||
-rwxr-xr-x | extras/PyBinding/configure | 2 | ||||
-rw-r--r-- | extras/PyBinding/monodevelop-python.spec.in | 75 | ||||
-rw-r--r-- | extras/ValaBinding/configure.in | 1 | ||||
-rw-r--r-- | extras/ValaBinding/monodevelop-vala.spec.in | 67 |
12 files changed, 361 insertions, 0 deletions
@@ -39,12 +39,26 @@ distclean: distclean-recursive dist: dist-recursive + rm -rf tarballs mkdir -p tarballs for t in $(SUBDIRS); do \ if test -a $$t/*.tar.gz; then \ mv -f $$t/*.tar.gz tarballs ;\ fi \ done + for t in `ls tarballs/*.tar.gz`; do \ + gunzip $$t ;\ + done + for t in `ls tarballs/*.tar`; do \ + bzip2 $$t ;\ + done + rm -rf specs + mkdir -p specs + for t in $(SUBDIRS); do \ + if test -a $$t/*.spec; then \ + cp -f $$t/*.spec specs ;\ + fi \ + done run: cd main && make run diff --git a/extras/JavaBinding/JavaBinding.make b/extras/JavaBinding/JavaBinding.make index ab5dec4706..e34ad1e3ed 100644 --- a/extras/JavaBinding/JavaBinding.make +++ b/extras/JavaBinding/JavaBinding.make @@ -109,6 +109,8 @@ $(JAVABINDING_PC): monodevelop-java.pc monodevelop-java.pc: monodevelop-java.pc.in $(top_srcdir)/config.make sed -e "s,@prefix@,$(prefix)," -e "s,@PACKAGE@,$(PACKAGE)," < monodevelop-java.pc.in > monodevelop-java.pc +monodevelop-java.spec: monodevelop-java.spec.in $(top_srcdir)/config.make + sed -e "s,@prefix@,$(prefix)," -e "s,@PACKAGE@,$(PACKAGE)," < monodevelop-java.spec.in > monodevelop-java.spec $(build_xamlg_list): %.xaml.g.cs: %.xaml xamlg '$<' diff --git a/extras/JavaBinding/configure b/extras/JavaBinding/configure index 5759b6e5df..2a56974300 100755 --- a/extras/JavaBinding/configure +++ b/extras/JavaBinding/configure @@ -86,6 +86,8 @@ done check_required_packages [ $? -eq 1 ] && exit 1 +sed -e "s,@VERSION@,$VERSION," < monodevelop-java.spec.in > monodevelop-java.spec + echo "prefix=$prefix" > config.make echo "RUNTIME=mono" >> config.make echo "ASSEMBLY_VERSION=$VERSION.0.0" >> config.make diff --git a/extras/JavaBinding/monodevelop-java.spec.in b/extras/JavaBinding/monodevelop-java.spec.in new file mode 100644 index 0000000000..0cfe63390f --- /dev/null +++ b/extras/JavaBinding/monodevelop-java.spec.in @@ -0,0 +1,65 @@ +# +# spec file for package monodevelop-java +# +# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# 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: monodevelop-java +Version: @VERSION@ +Release: 6 +License: GPLv2+ +BuildRoot: %{_tmppath}/%{name}-%{version}-build +AutoReqProv: on +BuildArch: noarch +Url: http://www.monodevelop.com +Source0: %{name}-%{version}.tar.bz2 +BuildRequires: ikvm mono-devel monodevelop >= %{version} +Requires: ikvm +Requires: java-sdk +Summary: Monodevelop Java Addin +Group: Development/Languages/Mono + +%description +Java language integration with MonoDevelop based on ikvm. + +%files -f %{name}.lang +%defattr(-, root, root) +%{_datadir}/pkgconfig/monodevelop-java.pc +%{_prefix}/lib/monodevelop/AddIns/JavaBinding/JavaBinding.dll* +%dir %{_prefix}/lib/monodevelop/AddIns/JavaBinding +%dir %{_prefix}/lib/monodevelop/AddIns/JavaBinding/locale +%dir %{_prefix}/lib/monodevelop/AddIns/JavaBinding/locale/* +%dir %{_prefix}/lib/monodevelop/AddIns/JavaBinding/locale/*/* + +%prep +%setup -q + +%build +%{?env_options} +./configure --prefix=%{_prefix} +make + +%install +%{?env_options} +make install DESTDIR=%{buildroot} +mkdir -p %{buildroot}%{_datadir}/pkgconfig +mv %{buildroot}%{_prefix}/lib/pkgconfig/*.pc %{buildroot}%{_datadir}/pkgconfig +%find_lang %{name} + +%clean +rm -rf %{buildroot} + +%changelog diff --git a/extras/MonoDevelop.Database/configure.in b/extras/MonoDevelop.Database/configure.in index 877db25f76..587724f9a7 100644 --- a/extras/MonoDevelop.Database/configure.in +++ b/extras/MonoDevelop.Database/configure.in @@ -141,6 +141,7 @@ AC_SUBST(MD_DIR) AC_OUTPUT([ Makefile monodevelop-database.pc +monodevelop-database.spec MonoDevelop.Database.Sql/Makefile MonoDevelop.Database.Sql.MySql/Makefile MonoDevelop.Database.Sql.Npgsql/Makefile diff --git a/extras/MonoDevelop.Database/monodevelop-database.spec.in b/extras/MonoDevelop.Database/monodevelop-database.spec.in new file mode 100644 index 0000000000..d0456160c3 --- /dev/null +++ b/extras/MonoDevelop.Database/monodevelop-database.spec.in @@ -0,0 +1,74 @@ +# +# spec file for package monodevelop-database (Version 2.4) +# +# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# 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/ +# + +# norootforbuild + +%define db_packages mono-data-postgresql mono-data-sqlite + +Name: monodevelop-database +Version: @VERSION@ +Release: 1 +License: GPLv2+ +BuildRoot: %{_tmppath}/%{name}-%{version}-build +AutoReqProv: on +BuildArch: noarch +Url: http://www.monodevelop.com +Source0: %{name}-%{version}.tar.bz2 +BuildRequires: %db_packages mono-devel monodevelop >= %{version} +Requires: %db_packages +BuildRequires: gtksourceview-sharp2 monodoc-core +Summary: Monodevelop Database Addin +Group: Development/Languages/Mono +%if 0%{?fedora_version} +%define env_options export MONO_SHARED_DIR=/tmp +%endif + +%description +Addin for MonoDevelop for an integrated database explorer and editor. + + + +%files -f %{name}.lang +%defattr(-, root, root) +%_prefix/share/pkgconfig/monodevelop-database.pc +%_prefix/lib/monodevelop/AddIns/MonoDevelop.Database + +%prep +%setup -q + +%build +%{?env_options} +./configure --prefix=%_prefix +make + +%install +%{?env_options} +make install DESTDIR=${RPM_BUILD_ROOT} +mkdir -p $RPM_BUILD_ROOT%_prefix/share/pkgconfig +mv $RPM_BUILD_ROOT%_prefix/lib/pkgconfig/*.pc $RPM_BUILD_ROOT%_prefix/share/pkgconfig +%find_lang %{name} + +%clean +rm -rf "$RPM_BUILD_ROOT" +%if 0%{?fedora_version} || 0%{?rhel_version} +# Allows overrides of __find_provides in fedora distros... (already set to zero on newer suse distros) +%define _use_internal_dependency_generator 0 +%endif +%define __find_provides env sh -c 'filelist=($(grep -v "Mono.Data.Sqlite\\|MySql.Data")) && { printf "%s\\n" "${filelist[@]}" | /usr/lib/rpm/find-provides && printf "%s\\n" "${filelist[@]}" | /usr/bin/mono-find-provides ; } | sort | uniq' +%define __find_requires env sh -c 'filelist=($(cat)) && { printf "%s\\n" "${filelist[@]}" | /usr/lib/rpm/find-requires && printf "%s\\n" "${filelist[@]}" | /usr/bin/mono-find-requires ; } | sort | uniq' + +%changelog diff --git a/extras/MonoDevelop.Debugger.Gdb/configure b/extras/MonoDevelop.Debugger.Gdb/configure index 3ef471fd37..ba484d284f 100755 --- a/extras/MonoDevelop.Debugger.Gdb/configure +++ b/extras/MonoDevelop.Debugger.Gdb/configure @@ -133,6 +133,8 @@ if [ -z "$datadir" ]; then datadir=$prefix/share fi +sed -e "s,@VERSION@,$VERSION," < monodevelop-debugger-gdb.spec.in > monodevelop-debugger-gdb.spec + echo "prefix=$prefix" > config.make echo "libdir=$libdir" >> config.make echo "bindir=$bindir" >> config.make diff --git a/extras/MonoDevelop.Debugger.Gdb/monodevelop-debugger-gdb.spec.in b/extras/MonoDevelop.Debugger.Gdb/monodevelop-debugger-gdb.spec.in new file mode 100644 index 0000000000..b7283061e0 --- /dev/null +++ b/extras/MonoDevelop.Debugger.Gdb/monodevelop-debugger-gdb.spec.in @@ -0,0 +1,56 @@ +# +# spec file for package monodevelop-debugger-gdb (Version 2.4) +# +# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# 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: monodevelop-debugger-gdb +Version: @VERSION@ +Release: 1 +License: MIT/X11 +AutoReqProv: on +BuildArch: noarch +Url: http://www.monodevelop.com +Source: %{name}-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: mono-devel monodevelop >= %{version} +Requires: gdb +Summary: GDB for MonoDevelop +Group: Development/Tools + +%description +GDB Debugger Addin for MonoDevelop. + +%files +%defattr(-, root, root) +%{_prefix}/lib/monodevelop/AddIns/MonoDevelop.Debugger/MonoDevelop.Debugger.Gdb.dll* + +%prep +%setup -q + +%build +%{?env_options} +./configure --prefix=%_prefix +make + +%install +%{?env_options} +make install DESTDIR=%{buildroot} + +%clean +rm -rf %{buildroot} + +%changelog diff --git a/extras/PyBinding/configure b/extras/PyBinding/configure index 190dcf9aea..1d7395babe 100755 --- a/extras/PyBinding/configure +++ b/extras/PyBinding/configure @@ -133,6 +133,8 @@ if [ -z "$datadir" ]; then datadir=$prefix/share fi +sed -e "s,@VERSION@,$VERSION," < monodevelop-python.spec.in > monodevelop-python.spec + echo "prefix=$prefix" > config.make echo "libdir=$libdir" >> config.make echo "bindir=$bindir" >> config.make diff --git a/extras/PyBinding/monodevelop-python.spec.in b/extras/PyBinding/monodevelop-python.spec.in new file mode 100644 index 0000000000..33ab740098 --- /dev/null +++ b/extras/PyBinding/monodevelop-python.spec.in @@ -0,0 +1,75 @@ +# +# spec file for package monodevelop-python (Version 2.4) +# +# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# 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/ +# + +# norootforbuild + + +Name: monodevelop-python +Version: @VERSION@ +Release: 1 +License: MIT/X11 +AutoReqProv: on +BuildArch: noarch +Url: http://www.monodevelop.com +Source: %{name}-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: mono-devel monodevelop >= %{version} +Requires: monodevelop >= %{version} +Requires: python +Summary: Monodevelop Python Addin +Group: Development/Tools + +%if 0%{?fedora_version} +%define env_options export MONO_SHARED_DIR=/tmp +%endif + +%description +Python support for MonoDevelop. + +%files +%defattr(-, root, root) +%_prefix/lib/monodevelop/AddIns/PyBinding/ +%_prefix/share/pkgconfig/monodevelop-pybinding.pc + +%prep +%setup -q + +%build +%{?env_options} +./configure --prefix=%_prefix +make + +%install +%{?env_options} +make install DESTDIR=${RPM_BUILD_ROOT} + +mkdir -p $RPM_BUILD_ROOT%_prefix/share/pkgconfig +mv $RPM_BUILD_ROOT%_prefix/lib/pkgconfig/*.pc $RPM_BUILD_ROOT%_prefix/share/pkgconfig + +#%find_lang %{name} + +%clean +rm -rf "$RPM_BUILD_ROOT" + +%if 0%{?fedora_version} || 0%{?rhel_version} +# Allows overrides of __find_provides in fedora distros... (already set to zero on newer suse distros) +%define _use_internal_dependency_generator 0 +%endif +%define __find_provides env sh -c 'filelist=($(cat)) && { printf "%s\\n" "${filelist[@]}" | /usr/lib/rpm/find-provides && printf "%s\\n" "${filelist[@]}" | /usr/bin/mono-find-provides ; } | sort | uniq' +%define __find_requires env sh -c 'filelist=($(cat)) && { printf "%s\\n" "${filelist[@]}" | /usr/lib/rpm/find-requires && printf "%s\\n" "${filelist[@]}" | /usr/bin/mono-find-requires ; } | sort | uniq' + +%changelog diff --git a/extras/ValaBinding/configure.in b/extras/ValaBinding/configure.in index 9454d59cac..04db1c5c4c 100644 --- a/extras/ValaBinding/configure.in +++ b/extras/ValaBinding/configure.in @@ -107,4 +107,5 @@ AC_SUBST(CSC_FLAGS) AC_OUTPUT([ Makefile +monodevelop-vala.spec ]) diff --git a/extras/ValaBinding/monodevelop-vala.spec.in b/extras/ValaBinding/monodevelop-vala.spec.in new file mode 100644 index 0000000000..aa2b323b2c --- /dev/null +++ b/extras/ValaBinding/monodevelop-vala.spec.in @@ -0,0 +1,67 @@ +# +# spec file for package monodevelop-vala (Version 2.4) +# +# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# 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: monodevelop-vala +Version: @VERSION@ +Release: 1 +License: MIT/X11 +AutoReqProv: on +BuildArch: noarch +Url: http://www.monodevelop.com +Source: %{name}-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: mono-devel monodevelop >= %{version} +Requires: vala +Summary: Monodevelop Vala Addin +Group: Development/Tools + +%if 0%{?fedora_version} +%define env_options export MONO_SHARED_DIR=/tmp +%endif + +%description +Vala language support for MonoDevelop. + +%files +%defattr(-, root, root) +%_prefix/lib/monodevelop/AddIns/BackendBindings/MonoDevelop.ValaBinding.dll + +%prep +%setup -q + +%build +%{?env_options} +./configure --prefix=%_prefix +make + +%install +%{?env_options} +make install DESTDIR=${RPM_BUILD_ROOT} + +%clean +rm -rf "$RPM_BUILD_ROOT" + +%if 0%{?fedora_version} || 0%{?rhel_version} +# Allows overrides of __find_provides in fedora distros... (already set to zero on newer suse distros) +%define _use_internal_dependency_generator 0 +%endif +%define __find_provides env sh -c 'filelist=($(cat)) && { printf "%s\\n" "${filelist[@]}" | /usr/lib/rpm/find-provides && printf "%s\\n" "${filelist[@]}" | /usr/bin/mono-find-provides ; } | sort | uniq' +%define __find_requires env sh -c 'filelist=($(cat)) && { printf "%s\\n" "${filelist[@]}" | /usr/lib/rpm/find-requires && printf "%s\\n" "${filelist[@]}" | /usr/bin/mono-find-requires ; } | sort | uniq' + +%changelog |