r2766 - /limal-branches/mc-devel/limal-ca-mgm/package/libcamgm.spec
Author: mcalmer Date: Sun May 13 17:58:30 2012 New Revision: 2766 URL: http://svn.opensuse.org/viewcvs/limal?rev=2766&view=rev Log: fix license naming Modified: limal-branches/mc-devel/limal-ca-mgm/package/libcamgm.spec Modified: limal-branches/mc-devel/limal-ca-mgm/package/libcamgm.spec URL: http://svn.opensuse.org/viewcvs/limal/limal-branches/mc-devel/limal-ca-mgm/package/libcamgm.spec?rev=2766&r1=2765&r2=2766&view=diff ============================================================================== --- limal-branches/mc-devel/limal-ca-mgm/package/libcamgm.spec (original) +++ limal-branches/mc-devel/limal-ca-mgm/package/libcamgm.spec Sun May 13 17:58:30 2012 @@ -21,12 +21,16 @@ # norootforbuild +%define with_ruby 0 + +%if 0%{?with_ruby} %define ruby_archdir %(ruby -r rbconfig -e "print Config::CONFIG['vendorarchdir']") +%endif Name: libcamgm Version: 1.0.0 Release: 0 -License: GPL v2 or later +License: GPL-2.0 Group: Development/Libraries/C and C++ BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -55,7 +59,7 @@ %package -n %{name}100 Group: Development/Libraries/C and C++ -License: GPL v2 or later +License: GPL-2.0 Summary: CA Management Library %description -n %{name}100 @@ -67,7 +71,7 @@ Requires: openssl-devel Requires: pcre-devel Group: Development/Libraries/C and C++ -License: GPL v2 or later +License: GPL-2.0 Summary: CA Management Library Development Files %if 0%{?suse_version} >= 1030 Requires: libopenssl-devel @@ -85,7 +89,7 @@ Requires: perl = %{perl_version} %endif Group: Development/Languages/Perl -License: GPL v2 or later +License: GPL-2.0 Summary: CA Management Library Perl Bindings %description -n perl-camgm @@ -94,10 +98,11 @@ This package provides the perl bindings to the CA Management Library. +%if 0%{?with_ruby} %package -n ruby-camgm Requires: ruby Group: Development/Languages/Ruby -License: GPL v2 or later +License: GPL-2.0 Summary: CA Management Library Ruby Bindings %description -n ruby-camgm @@ -106,7 +111,7 @@ This package provides the ruby bindings to the CA Management Library. - +%endif %prep %setup @@ -117,7 +122,6 @@ export CFLAGS="$RPM_OPT_FLAGS -DNDEBUG" export CXXFLAGS="$RPM_OPT_FLAGS -DNDEBUG" -%{?suse_update_config:%{suse_update_config -f}} # workaround for fedora gettext check on x86_64 sed -i -e 's/return (int) gettext/return (long) gettext/g' ./configure ./configure --libdir=%{_libdir} --prefix=%{prefix} --mandir=%{_mandir} \ @@ -174,12 +178,12 @@ %files -n perl-camgm %defattr(-,root,root) -#%dir %{perl_vendorarch}/ %dir %{perl_vendorarch}/auto/CaMgm/ %{perl_vendorarch}/auto/CaMgm/* %{perl_vendorarch}/*.pm +%if 0%{?with_ruby} %files -n ruby-camgm %defattr(-,root,root) %ruby_archdir/*.so - +%endif -- To unsubscribe, e-mail: limal-commit+unsubscribe@opensuse.org For additional commands, e-mail: limal-commit+help@opensuse.org
participants (1)
-
mcalmer@svn2.opensuse.org