Browse Source

NEW: qca-ossl, qoauth

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@2726 ec354946-7b23-47d6-9f5a-488ba84defc7
inagaki 13 years ago
parent
commit
802b06f5f4
2 changed files with 218 additions and 0 deletions
  1. 118 0
      q/qca-ossl/qca-ossl-vl.spec
  2. 100 0
      q/qoauth/qoauth-vl.spec

+ 118 - 0
q/qca-ossl/qca-ossl-vl.spec

@@ -0,0 +1,118 @@
+%define beta 3
+
+%define qt4_ver 4.7.1
+%define _qt4_version %(pkg-config --modversion --silence-errors Qt 2>/dev/null || echo %{qt4_ver})
+%define _qt4_prefix %(pkg-config --variable prefix --silence-errors Qt 2>/dev/null || echo %{_libdir}/qt-%{qt4_ver})
+%define _qt4_plugindir %(pkg-config --variable plugindir --silence-errors Qt 2>/dev/null || echo %{_qt4_prefix}/plugins)
+
+Name:       qca-ossl
+Summary:    OpenSSL plugin for the Qt Cryptographic Architecture v2
+Version:    2.0.0
+Release:    0.beta%{beta}.12%{?_dist_release}
+
+License:    LGPLv2+
+Group:      System Environment/Libraries
+URL:        http://delta.affinix.com/qca/
+
+Source0:    http://delta.affinix.com/download/qca/2.0/plugins/qca-ossl-%{version}-beta%{beta}.tar.bz2
+Patch1:     qca-ossl-2.0.0-no-whirlpool.patch
+Patch2:     qca-ossl-2.0.0-openssl100.patch
+
+BuildRoot:  %{_tmppath}/%{name}-%{version}-root
+
+BuildRequires: qt4-devel
+BuildRequires: qca2-devel >= 2.0.0-1
+BuildRequires: openssl-devel >= 0.9.8
+Requires: qt4 = %{_qt4_version}
+
+Provides:   qca2-ossl = %{version}-%{release}
+
+%description
+This is a plugin to provide SSL/TLS capability to programs that use the Qt
+Cryptographic Architecture (QCA).  QCA is a library providing an easy API
+for several cryptographic algorithms to Qt programs.  This package only
+contains the TLS plugin.
+
+%prep
+%setup -q -n %{name}-%{version}-beta%{beta}
+%patch1 -p1 -b .no-whirlpool
+%patch2 -p1 -b .openssl100
+
+%build
+unset QTDIR
+MAKE=%{_bindir}/make \
+./configure \
+    --qtdir=%{_qt4_prefix} \
+    --no-separate-debug-info \
+    --verbose
+make %{?_smp_mflags}
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+export INSTALL_ROOT=$RPM_BUILD_ROOT
+mkdir -p $RPM_BUILD_ROOT%{_qt4_plugindir}/crypto
+make install
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%doc README COPYING
+%{_qt4_plugindir}/crypto/libqca-ossl.so
+
+
+%changelog
+* Sun Feb 20 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.0.0-0.beta3.12
+- built with qt4-4.7.1 for VineSeed
+- added Patch2 to build with oepnssl-1.0.0
+
+* Thu Jan 13 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.0.0-0.beta3.11
+- Initial build for Vine Linux
+
+* Thu Apr 29 2010 Rex Dieter <rdieter@fedoraproject.org> - 2.0.0-0.10.beta3
+- add minimal qt4 dep
+- don't own %%{_qt4_plugindir}/crypto/
+
+* Fri Jan 29 2010 Alexey Kurov <nucleo@fedoraproject.org> - 2.0.0-0.9.beta3
+- Provides: qca2-ossl (fixes bug #512000)
+
+* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 2.0.0-0.8.beta3
+- rebuilt with new openssl
+
+* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-0.7.beta3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-0.6.beta3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Mon Jan 26 2009 Tomas Mraz <tmraz@redhat.com> - 2.0.0-0.5.beta3
+- rebuild with new openssl
+- fix the test for whirlpool support
+
+* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.0.0-0.4.beta3
+- Autorebuild for GCC 4.3
+
+* Thu Dec 13 2007 Aurelien Bompard <abompard@fedoraproject.org> 2.0.0-0.3.beta3
+- version 2.0.0 beta 3
+
+* Fri Dec 07 2007 Release Engineering <rel-eng at fedoraproject dot org> - 2.0.0-0.2.beta1
+- Rebuild for deps
+
+* Tue Nov 06 2007 Aurelien Bompard <abompard@fedoraproject.org> 2.0.0-0.1.beta1
+- version 2.0.0 beta 1
+
+* Sat Oct 27 2007 Aurelien Bompard <abompard@fedoraproject.org> 0.1-4.20070904
+- update Source1 URL
+
+* Thu Oct 25 2007 Aurelien Bompard <abompard@fedoraproject.org> 0.1-3.20070904
+- update to 20070904
+
+* Thu Sep 13 2007 Aurelien Bompard <abompard@fedoraproject.org> 0.1-2.20070706
+- fixes from review in bug 289701 (thanks Rex)
+
+* Thu Sep 13 2007 Aurelien Bompard <abompard@fedoraproject.org> 0.1-1.20070706
+- initial package

+ 100 - 0
q/qoauth/qoauth-vl.spec

@@ -0,0 +1,100 @@
+%global githash 726325d
+%global gitdate 20100625
+#global posttag .%{?gitdate}git%{?githash}
+
+%define qt4_ver 4.6.1
+%define _qt4_version %(pkg-config --modversion --silence-errors Qt 2>/dev/null || echo %{qt4_ver})
+%define _qt4_prefix %(pkg-config --variable prefix --silence-errors Qt 2>/dev/null || echo %{_libdir}/qt-%{qt4_ver})
+
+Name:		qoauth
+Summary:	Qt-based C++ library for OAuth authorization scheme
+Version:	1.0.1
+Release:	2%{?_dist_release}
+
+Group:		System Environment/Libraries
+License:	LGPLv2+
+URL:		http://github.com/ayoy/qoauth
+
+Source0:	http://files.ayoy.net/qoauth/release/%{version}/src/%{name}-%{version}-src.tar.bz2
+
+BuildRoot:      %{_tmppath}/%{name}-%{version}-root
+BuildRequires:	qt4-devel qca2-devel doxygen
+BuildRequires:	qca-ossl
+Requires:	qca-ossl
+
+%description
+QOAuth is a Qt-based C++ implementation of an interface to services using
+OAuth authorization scheme.
+
+%package devel
+Summary:	Development files for the Qt OAuth support library
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+Requires:	qt4-devel
+Requires:	qca2-devel
+
+%description devel
+The %{name}-devel package contains libraries, header files and documentations 
+for developing applications that use QOAuth library. 
+
+%prep
+%setup -q -n %{name}-%{version}-src
+sed -i -e '/^ *docs \\$/d' \
+       -e "s!\(\$\${INSTALL_PREFIX}\)/lib.*!%{_libdir}!" src/src.pro
+sed -i -e 's\/lib\/%{_lib}\g' src/pcfile.sh
+
+%build
+export PATH=%{_qt4_prefix}/bin:$PATH
+%{_qt4_prefix}/bin/qmake PREFIX="%{_prefix}"
+make %{?_smp_mflags}
+
+
+%install
+make install INSTALL="install -p" INSTALL_ROOT=%{buildroot}
+doxygen Doxyfile
+
+# fix the time stamp
+for file in doc/html/*; do
+	touch -r Doxyfile $file
+done
+
+%check
+make check || :
+
+%clean
+rm -rf %{buildroot}
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%doc README CHANGELOG LICENSE
+%{_libdir}/*.so.*
+
+%files devel
+%defattr(-,root,root,-)
+%doc doc/html doc/examples
+%{_libdir}/*.so
+%{_libdir}/*.prl
+%{_libdir}/pkgconfig/*.pc
+%{_qt4_prefix}/mkspecs/features/*.prf
+%{_includedir}/*
+
+%changelog
+* Thu Jan 13 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.0.1-2
+- Initial build for Vine Linux
+
+* Sun Aug 08 2010 Chen Lei <supercyper@163.com> - 1.0.1-1
+- Update to 1.0.1
+
+* Fri Jun 25 2010 Chen Lei <supercyper@163.com> - 1.0.1-0.3.20100625git726325d
+- New upstream version
+
+* Tue Jun 22 2010 Chen Lei <supercyper@163.com> - 1.0.1-0.2.20100622git7f69e33
+- New upstream version
+- Add %%check section
+
+* Tue May 25 2010 Chen Lei <supercyper@163.com> - 1.0.1-0.1.20100525gitec7e4d5
+- initial rpm build