Browse Source

nettle: add compat32 subpackage

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@8264 ec354946-7b23-47d6-9f5a-488ba84defc7
iwamoto 10 years ago
parent
commit
7322267fce
1 changed files with 53 additions and 6 deletions
  1. 53 6
      n/nettle/nettle-vl.spec

+ 53 - 6
n/nettle/nettle-vl.spec

@@ -1,6 +1,8 @@
+%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
+
 Name:           nettle
 Version:        2.7.1
-Release:        1%{?_dist_release}
+Release:        2%{?_dist_release}
 Summary:        A low-level cryptographic library
 Summary(ja):     低レベル暗号化ライブラリ
 
@@ -30,6 +32,21 @@ Requires:       %{name} = %{version}-%{release}
 #Group:          Development/Libraries
 #Requires:       %{name}-devel = %{version}-%{release}
 
+%if %{build_compat32}
+%package -n compat32-%{name}
+Summary:        A low-level cryptographic library
+Summary(ja):     低レベル暗号化ライブラリ
+Group:          Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%package -n compat32-%{name}-devel
+Summary:        Development headers for a low-level cryptographic library
+Summary(ja):     低レベル暗号化ライブラリの開発ヘッダ
+Group:          Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+Requires: compat-32%{name} = %{version}-%{release}
+%endif
+
 %description
 Nettle is a cryptographic library that is designed to fit easily in more
 or less any context: In crypto toolkits for object-oriented languages
@@ -42,22 +59,33 @@ or less any context: In crypto toolkits for object-oriented languages
 (C++, Python, Pike, ...), in applications like LSH or GNUPG, or even in
 kernel space.  This package contains kernel headers.
 
+%if %{build_compat32}
+%description -n compat32-%{name}
+Nettle is a cryptographic library that is designed to fit easily in more
+or less any context: In crypto toolkits for object-oriented languages
+(C++, Python, Pike, ...), in applications like LSH or GNUPG, or even in
+kernel space.
+
+%description -n compat32-%{name}-devel
+Nettle is a cryptographic library that is designed to fit easily in more
+or less any context: In crypto toolkits for object-oriented languages
+(C++, Python, Pike, ...), in applications like LSH or GNUPG, or even in
+kernel space.  This package contains compat libraries.
+%endif
+
 #%description static
 #Nettle is a cryptographic library that is designed to fit easily in more
 #or less any context: In crypto toolkits for object-oriented languages
 #(C++, Python, Pike, ...), in applications like LSH or GNUPG, or even in
 #kernel space.  This package contains a static library.
 
-
 %prep
 %setup -q
 
-
 %build
 %configure --enable-shared
 make %{?_smp_mflags}
 
-
 %install
 rm -rf $RPM_BUILD_ROOT
 make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
@@ -80,7 +108,6 @@ make check
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-
 %files
 %defattr(-,root,root,-)
 %doc AUTHORS ChangeLog COPYING.LIB NEWS README TODO
@@ -92,7 +119,6 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/libhogweed.so.*
 %{_libdir}/libnettle.so.*
 
-
 %files devel
 %defattr(-,root,root,-)
 %doc descore.README nettle.html nettle.pdf COPYING.LIB
@@ -101,6 +127,20 @@ rm -rf $RPM_BUILD_ROOT
 %{_includedir}/nettle
 %{_libdir}/pkgconfig/
 
+# compat32
+%if %{build_compat32}
+%files -n compat32-%{name}
+%defattr(-, root, root, 0755)
+%{_libdir}/libhogweed.so.*
+%{_libdir}/libnettle.so.*
+
+%files -n compat32-%{name}-devel
+%defattr(-, root, root, 0755)
+%{_libdir}/libhogweed.so
+%{_libdir}/libnettle.so
+%{_libdir}/pkgconfig/
+%endif
+
 #%files static
 #%defattr(-,root,root,-)
 #%doc COPYING
@@ -118,9 +158,16 @@ fi
 
 %postun -p /sbin/ldconfig
 
+%if %{build_compat32}
+%post -n compat32-%{name} -p /sbin/ldconfig
 
+%postun -n compat32-%{name} -p /sbin/ldconfig
+%endif
 
 %changelog
+* Sun Feb  9 2014 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> - 2.7.1-2
+- add compat32,compat32-devel packages
+
 * Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.7.1-1
 - update to 2.7.1