Browse Source

clearsilver-0.10.5-14

Tomohiro "Tomo-p" KATO 5 months ago
parent
commit
c085896d63
1 changed files with 29 additions and 1 deletions
  1. 29 1
      c/clearsilver/clearsilver-vl.spec

+ 29 - 1
c/clearsilver/clearsilver-vl.spec

@@ -4,7 +4,7 @@ Summary: A fast, powerful, and language-neutral HTML template system.
 Summary(ja): 高速、パワフルで言語中立なHTMLテンプレートシステム
 Name: clearsilver
 Version: 0.10.5
-Release: 13%{_dist_release}
+Release: 14%{_dist_release}
 Group: programming
 Vendor: Project Vine
 Distribution: Vine Linux
@@ -45,6 +45,16 @@ Clearsilver は高速、強力で言語中立なテンプレートシステム
 容易にすることを目指して設計されています。
 
 
+%package        devel
+Summary:        header files and development library for ClearSilver
+Summary(ja):    ClearSilverのヘッダファイル・開発ライブラリ
+Group:          programming
+Requires:       clearsilver = %{version}-%{release}
+
+%description    devel
+%{summary}.
+
+
 %package     -n perl-%{name}
 Summary:        Perl interface to the ClearSilver HTML templating system
 Requires:       perl >= 2:5.34.0
@@ -93,12 +103,22 @@ perl -pi -e 's/^(TARGETS =.+) test/$1/' cs/Makefile
 
 make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS"
 cd perl && %{__perl} Makefile.PL INSTALLDIRS=vendor && cd ..
+ld -z relro -shared -fPIC --build-id -lc --whole-archive \
+	-o libclearsilver.so.0.0.0 \
+	./libs/libneo_cgi.a \
+	./libs/libneo_cs.a \
+	./libs/libneo_utl.a
 
 
 %install
 rm -rf $RPM_BUILD_ROOT
 make DESTDIR=${RPM_BUILD_ROOT} install
 
+install -m755 libclearsilver.so.0.0.0 %{buildroot}%{_libdir}/
+ln -sf libclearsilver.so.0.0.0 %{buildroot}%{_libdir}/libclearsilver.so.0.0
+ln -sf libclearsilver.so.0.0.0 %{buildroot}%{_libdir}/libclearsilver.so.0
+ln -sf libclearsilver.so.0.0.0 %{buildroot}%{_libdir}/libclearsilver.so
+
 find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
 find $RPM_BUILD_ROOT -type f -name perllocal.pod -exec rm -f {} ';'
 find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
@@ -109,13 +129,18 @@ chmod -R u+w $RPM_BUILD_ROOT/*
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+
 %files
 %defattr(-,root,root)
 %license CS_LICENSE LICENSE
 %doc INSTALL README
 %{_bindir}/*
+%{_libdir}/*.so.*
+
+%files devel
 %{_includedir}/ClearSilver/
 %{_libdir}/*.a
+%{_libdir}/*.so
 %{_mandir}/man*/*.gz
 
 %files -n perl-clearsilver
@@ -132,6 +157,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Wed Nov 02 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.10.5-14
+- built shared library.
+
 * Sat Nov 20 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.10.5-13
 - rebuilt with perl-5.34.0.
 - dropped python support.