Browse Source

beecrypt-4.2.1-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@10365 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 7 years ago
parent
commit
23fdcc3a0e
1 changed files with 38 additions and 26 deletions
  1. 38 26
      b/beecrypt/beecrypt-vl.spec

+ 38 - 26
b/beecrypt/beecrypt-vl.spec

@@ -5,15 +5,15 @@
 
 Summary: An open source cryptography library.
 Name: beecrypt
-Version: 4.1.2
-Release: 15%{?_dist_release}
+Version: 4.2.1
+Release: 1%{?_dist_release}
 Group: System Environment/Libraries
 License: LGPL
 URL: http://sourceforge.net/projects/beecrypt
 Source0: http://prdownloads.sourceforge.net/beecrypt/%{name}-%{version}.tar.gz
 Source1: http://prdownloads.sourceforge.net/beecrypt/%{name}-%{version}.tar.gz.sig
-Patch0: beecrypt-4.1.2-base64.patch
-Patch1: beecrypt-4.1.2-python-api.patch
+Patch0: beecrypt-4.1.2-biarch.patch
+Patch1: beecrypt-4.2.1-no-c++.patch
 #BuildRequires: doxygen
 %if %{?with_python:1}0
 BuildRequires: python-devel >= %{with_python_version}
@@ -21,6 +21,9 @@ BuildRequires: python-devel >= %{with_python_version}
 BuildRoot: %{_tmppath}/%{name}-root
 Obsoletes: beecrypt-java =< 4.1.2-2
 
+Vendor: Project Vine
+Distribution: Vine Linux
+
 %description
 Beecrypt is a general-purpose cryptography library.
 
@@ -77,31 +80,39 @@ files needed for using java with beecrypt.
 
 %prep
 %setup -q
-%patch0 -p1 -b .base64
-%patch1 -p1 -b .python-api
+%patch0 -p1 -b .biarch
+%patch1 -p1 -b .no-c++
+
+libtoolize
+autoreconf -i
 
 %build
-%configure --enable-shared --enable-static \
-    %{?with_python}%{!?with_python:--with-python=no} \
-    %{?with_java}%{!?with_java:--with-java=no} \
-	--with-cplusplus=no
+export PYTHON=`which python`
+
+%configure \
+ %{?with_python}%{!?with_python:--with-python=no} \
+ %{?with_java}%{!?with_java:--with-java=no} \
+ --with-cplusplus=no
 
 make %{?_smp_mflags} \
-	%{?with_python:pythondir="%{_libdir}/python%{with_python_version}/site-packages"}
+	%{?with_python:pythondir="%{python_sitelib}"}
 #doxygen
 
+%check
+make check || :
+
 %install
 rm -fr $RPM_BUILD_ROOT
 make install DESTDIR=$RPM_BUILD_ROOT \
-  %{?with_python:pythondir="%{_libdir}/python%{with_python_version}/site-packages"}
+  %{?with_python:pythondir="%{python_sitelib}"}
 
-# XXX nuke unpackaged files, artifacts from using libtool to produce module
-rm -f ${RPM_BUILD_ROOT}%{_libdir}/python%{with_python_version}/site-packages/_bc.*a
+iconv -f ISO-8859-1 -t UTF-8 CONTRIBUTORS -o CONTRIBUTORS.utf8
+mv -f CONTRIBUTORS.utf8 CONTRIBUTORS
 
-# XXX delete next line to build with legacy, non-check aware, rpmbuild.
-make check || :
-cat /proc/cpuinfo
-make bench || :
+rm -f $RPM_BUILD_ROOT{%{_libdir},%{python_sitelib}}/*.{a,la}
+
+#cat /proc/cpuinfo
+#make bench || :
 
 ## remove unuse files
 rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la
@@ -119,28 +130,26 @@ rm -fr $RPM_BUILD_ROOT
 
 %files
 %defattr(-,root,root)
-%doc README BENCHMARKS
+%doc AUTHORS BENCHMARKS CONTRIBUTORS
+%doc COPYING COPYING.LIB NEWS README
 %{_libdir}/libbeecrypt.so.*
 
 %files devel
 %defattr(-,root,root)
 %doc BUGS
 %{_includedir}/%{name}
-%{_libdir}/libbeecrypt.a
-#%{_libdir}/libbeecrypt.la
 %{_libdir}/libbeecrypt.so
 
 %if %{?with_python:1}0
 %files python
 %defattr(-,root,root)
-%{_libdir}/python%{with_python_version}/site-packages/_bc.so
+%{python_sitelib}/_bc.so
 %endif
 
 %if %{?with_java:1}0
 %files java
 %defattr(-,root,root)
 %{_libdir}/libbeecrypt_java.a
-#%{_libdir}/libbeecrypt_java.la
 %{_libdir}/libbeecrypt_java.so*
 %endif
 
@@ -152,12 +161,15 @@ rm -fr $RPM_BUILD_ROOT
 
 %files -n compat32-%{name}-devel
 %defattr(-,root,root)
-%{_libdir}/libbeecrypt.a
-#%{_libdir}/libbeecrypt.la
 %{_libdir}/libbeecrypt.so
 %endif
 
 %changelog
+* Wed Jun  8 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 4.2.1-1
+- new upstream release.
+- removed all patches.
+- imported Patch0 and Patch1 from rawhide.
+
 * Wed Feb 15 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 4.1.2-15
 - rebuild with python-2.7.2
 
@@ -180,7 +192,7 @@ rm -fr $RPM_BUILD_ROOT
 * Sat Dec 22 2007 NAKAMURA Kenta <kenta@vinelinux.org> 4.1.2-9vl5
 - removed %%if !%%{build_compat32} case condition
 
-* Wed May 06 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 4.1.2-9vl4
+* Sun May 06 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 4.1.2-9vl4
 - rebuilt with new toolchain
 
 * Mon Feb 06 2006 Shu KONNO <owa@bg.wakwak.com> 4.1.2-9vl3