Drop python2.
This commit is contained in:
parent
0f2ce90c21
commit
15f5696c3b
|
@ -1,11 +1,9 @@
|
|||
%define _hardened_build 1
|
||||
%{!?python_sitearch: %define python_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||
|
||||
Name: clearsilver
|
||||
Version: 0.10.5
|
||||
Release: 50%{?dist}
|
||||
Release: 51%{?dist}
|
||||
Summary: Fast and powerful HTML templating system
|
||||
Group: Development/Libraries
|
||||
# Technically, the license is "Neotonic ClearSilver", but it is a copy of
|
||||
# ASL 1.1 with the trademarks as the only difference.
|
||||
License: ASL 1.1
|
||||
|
@ -33,23 +31,12 @@ websites are using it.
|
|||
|
||||
%package devel
|
||||
Summary: ClearSilver development package
|
||||
Group: Development/Libraries
|
||||
Provides: %{name}-static = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
This package provides needed files to develop extensions
|
||||
to ClearSilver.
|
||||
|
||||
%package -n python2-%{name}
|
||||
%{?python_provide:%python_provide python2-%{name}}
|
||||
Summary: Python interface to the ClearSilver HTML templating system
|
||||
Group: Development/Libraries
|
||||
BuildRequires: python2-devel >= 2.1
|
||||
Provides: %{name}-python = %{version}-%{release}
|
||||
|
||||
%description -n python2-%{name}
|
||||
%{summary}.
|
||||
|
||||
%package -n perl-%{name}
|
||||
Summary: Perl interface to the ClearSilver HTML templating system
|
||||
Group: Development/Libraries
|
||||
|
@ -94,10 +81,7 @@ Provides: %{name}-java = %{version}-%{release}
|
|||
%patch4 -p1
|
||||
%patch5 -p2
|
||||
touch configure
|
||||
sed -i 's|/neo/opt/bin/python|%{__python2}|' python/examples/*/*.py
|
||||
sed -i 's|PYTHON_SITE = @PYTHON_SITE@|PYTHON_SITE = %{python2_sitearch}|' rules.mk.in
|
||||
sed -i -r 's|(\$\(RUBY\) install.rb config) (--.*)|\1 --rb-dir="$(DESTDIR)%{ruby_vendorlibdir}" --so-dir="$(DESTDIR)%{ruby_vendorarchdir}" \2|' ruby/Makefile
|
||||
find python/examples -type f | xargs chmod -x
|
||||
|
||||
%build
|
||||
# java does not build on x86_64
|
||||
|
@ -106,11 +90,9 @@ find python/examples -type f | xargs chmod -x
|
|||
%if 0%{?rhel} > 4
|
||||
--with-java=%{_libdir}/jvm/java \
|
||||
%endif
|
||||
--with-python=%{__python2} \
|
||||
--disable-csharp
|
||||
%else
|
||||
%configure \
|
||||
--with-python=%{__python2} \
|
||||
--disable-java \
|
||||
--disable-csharp
|
||||
%endif
|
||||
|
@ -118,7 +100,6 @@ make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS"
|
|||
cd perl && %{__perl} Makefile.PL INSTALLDIRS=vendor && cd ..
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make install DESTDIR=$RPM_BUILD_ROOT
|
||||
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
||||
find $RPM_BUILD_ROOT -type f -name perllocal.pod -exec rm -f {} ';'
|
||||
|
@ -149,12 +130,6 @@ ln -s clearsilver-%{version}.jar $RPM_BUILD_ROOT%{_libdir}/java/clearsilver.jar
|
|||
%{_includedir}/ClearSilver/
|
||||
%{_libdir}/libneo_*.a
|
||||
|
||||
%files -n python2-%{name}
|
||||
%doc CS_LICENSE LICENSE
|
||||
%defattr(-,root,root,-)
|
||||
%doc README.python python/examples/
|
||||
%{python2_sitearch}/neo_cgi.so
|
||||
|
||||
%files -n perl-clearsilver
|
||||
%doc CS_LICENSE LICENSE
|
||||
%defattr(-,root,root,-)
|
||||
|
@ -178,6 +153,9 @@ ln -s clearsilver-%{version}.jar $RPM_BUILD_ROOT%{_libdir}/java/clearsilver.jar
|
|||
|
||||
|
||||
%changelog
|
||||
* Thu Oct 04 2018 Gwyn Ciesla <limburgher@gmail.com> - 0.10.5-51
|
||||
- Drop python2.
|
||||
|
||||
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.5-50
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
|
|
Loading…
Reference in New Issue