Accepting request 228212 from home:matwey:branches:devel:languages:tcl
Split .so into separate package according https://en.opensuse.org/openSUSE:Shared_library_packaging_policy OBS-URL: https://build.opensuse.org/request/show/228212 OBS-URL: https://build.opensuse.org/package/show/devel:languages:tcl/jimtcl?expand=0&rev=3
This commit is contained in:
parent
75cbdb7fe8
commit
dd9ae83cca
@ -1,22 +0,0 @@
|
||||
Index: Makefile.in
|
||||
===================================================================
|
||||
--- Makefile.in.orig
|
||||
+++ Makefile.in
|
||||
@@ -36,7 +36,7 @@ VPATH := @srcdir@
|
||||
@if JIM_STATICLIB
|
||||
LIBJIM := libjim.a
|
||||
@else
|
||||
-LIBJIM := libjim@LIBSOEXT@
|
||||
+LIBJIM := libjim@LIBSOEXT@.0.75
|
||||
SH_LIBJIM := $(LIBJIM)
|
||||
CC += $(SH_CFLAGS)
|
||||
CXX += $(SH_CFLAGS)
|
||||
@@ -133,7 +133,7 @@ $(LIBJIM): $(OBJS)
|
||||
$(RANLIB) $@
|
||||
@else
|
||||
$(LIBJIM): $(OBJS)
|
||||
- $(CC) $(CFLAGS) $(LDFLAGS) $(SH_LDFLAGS) -o $@ $(OBJS) $(LDLIBS)
|
||||
+ $(CC) $(CFLAGS) $(LDFLAGS) -Wl,-soname,libjim.so.0.73 $(SH_LDFLAGS) -o $@ $(OBJS) $(LDLIBS)
|
||||
@endif
|
||||
|
||||
# Note that $> $^ is for compatibility with both GNU make and BSD make
|
@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Mar 30 10:11:45 UTC 2014 - matwey.kornilov@gmail.com
|
||||
|
||||
- Split .so into separate package
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Mar 30 10:05:37 UTC 2014 - matwey.kornilov@gmail.com
|
||||
|
||||
- Delete jimtcl-add_soname.patch: not required for 0.75 anymore
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 13 15:52:23 UTC 2014 - matwey.kornilov@gmail.com
|
||||
|
||||
|
20
jimtcl.spec
20
jimtcl.spec
@ -15,6 +15,7 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
%define libjim_name libjim0_75
|
||||
|
||||
Name: jimtcl
|
||||
Version: 0.75
|
||||
@ -23,10 +24,8 @@ Summary: A small embeddable Tcl interpreter
|
||||
License: BSD-2-Clause
|
||||
Group: Development/Languages/Tcl
|
||||
Url: http://jim.tcl.tk
|
||||
# wget https://github.com/msteveb/jimtcl/archive/master.tar.gz -O jimtcl.tar.gz
|
||||
Source: jimtcl-%{version}.tar.gz
|
||||
Patch0: jimtcl-fix_doc_paths.patch
|
||||
Patch1: jimtcl-add_soname.patch
|
||||
BuildRequires: asciidoc
|
||||
|
||||
%description
|
||||
@ -40,15 +39,22 @@ UTF-8 support.
|
||||
Summary: Development files for %{name}
|
||||
Group: Development/Libraries/Tcl
|
||||
Requires: %{name} = %{version}
|
||||
Requires: %{libjim_name} = %{version}
|
||||
|
||||
%description devel
|
||||
The %{name}-devel package contains libraries and header files for
|
||||
developing applications that use %{name}.
|
||||
|
||||
%package -n %{libjim_name}
|
||||
Summary: A small embeddable Tcl interpreter
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n %{libjim_name}
|
||||
Jim is an opensource small-footprint implementation of the Tcl programming language.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}
|
||||
%patch0
|
||||
%patch1
|
||||
iconv --from=ISO-8859-1 --to=UTF-8 AUTHORS > AUTHORS.new ; mv AUTHORS.new AUTHORS
|
||||
iconv --from=ISO-8859-1 --to=UTF-8 LICENSE > LICENSE.new ; mv LICENSE.new LICENSE
|
||||
|
||||
@ -72,14 +78,18 @@ pushd %{buildroot}%{_libdir}/
|
||||
ln -s libjim.so.* libjim.so
|
||||
popd
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
%post -n %{libjim_name} -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
%postun -n %{libjim_name} -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE AUTHORS README Tcl.html
|
||||
%{_bindir}/jimsh
|
||||
|
||||
%files -n %{libjim_name}
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE
|
||||
%{_libdir}/libjim.so.*
|
||||
|
||||
%files devel
|
||||
|
Loading…
Reference in New Issue
Block a user