Skip to content
Browse files

Generate spec files when running make dist

  • Loading branch information...
1 parent 5e99412 commit ba49ba1d119acfd1cf7ce4c2bbf87456cece91b8 @slluis slluis committed Sep 8, 2011
View
14 Makefile
@@ -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
View
2 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 '$<'
View
2 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
View
65 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
View
1 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
View
74 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
View
2 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
View
56 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
View
2 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
View
75 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
View
1 extras/ValaBinding/configure.in
@@ -107,4 +107,5 @@ AC_SUBST(CSC_FLAGS)
AC_OUTPUT([
Makefile
+monodevelop-vala.spec
])
View
67 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

0 comments on commit ba49ba1

Please sign in to comment.
Something went wrong with that request. Please try again.