Sophie

Sophie

distrib > Mageia > 5 > i586 > by-pkgid > 4c7057729c0f6fcd6e2c3edc69eb8305 > files > 7

itcl-3.4-4.mga5.src.rpm

%{!?tcl_version: %define tcl_version %(echo 'puts $tcl_version' | tclsh)}
%{!?tcl_sitearch: %define tcl_sitearch %{_libdir}/tcl%{tcl_version}}

Name:           itcl
Version:        3.4
Release:        %mkrel 4
Summary:        Object oriented extensions to Tcl and Tk

Group:          Development/Other
License:        TCL
URL:            http://incrtcl.sourceforge.net/itcl/
# cvs -d:pserver:anonymous@incrtcl.cvs.sourceforge.net:/cvsroot/incrtcl export -D 2007-12-31 -d incrtcl-20071231cvs itcl
# tar czf incrtcl-20071231cvs.tgz ./incrtcl-20071231cvs
Source0:        incrtcl-20071231cvs.tgz
Patch0:         itcl-3.4-tclbindir.patch
Patch1:         itcl-3.4-libdir.patch
Patch2:         itcl-3.4-soname.patch
Patch3:         itcl-3.4-findinit.patch
Patch4:         itcl-3.4-segfaultinit.patch
BuildRequires:       tcl-devel

%description
[incr Tcl] is Tcl extension that provides object-oriented features that are
missing from the Tcl language.

%package devel
Summary:  Development headers and libraries for linking against itcl
Group: Development/Other
Requires:       %{name} = %{version}-%{release}
%description devel
Development headers and libraries for linking against itcl.

%prep
%setup -q -n incrtcl-20071231cvs
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1

%build
%configure2_5x
%make


%install
%make install DESTDIR=$RPM_BUILD_ROOT
# Patch the updated location of the stub library
sed -i -e "s#%{_libdir}/%{name}%{version}#%{tcl_sitearch}/%{name}%{version}#" \
        $RPM_BUILD_ROOT%{_libdir}/itclConfig.sh

#check
#make test

%files
%dir %{tcl_sitearch}/%{name}%{version}
%{tcl_sitearch}/%{name}%{version}/*.tcl
%{_libdir}/*.so
%{_mandir}/mann/*
%doc license.terms

%files devel
%{_includedir}/*.h
%{_libdir}/itclConfig.sh
%{tcl_sitearch}/%{name}%{version}/*.a


%changelog
* Wed Oct 15 2014 umeabot <umeabot> 3.4-4.mga5
+ Revision: 750724
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 3.4-3.mga5
+ Revision: 680580
- Mageia 5 Mass Rebuild

* Sat Oct 19 2013 umeabot <umeabot> 3.4-2.mga4
+ Revision: 531145
- Mageia 4 Mass Rebuild

* Thu Aug 01 2013 joequant <joequant> 3.4-1.mga4
+ Revision: 462214
- imported package itcl