diff --git a/jimtcl-add_soname.patch b/jimtcl-add_soname.patch deleted file mode 100644 index 454aaf1..0000000 --- a/jimtcl-add_soname.patch +++ /dev/null @@ -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 diff --git a/jimtcl.changes b/jimtcl.changes index 6d6c9e2..91b6112 100644 --- a/jimtcl.changes +++ b/jimtcl.changes @@ -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 diff --git a/jimtcl.spec b/jimtcl.spec index 33b9d4b..42d75e6 100644 --- a/jimtcl.spec +++ b/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