Accepting request 159740 from devel:ARM:AArch64:Factory
- add buildconditional to build optionally without mono OBS-URL: https://build.opensuse.org/request/show/159740 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libcaca?expand=0&rev=22
This commit is contained in:
parent
b7d6d4c01a
commit
34eb98ebe7
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Mar 17 21:53:40 UTC 2013 - dmueller@suse.com
|
||||||
|
|
||||||
|
- add buildconditional to build optionally without mono
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jun 6 10:09:07 UTC 2012 - cfarrell@suse.com
|
Wed Jun 6 10:09:07 UTC 2012 - cfarrell@suse.com
|
||||||
|
|
||||||
|
11
libcaca.spec
11
libcaca.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package libcaca
|
# spec file for package libcaca
|
||||||
#
|
#
|
||||||
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
%define withjava 0
|
%define withjava 0
|
||||||
%define withpython 1
|
%define withpython 1
|
||||||
|
%bcond_without mono
|
||||||
|
|
||||||
Name: libcaca
|
Name: libcaca
|
||||||
BuildRequires: doxygen
|
BuildRequires: doxygen
|
||||||
@ -35,7 +36,9 @@ BuildRequires: freeglut-devel
|
|||||||
BuildRequires: ftgl-devel
|
BuildRequires: ftgl-devel
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: java-devel
|
BuildRequires: java-devel
|
||||||
|
%if %{with mono}
|
||||||
BuildRequires: mono-devel
|
BuildRequires: mono-devel
|
||||||
|
%endif
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
BuildRequires: ruby-devel
|
BuildRequires: ruby-devel
|
||||||
BuildRequires: xorg-x11-libs
|
BuildRequires: xorg-x11-libs
|
||||||
@ -98,6 +101,7 @@ Requires: %{name}0-java = %{version}
|
|||||||
This package contains the header files and static libraries needed to
|
This package contains the header files and static libraries needed to
|
||||||
compile applications or shared objects that use libcaca.
|
compile applications or shared objects that use libcaca.
|
||||||
|
|
||||||
|
%if %{with mono}
|
||||||
%package csharp
|
%package csharp
|
||||||
Summary: C# support for libcaca
|
Summary: C# support for libcaca
|
||||||
Group: Development/Languages/Mono
|
Group: Development/Languages/Mono
|
||||||
@ -106,6 +110,7 @@ Requires: mono
|
|||||||
|
|
||||||
%description csharp
|
%description csharp
|
||||||
This package contains all that is needed to use libcaca from C# code.
|
This package contains all that is needed to use libcaca from C# code.
|
||||||
|
%endif
|
||||||
|
|
||||||
%if 0%{?withjava} == 1
|
%if 0%{?withjava} == 1
|
||||||
|
|
||||||
@ -219,7 +224,9 @@ make %{?_smp_mflags}
|
|||||||
|
|
||||||
%fdupes -s %{buildroot}%{python_sitelib}/caca/
|
%fdupes -s %{buildroot}%{python_sitelib}/caca/
|
||||||
%fdupes -s %{buildroot}%{_mandir}/
|
%fdupes -s %{buildroot}%{_mandir}/
|
||||||
|
%if %{with mono}
|
||||||
%fdupes -s %{buildroot}%{_libdir}/mono
|
%fdupes -s %{buildroot}%{_libdir}/mono
|
||||||
|
%endif
|
||||||
|
|
||||||
%post -n libcaca0 -p /sbin/ldconfig
|
%post -n libcaca0 -p /sbin/ldconfig
|
||||||
|
|
||||||
@ -258,9 +265,11 @@ make %{?_smp_mflags}
|
|||||||
%{_libdir}/jni/libcaca-java.so
|
%{_libdir}/jni/libcaca-java.so
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if %{with mono}
|
||||||
%files csharp
|
%files csharp
|
||||||
%defattr(-, root, root, 0755)
|
%defattr(-, root, root, 0755)
|
||||||
%{_libdir}/mono
|
%{_libdir}/mono
|
||||||
|
%endif
|
||||||
|
|
||||||
%files ruby
|
%files ruby
|
||||||
%defattr(-, root, root, 0755)
|
%defattr(-, root, root, 0755)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user