Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLluis Sanchez Gual <lluis@xamarin.com>2011-09-08 23:16:09 +0400
committerLluis Sanchez Gual <lluis@xamarin.com>2011-09-08 23:16:09 +0400
commitba49ba1d119acfd1cf7ce4c2bbf87456cece91b8 (patch)
treea4979eddedde2ee318338f4c3e2838bdf7474ef5 /extras/JavaBinding
parent5e99412342cc5f6c3471d950f360d234303c3915 (diff)
Generate spec files when running make dist
Diffstat (limited to 'extras/JavaBinding')
-rw-r--r--extras/JavaBinding/JavaBinding.make2
-rwxr-xr-xextras/JavaBinding/configure2
-rw-r--r--extras/JavaBinding/monodevelop-java.spec.in65
3 files changed, 69 insertions, 0 deletions
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